personal freedom is a natural right, safeguarded and inviolable, and except in the case of being caught in the act of violation, it is not permitted for anyone to be detained or searched or to be freedom restricted, or movement prevented, except by a warrant order compelling the necessity of investigation or to safeguard the security of society. this warrant order shall be issued by a specialized judge or the general prosecutor, according to the law. the law also determines the period for which one may be detained.