Catholic teaching distinguishes carefully between dissolution of the bond (never lawful for a valid, consummated sacramental marriage during both spouses' lifetimes) and separation from bed and board for grave cause.
Thomas Slater, S.J., summarizes: married people ought to live together unless there is good reason to the contrary. Adultery gives the innocent spouse a right to separate as to bed and board (unless that spouse consented to, caused, or condoned the crime, or committed the same). Other causes - such as joining a non-Catholic sect, educating a child as a non-Catholic, a criminal or shameful life, grave danger to soul or body, or cruelty that makes cohabitation too difficult - can also justify separation. When the cause ceases, cohabitation should be restored.
McHugh and Callan teach the same distinction: complete divorce with the right to remarry during the other spouse's life is never lawful for such a marriage; incomplete divorce (separation) may be permanent for adultery or temporary for other just causes, ordinarily after appeal to the Ordinary (or, if the facts are certain and delay is dangerous, on one's own authority). With permission, a civil decree that affects only civil effects may sometimes be sought - not to claim a right to remarry.
The 1917 Code (cann. 1128-1132) requires common life unless a just cause excuses it, and calls for restoration of common life when the cause of separation ends. Read those canons: https://moralsofthechurch.com/manuals/cic1917/article-ii-of-the-separation-of-bed-table-and-dwelling
Slater also notes that in England and the United States the Church has permitted Catholics to apply to civil courts at least for judicial separation, but they should first put the case before ecclesiastical authority (as the Third Plenary Council of Baltimore prescribed). They may not go to civil court seeking dissolution of a valid marriage in order to marry again.
Marriage covenant contracts on this site aim to discourage civil divorce, protect the innocent spouse, and favor remedies that repair the marriage - consistent with this teaching. They are not a substitute for pastoral care, tribunal counsel, or civil legal advice.
Sources: https://moralsofthechurch.com/manuals/slater/chapter-vii-the-properties-of-marriage ; https://moralsofthechurch.com/manuals/mchugh-callan/divorce-and-separation-2831 ; https://moralsofthechurch.com/manuals/cic1917/article-ii-of-the-separation-of-bed-table-and-dwelling ; Trent Session XXIV Canon VIII: https://moralsofthechurch.com/manuals/trent/sess24
See also: Separation Is Not Divorce · Can Catholics Sign a Prenup? · Unity and Indissolubility · Does the Church Allow Divorce?