A person arrives at the age of majority upon being married according to law, unless the person is under the marriageable age of consent as defined in AS 25.05.171(a), in which case the person reaches majority upon reaching the marriageable age of consent.