Civil confinement is when someone is being held in a secure facility, like a hospital or prison, even though they haven't been convicted of a crime. This is usually done when the person is considered to be a danger to themselves or others.
Imagine that you have a toy that's really dangerous, like a sharp knife or a gun. You know that if you leave that toy out where someone can get hurt, there might be a bad accident. That's kind of like what civil confinement is for - to keep someone who might be dangerous from hurting themselves or others.
Sometimes, civil confinement is used for people who have mental health problems and might hurt themselves or others if they're left alone. Other times, it's used for people who have been released from prison but are still considered a risk to society.
The idea behind civil confinement is to protect people while also respecting their rights. This means that the facility where they're being held has to provide them with basic needs, like food and clothing, and they have the right to be treated with respect and dignity. It's like a compromise between keeping people safe and protecting their human rights.