It's crazy and the EU say nothing about it, but they do hammer Hungary and Poland for far lesser evils.
Here's a little excerpt from the European Convention on Human Rights.
ARTICLE 5
Right to liberty and security
- Everyone has the right to liberty and security of person. No
one shall be deprived of his liberty save in the following cases and
in accordance with a procedure prescribed by law.
ARTICLE 7
No punishment without law
- No one shall be held guilty of any criminal offence on
account of any act or omission which did not constitute a criminal
offence under national or international law at the time when it
was committed. Nor shall a heavier penalty be imposed than
the one that was applicable at the time the criminal offence was
committed.
ARTICLE 11
Freedom of assembly and association
- Everyone has the right to freedom of peaceful assembly and
to freedom of association with others, including the right to form
and to join trade unions for the protection of his interests.
ARTICLE 14
Prohibition of discrimination
The enjoyment of the rights and freedoms set forth in this
Convention shall be secured without discrimination on any ground
such as sex, race, colour, language, religion, political or other
opinion, national or social origin, association with a national
minority, property, birth or other status.