Subject to the following provisions of this section, a child who is being looked after by a local authority in England or Wales may not be placed, and, if placed, may not be kept, in accommodation in England or Scotland provided for the purpose of restricting liberty ("secure accommodation") unless it appears—
The Secretary of State may by regulations—
It shall be the duty of a court hearing an application under this section to determine whether any relevant criteria for keeping a child in secure accommodation are satisfied in his case.
If a court determines that any such criteria are satisfied, it shall make an order authorising the child to be kept in secure accommodation and specifying the maximum period for which he may be so kept.
On any adjournment of the hearing of an application under this section, a court may make an interim order permitting the child to be kept during the period of the adjournment in secure accommodation.
Where a local authority in England or Wales are authorised under this section to keep a child in secure accommodation in Scotland, the person in charge of the accommodation may restrict the child's liberty to the extent that the person considers appropriate, having regard to the terms of any order made by a court under this section.
No court shall exercise the powers conferred by this section in respect of a child who is not legally represented in that court unless, having been informed of his right to apply for the provision of representation under Part 1 of the Legal Aid, Sentencing and Punishment of Offenders Act 2012 and having had the opportunity to do so, he refused or failed to apply.
The Secretary of State may by regulations provide that—
The giving of an authorisation under this section shall not prejudice any power of any court in England and Wales or Scotland to give directions relating to the child to whom the authorisation relates.
Sections 168 and 169(1) to (4) of the Children's Hearings (Scotland) Act 2011 (asp 1) (enforcement and absconding) apply in relation to an order under subsection (4) above as they apply in relation to the orders mentioned in section 168(3) or 169(1)(a) of that Act.
This section is subject to section 20(8).