28A detainee is to be deemed to be in legal custody throughout the period of the detainee’s detention.