No child may be detained in an adult jail longer than a specific duration as mandated by what legal principle or regulation, and what safeguards are in place to ensure the appropriate treatment and protection of juveniles within the criminal justice system?