Lawful custody is detention of a person in prison, or in psychiatric confinement because they have been charged with an offence.