Also things sure do look different when you are at the helm. If you decide your company should pay more in taxes the board will probably vote you out on your ass.
There's no law against breaking the spirit of the law. Breaking the spirit of the law will only get you tried in the court of public opinion. Breaking the letter will also go to a court of justice.
In some states the judges are quasi-politicians with an implied mandate to rule how they think the people want them to rule. In others the judiciary is a system for evaluating the law and they see they consider it their mandate to enforce the law exactly as written, especially when it gives the legislature and the public the middle finger because that's the incentive for those groups to write and demand good law.
This is why laws need to be crafted to not give companies the benefit of the doubt when it comes to acting in the best interest of society. Less because it is impossible for a company to be moral in a vacuum, but because if being immoral is allowed and advantageous inevitably the immoral company will out compete the moral one. (Of course it can be hard to agree on what moral is. Some say that taxes are immoral after all.)
What? I don't think so. If money is the only thing they care about, sure. But is it? Should it be? And if breaking the spirit of the law is fine, shouldn't breaking the letter of the law be fine as well? As long as the risk is low enough..
</rant>