what are the legal implications of a divorce?