What happens to your mortgage in case of divorce or separation?

Borrowing from two often makes it possible to obtain better…