What did Roman law dictate if a parent contracted a legal marriage