1. 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:
(d) the detention of a minor by lawful order for the purpose
of educational supervision or his lawful detention for
the purpose of bringing him before the competent legal
authority;