The spouses or future spouses may agree to designate, or to change, the law applicable to their matrimonial property regime, provided that that law is one of the following:
the law of the State where the spouses or future spouses, or one of them, is habitually resident at the time the agreement is concluded; or
the law of a State of nationality of either spouse or future spouse at the time the agreement is concluded.
Unless the spouses agree otherwise, a change of the law applicable to the matrimonial property regime made during the marriage shall have prospective effect only.
Any retroactive change of the applicable law under paragraph 2 shall not adversely affect the rights of third parties deriving from that law.