Legal definitions of confinement