Understanding the legal process for contested divorces