text: remanded to the care of a local authority while awaiting trial, provided they meet the necessary criteria (see below). Its use is not restricted to those accused or convicted of a crime and it is not designed as a punishment. Secure accommodation forms part of the child care system, not part of the penal system. 145. A child may not be placed in secure accommodation unless he/she meets very strict criteria. These are set out in the Secure Accommodation (No. 2) Regulations 1983. A local authority may, if these criteria are met, hold a child in secure accommodation for up to 72 hours at a time or for 72 hours in any 28-day period. It may not hold the child for longer without obtaining authorization (a "secure order") from a juvenile court. The court may make a secure order for up to three months in the first place. If the use of secure accommodation beyond that period is still considered necessary by the local authority, it must ask the juvenile court to renew the order for periods of up to six months at a time. If a juvenile court is considering whether to make or renew a secure order, the child must be advised of his right to legal representation and must be represented in court unless: (a) he applied for legal aid and was refused it on the grounds that his means were such that he did not appear to require legal aid, or (b) he was told about his right to apply for legal aid and had the opportunity of applying but failed or refused to do so. If a secure order is made by a juvenile court, the child has the right to appeal to a higher court against this decision. 146. The use of a secure order by the local authority is discretionary, and no 
analysis: The text discusses the use of secure accommodation for children who are awaiting trial or are in need of care and protection. It outlines the criteria for placing a child in secure accommodation, the process for obtaining authorization from a juvenile court, and the child's right to legal representation and appeal. The text does not mention economic or industrial development, natural resources, transportation, communication, international trade, humanitarian aid, culture, or science and technology. It is more likely related to issues of social welfare, education, or employment, but is most closely tied to the legal system and the protection of children's rights.