You have similar solution as me. But my info is not modal, user can use links on the page.
Warning - you have google ads on your page and these are personalized ads.
You should not display personalized ads before user give you consent. This is the AdSense rule. Google may block your account if you violate the rules.
First you should display non-personalized ads, and after user click Accept (Prihvacam ??) you can display personalized ads.
For non-personalized you can use this
(adsbygoogle=window.adsbygoogle || ).requestNonPersonalizedAds=1;
before method push ads.
For personalized you can use this
(adsbygoogle=window.adsbygoogle || ).requestNonPersonalizedAds=0;