Legal tips for financial planning when divorcing