A baseline for human needs ( food, shelter, access to health and opportunities to develop oneself) can be codified into law but we'll always find a way to express those biases at the higher levels IMO.
Which is the best argument for a minimal legal ethical codes. Any system can be hacked, especially those designed by humans. The road to hell is paved with good intentions. So...
That's Harrison Bergeron territory. Sorry, you can't go on a vacation to France because your kids might learn something.
For example, we are currently living the idea of capitalism taken to the extreme, where one man can own a trillion dollars while others can't afford healthcare or education, and it's clearly becoming more and more nonsensical to allow this. Let's try swinging the needle in the other direction for a while.