Legal custody means knowledge & decision-making regarding the child.
It's commonly joint legal custody (examples: access to school records, in what religion will jr be raised; can jr drive at 16/17; what school to attend; can jr get a tatoo @ 17; can jr go on vacation to youth hostels, etc.)
Custody v visitation can be murky - you can be custodial parent & ncp may (not often, but I saw it) have 60% visitation. The residence/school district of the child can be the determinant factor in who is the 'custodial parent'/conservator.
It is, generally, understood that the child resides with the 'custodial parent', subject to visitation with the 'non-custodial parent'.