Thinking About A Gray Divorce?

I have been married for over 20 years. My spouse was always the primary breadwinner and always managed our finances. I have been unhappy in our marriage for years and finally have the courage to leave, however, I do not even know where to start to protect myself financially.