Like it or not, there's always going to be some powerful entity who you cannot escape because it rules the land. The only question is what shape you want that entity to have. Accountability matters, and so democracy is generally a good place to start.
Good government is hard, but it's certainly better than a corporation that is legally obligated to put profit ahead of anything else.
There is no legal obligation to maximize shareholder value.
The shareholders want profit maximised, and with that end, decide upon the board of directors, who decide upon the CEO. If the CEO does not maximise profits, the CEO will not remain the CEO. Therefore, the CEOs of (publicly-traded) companies are obliged to maximise profits – those who do not feel such an obligation are not CEOs.
I do believe that there are people who claim that companies have that legal obligation, which is what you said you’d not observed.
And if you think it's bad now, it's going to get dramatically worse yet. The largest groups that make up the US today, that dominate its politics and culture, have absolutely nothing in common with eachother and will grow further apart as the years pass. The rancor will get much worse. The populism will get worse. The end result is obvious and unavoidable (and I'm not talking about civil war, that's a redneck fantasy; it's tyranny, oppression, endless strife, and ever worsening dysfunction as the Feds try to contain the unspooling and get ever more paranoid).