Explain the structure and processes of the juvenile detention system, including arrest procedures, intake, pretrial diversion, and transfer to adult court.