Custody refers to both the legal and physical custody of a child. Legal custody is the authority to make decisions for and about a child. Joint legal custody (also called shared legal custody, shared parental responsibility, etc.) is when parents share that authority.
Link to definition source