## 2 Materials and Methods
### Methods of Characterization  
Infrared spectra with Fourier Transform were collected in Attenuated Total Reflectance mode (ATR-FTIR) using a FTIR spectrophotometer TENSOR 27 (Bruker, Ettlingen, Germany). The spectra were recorded in the frequency range of 4000 to 600 cm\({}^{-1}\) and the resolution of the apparatus was 4 cm\({}^{-1}\). Each measurement included 32 scans per spectrum. Additionally, chemical studies were performed to determine characteristic values, such as acid (AV) and iodine values (IV). Quantification was carried out through back titration methods. Details are given in Appendix A.  
Porous structure parameters of the synthesized polymers were determined by low-temperature nitrogen sorption experiments with an ASAP 2405 analyzer (Accelerated Surface Area and Porosimetry system, Micromeritics Inc., Norcross, GA, USA). Before analysis, the samples were outgassed at 110 \({}^{\circ}\)C for 1 h. The isotherms were measured at 196 \({}^{\circ}\)C. The specific surface area (S\({}_{\text{BET}}\)) was calculated using the standard BET method assuming N\({}_{2}\) molecular cross-sectional area 0.162 nm. The total pore volume (V\({}_{\text{tot}}\)) was determined as the volume of liquid nitrogen at a relative pressure (p/p\({}^{0}\)) of 0.99. The pore size distribution (PSD) in the range of 1.7-300 nm and average pore diameter (D\({}_{\text{BJH}}\)) were calculated according to BJH procedure from the desorption branch of the isotherm. SEM images were taken with the use of a high-resolution scanning electron-ion microscope Quanta 3D EEG (Hillsboro, OR, USA) by FEI. TG/DTG thermograms were obtained through an STA 449 F1 Jupiter thermal analyzer (Netzsch, Selb, Germany). Around 7 mg of a sample was weighed into an Al\({}_{2}\)O\({}_{3}\) crucible and analyzed under helium atmosphere (40 mL min\({}^{-1}\)) in the temperature range of 30 to 800 \({}^{\circ}\)C with standard heating rate of 10 K/min. Sorption property tests were performed by dynamic solid phase extraction (SPE) methods using polypropylene cartridges filled with 100 mg of studied polymer and protected with porous Teflon frits. Before use, each cartridge was conditioned with 10 mL of methanol and 5 mL of distilled water. Next, aqueous solutions of test compound were passed through the cartridges at a mean flow rate of 3 mL/min. First, tests with a mixture of phenolic compounds were conducted. The solution consisted of 2 mg/L: phenol, 2-chlorophenol (2-ChP), 2,4-dichlorophenol (2,4-DChP), and 2,4,6-trichlorophenol (2,4,6-TChP). After sorption, the cartridge was rinsed with 1 mL of water and then dried for 5 min. Next, the elution with an appropriate amount of methanol was carried out. The amount of methanol was determined by the sample volume in such a way to obtain a 50-fold concentration, e.g., if the sample volume was 100 mL, 2 mL methanol was used for the elution. Finally, the cartridge was regenerated in the same manner as in the conditioning step. Subsequent sorption tests included the recovery determination of chosen pharmaceuticals (salicylic acid, aspirin, ibuprofen, paracetamol, ampicillin) from aqueous solutions. For this purpose, separate pharmaceutical solutions with a concentration of 0.2 mg/L and 100 mL volume were prepared. The adsorbed compounds were eluted with 2 mL of methanol. \begin{table}
\begin{tabular}{c c} \hline \hline
**Polymer** & **Acronim** \\ \hline Citral-divinylbenzene & C-DVB \\ Limonene-divinylbenzene & L-DVB \\ Pinene-divinylbenzene & P-DVB \\ Argan oil-divinylbenzene & Ao-DVB \\ Linseed oil-divinylbenzene & Lo-DVB \\ Rapeseed oil-divinylbenzene & Ro-DVB \\ \hline \hline \end{tabular}
\end{table} 
Table 2: Designations of the prepared polymers. Concentrations of desorbed compounds in the obtained eluates were determined using HPLC system Waters 2690 Alliance (Waters, Milford, MA, USA) with UV detector; a detailed description has been given in previous works [36; 38].