Section 223 of The Children Act CAP 141: Detention of children
(1) Institutionalization and detention of children in conflict with the law pending trial shall be used as a means of last resort, and detention pending trial shall, as far as is reasonably practicable, be replaced by alternative measures, such as placement with a family or in an educational setting or home.
(2) A child shall be detained under conditions that take full account of the child’s particular needs, status and special needs according to their age, gender and type of offence, as well as mental and physical health or disability, and protect them from harmful influence and situations of risk.
Check the current authoritative text and amendment history before relying on this provision.