ratification legal definition