Another way to say "getting a divorce is for legalities" is "Legalities are involved in getting a divorce."