The legal status of a child at birth depends upon the marital status of its mother.
A birth is "legitimate" if the parents are married. A child born outside marriage is "legitimated" when the mother marries.