Comment by mrweasel
The issue is that countries may not care. The Danish government famously refuses to comply with EU verdicts that makes logging all phone calls and spying on text messages illegal. The Danish supreme court and the European Court of Human Rights have agreed with the government that "it's fine" in a "please think of the children"-moment.
That seems to be a contradiction. If the courts (the body tasked with deciding what is and isn't illegal) agree with the government than by definition its not illegal.