The phrase
"lawful custody" means that someone is holding or keeping someone else, like a prisoner or a child, legally and within the boundaries set by the law. It indicates that the person who has custody has the authority and permission to do so.
Full definition