Places where children can no longer be detained 18 Meanings of “young offenders institution” and “young offender” (1) The Prisons (Scotland) Act 1989 (“the 1989 Act”) is amended as follows. (2) In section 19 (remand centres and young offenders institutions), in subsection (1)(b), 30 for second “offenders” to the end substitute “persons not less than 18 but under 21 years of age— (i) sentenced to detention in a young offenders institution, or (ii) remanded or committed in custody for trial or sentence, may be kept.”. 35 (3) The Prisons and Young Offenders Institutions (Scotland) Rules 2011 (S.S.I. 2011/331) are amended as follows. (4) In rule 2(1) (interpretation), in paragraph (a) of the definition of “young offender”, for “16” substitute “18”. 21 Children (Care and Justice) (Scotland) Bill Part 2—Criminal justice and procedure 19 Abolition of remand centres (1) The 1989 Act is amended as follows. (2) In section 19 (remand centres and young offenders institutions)— (a) in subsection (1), paragraph (a) and “and” immediately following it are repealed, 5 (b) subsection (2) is repealed, (c) in subsection (4)— (i) “remand centres,” is repealed, (ii) “centres or” is repealed, (d) in subsection (6), “remand centres,” is repealed, 10 (e) in the section title, for “Remand centres and young” substitute “Young”. 1 Local authority duties in relation to detained children 20 Duty of local authority to provide residential establishments for detained children (1) The Social Work (Scotland) Act 1968 is amended as follows. (2) In section 59 (provision of residential and other establishments by local authorities), in 15 subsection (1)— (a) for second “under” substitute “conferred under or by virtue of”, (b) after “1995 (c.36)” insert “, the Criminal Procedure (Scotland) Act 1995”. 21 Children detained in secure accommodation to be treated as “looked after” children (1) The Children (Scotland) Act 1995 is amended as follows. 20 (2) After section 17 insert— “17A Detained children to be treated as looked after children (1) This section applies where a child is detained in secure accommodation by virtue of section 51(1)(a), 205(2), 208(1) or, as the case may be, 216(7) of the Criminal Procedure (Scotland) Act 1995. 25 (2) The relevant local authority in relation to the child has the same duties towards the child as it would have by virtue of sections 17, 29, 30 and 31 if the child were looked after by that local authority. (3) In subsection (2), the “relevant local authority”, in relation to a child, has the same meaning as in section 201 of the Children’s Hearings (Scotland) 30 Act 2011.”. (3) The Children and Young People (Scotland) Act 2014 is amended as follows. (4) In section 97 (interpretation), in subsection (2), for “section 17(6)” substitute “sections 17(6) and 17A(2)”. 22 Children (Care and Justice) (Scotland) Bill Part 2A—Secure transportation P ART 2A S ECURE TRANSPORTATION 21A Standards for provision of secure transportation (1) The Children and Young People (Scotland) Act 2014 is amended as follows. 5 (2) After section 90 insert— “P ART 16A S ECURE TRANSPORTATION 90A Secure transportation: duty of Scottish Ministers to prepare and publish standards 10 (1) The Scottish Ministers must prepare and publish standards applicable to any 1 service (a “secure transportation service”) which consists of or includes providing secure transportation— (a) for persons— (i) who have not attained the age of 19 years, and 15 (ii) in relation to whom the taking to or the placing, keeping or detention in secure accommodation is authorised or required under or by virtue of a relevant enactment, and (b) for the purpose of transporting those persons to or from secure accommodation. 20 (2) The standards— (a) must include the minimum standards to be met by a provider of a secure transportation service which may, in particular, relate to— (i) the manner in which, and the extent to which, the service provider is to have regard to the rights of the persons mentioned in 25 subsection (1)(a) who require to be transported to or from secure accommodation, (ii) the establishment of measures and procedures to prevent or minimise a risk of a serious incident occurring, (iii) the establishment of measures and procedures to deal with, and 30 prevent the recurrence of, a serious incident, (iv) the circumstances in which restraint or control of persons mentioned in subsection (1)(a) who require to be transported to or from secure accommodation may or may not be appropriate, (v...