The Fundamental Law of Hungary

Country
Hungary

Article III (Freedom and Responsibility) (1) No one shall be subject to torture, inhuman or degrading treatment or punishment, or held in servitude. […]

Article IV (Freedom and Responsibility) […] (2) No one shall be deprived of liberty except for reasons specified in an Act and in accordance with the procedure laid down in an Act. Life imprisonment without parole may only be imposed for the commission of intentional and violent criminal offences.

Article XXVIII (Freedom and Responsibility) […] (4) No one shall be held guilty of or be punished for an act which, at the time when it was committed, did not constitute a criminal offence under Hungarian law or, within the scope specified in an international treaty or a legal act of the European Union, under the law of another State.
(5) Paragraph (4) shall not prejudice the prosecution and conviction of any person for any act which, at the time when it was committed, was a criminal offence according to the generally recognised rules of international law.