Inmates deemed to be in legal custody
23.—(1)  Every inmate is deemed to be in the legal custody of the approved centre in which he or she is for the time being detained.
(2)  An inmate is deemed to be in legal custody —
(a)while he or she is confined in, or is being taken to or from, an approved centre;
(b)while he or she is for any other reason outside an approved centre in the custody or under the control of the officer-in-charge of the approved centre; or
(c)while he or she is being taken to any place to which he or she is required or authorised by or under this Act to be taken, or is kept in custody pursuant to any such requirement or authorisation.