Prospective parties to a civil union and present parties to a civil union may contract to make an agreement relating to the civil union that includes any of the rights and obligations that may be included in a premarital agreement or marital agreement pursuant to this part 3. The provisions of this part 3 and any case law construing this part 3 apply to any agreement made by prospective parties to a civil union or between present parties to a civil union.