Legal custody" means (i) a legal status created by court order which vests in a custodian the right to have physical custody of the child, to determine and redetermine where and with whom he shall live, the right and duty to protect, train and discipline him and to provide him with food, shelter, education and ordinary medical care, all subject to any residual parental rights and responsibilities or (ii) the legal status created by court order of joint custody as defined in § 20-107.2.
§ 20-124.2. Court-ordered custody and visitation arrangements.
A. In any case in which custody or visitation of minor children is at issue, whether in a circuit or district court, the court shall provide prompt adjudication, upon due consideration of all the facts, of custody and visitation arrangements, including support and maintenance for the children, prior to other considerations arising in the matter. The court may enter an order pending the suit as provided in § 20-103. The procedures for determining custody and visitation arrangements shall insofar as practical, and consistent with the ends of justice, preserve the dignity and resources of family members. Mediation shall be used as an alternative to litigation where appropriate. When mediation is used in custody and visitation matters, the goals may include development of a proposal addressing the child's residential schedule and care arrangements, and how disputes between the parents will be handled in the future.
B. In determining custody, the court shall give primary consideration to the best interests of the child. The court shall assure minor children of frequent and continuing contact with both parents, when appropriate, and encourage parents to share in the responsibilities of rearing their children. As between the parents, there shall be no presumption or inference of law in favor of either. The court shall give due regard to the primacy of the parent-child relationship but may upon a showing by clear and convincing evidence that the best interest of the child would be served thereby award custody or visitation to any other person with a legitimate interest. The court may award joint custody or sole custody.