Karen -

If my kids were in a toxic or dangerous environment as you suggest yours are being put in, I would be seeking evidence and legal means to protect them.

The other perspective you could take is that of your kids witnessing the stark contrast of ethics and living standards. If they see chaos and confusion when with your X, but see a happy organized and loving mother when with you, it seems that is a lesson in choosing the proper path in their lives.