There is no such legal obligation. That's a myth the oligarchs have spread to preclude people from even imagining socially responsible corporations.
Sure, you might get fired if you try to put social responsibility or even just long term sustainability of the company above quarterly earnings/growth if your board isn't on board with it. But you won't go to jail.