A marriage is void if either party to the marriage is younger than 18 years of age, unless a court order removing the disabilities of minority of the party for general purposes has been obtained in this state or in another state.