The separation of spouses while maintaining the marriage bond can be legitimate in certain cases provided for by canon law (Cf. CICCodex Iuris Canonici (Code of Canon Law), cann. 1151-1155).
If civil divorce remains the only possible way of ensuring certain legal rights, the care of the children, or the protection of inheritance, it can be tolerated and does not constitute a moral offense.