In this type of capacity, the valid legislation does not distinguish between a child and an adult.
Under the valid legislation pre-trial detention is as a matter of principle an optional measure.