Custody derives from Latin custodia, formed from Latin custōs meaning guard or guardian, with the noun-forming suffix -ia inherited from Ancient Greek -ία and ultimately Proto-Indo-European -h₂.
custody (English): The legal right to take care of something or...