(1) In a contract of inheritance, each of the contractual parties may make contractual dispositions mortis causa.
(2) Dispositions other than appointments of heirs, legacies, testamentary burdens, and the selection of the inheritance laws to be applied may not be made contractually.