When you and your spouse decide to divorce after many years of marriage, maintaining privacy is often an important priority for everyone involved. Even if you and your spouse are able to approach the matter civilly, you don't want your personal matters to be freely available to anyone who wants to know the inner disfunction of your marriage.
You and your spouse both know that your relationship isn't salvagable. Maybe there was adultery, or perhaps there was a major issue that arose between you and your spouse. Regardless of how you two feel about one another, however, you will still need to interact regularly for the sake of your children. Courts typically try to create shared custody arrangements, often called co-parenting solutions. Typically, it is in the best interest of the children to remain close to both parents.
Ever since the Supreme Court ruling in 2015 in the case of Obergefell v. Hodges, same sex marriages have been legal in all 50 states. Of course, same sex marriages had been legal in the state of California for longer than that. Despite repeated attempts to ban same-sex marriages in California, the state upheld the rights of gay, lesbian, bisexual and transgender people to commit to one another in a legal sense.
One of the most unusual trends in modern divorces is the decision to continue living in the same house or sharing a property after the end of a marriage. This kind of arrangement can be less financially draining for each parent and can also make co-parenting that much simpler.