Pros/Cons/Tips Buying Company Facing a Lawsuit

Looking for advice on purchasing a company that is facing a lawsuit. Specifically: (1) due diligence - what to look out for especially on balance sheet; (2) purchase price adjustment - how to estimate future risk and reflect that in purchase price/multiple; (3) escrow holdbacks - how much and indemnity provisions - types? (3) adverse judgement insurance - should the buyer or seller pay for this? who offers this type of insurance?

Or is this a "run don't walk" kind of scenario?

Thanks for any and all input