Why would legality change the moral aspect?
The law is an imperfect reflection of morals, not the other way around. Most people's sense of morality is not based on the law.
It's possible for perfectly reasonable people to think non-competes are not "absurd", regardless of California employment law.