In the event of the death of one of the legally separated spouses, the other spouse retains the rights granted by law to the surviving spouse. In the event of legal separation by mutual consent, the spouses may include in their agreement a waiver of the inheritance rights conferred on them by the articles 756 to 757-3 and 764 à 766.