That’s what Benefit Corps exist for - but it’s a very rarely used vehicle. Anthropic is a well known example of a B Corp.

The structure provides a way for leadership to refuse to act in ways that counter the company’s charter.

More here: https://en.m.wikipedia.org/wiki/Benefit_corporation

TIL that Anthropic is a Benefit Corp. Thank you!

Their end-user privacy policy says "We will not use your Inputs or Outputs to train our models" (followed by carve-outs, which seem reasonable).