xmlns:atom="http://www.w3.org/2005/Atom"
(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 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”.
(1)The Children (Scotland) Act 1995 is amended as follows.
(2)After section 17 insert—
(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.
(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) 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)”.