41. Any person who is detained in the exercise of any powers conferred by or under this Act shall, while so detained, be deemed to be .in legal custody. *Persons detained deemed to be in legal custody.*