They're called "Wills, Contracts, and Power of Attorney". Look into them sometime.
L
Matters of inheritance are dealt with by a legal instrument known as a "Will".
Medical care decisions are dealt with by a legal instrument known as a "Power of Attorney".
Neither one of these legal instruments requires the State or Federal governments to become involved in the question of what is or is not a marriage.
L