You can apply for a legal separation agreement with the help of a solicitor. The process involves:
Confirming your state’s residency requirements
Filing for a separate petition
Filing a legal separation agreement
Provide a copy of the legal separation agreement to your spouse
Settle down unresolved issues
Signing and notarising of the agreement
Execution of the agreement
Hiring a lawyer for separation agreement is the best way to go about it.