The only effective law would be a sufficient tax on fossil fuels to force reduction in consumption.
But it will be heavily unpopular as it will reduce people’s quality of life in the short term, even for the rest of their life, plus globally, other populations would be happy to pick up the demand.
Consumers are also the ones voting for the politicians who aren't changing the law. So again, it's on us. We need to actually want to change before we actually will.
"will do anything permitted by the law"
Exactly. So start changing the law. Blaming consumers will get us nowhere. Change the law. Enforce the law. Force corporations to act.