Article 17(1) Personal freedom is guaranteed. (2) No one shall be prosecuted or deprived of freedom other than for reasons and in a manner which shall be laid down by law. No one may be deprived of freedom solely because of his inability to fulfil a contractual obligation. (3) The person charged or suspected of a criminal offence may be detained only in cases laid down by law. A detained person must be immediately informed of the reasons for the detainment, and after interrogation at the latest within 48 hours and, in crimes of terrorism within 96 hours, must be either released or brought before the court. The judge must question the detained person and decide on his custody or release within 48 hours and, for especially serious criminal offences within 72 hours from the hand over. (4) An accused person may be arrested only upon a written, substantiated order of a judge. The arrested person must be brought before the court within 24 hours. The judge must question the arrested person and decide on his custody or release within 48 hours and, for especially serious offences within 72 hours from the hand over. (5) A person may be taken into custody only for reasons and for a period laid down by law and on the basis of a court ruling. (6) The law shall lay down in which cases a person can be admitted to, or kept in, a health care institution without his consent. Such measures must be reported within 24 hours to the court which will then decide on this placement within five days. (7) The mental state of a person accused of a criminal act may be examined only on the basis of a written court order.