Cheating Spouse

I’ve just this morning found out my wife of 8 years is cheating. I’ve found some evidence that strongly points to this being the case.

What should be the first things I do other than consult with a lawyer? We have kids and I feel like everything I have read seems to point to me ending up the worst off in many ways even though the failure of the marriage was caused by her.

I’m lost and don’t know what to do, so far I’ve managed to keep my cool and not confront her about any of this until I know my next steps. Hope someone can help!