This law establishes a framework for implementing court-ordered security measures, such as security custody or other safety measures imposed instead of regular imprisonment for individuals deemed dangerous. The law aims to ensure human rights protections for these individuals, provide them with appropriate social and health services, and support their rehabilitation, while also protecting public safety. Special provisions address the rights of children subject to such measures, requiring their placement in accordance with child protection laws. The law also ensures accessibility for disabled individuals and emphasizes cooperation between authorities involved in implementing security measures.