e.g., you can only be compensated (meaning stock options inclusive) 25 times what your lowest paid employee is paid.
Would this naturally raise the floor at companies as executives want to increase their own compensation?
I remember an idea like this being floated 15 years ago or so and on the surface it seems sound, but the devil is always in the details.
You can certainly try to address this, and I'm not saying it isn't worth trying. But I do think you'd be playing whack-a-mole with creative management consultancies and accountants trying to find workarounds for a very long time, and you'd need to be prepared for that.
It also doesn't really address the problem so much - while CEO pay is often entirely out of proportion, the money flow to investors is often a far bigger issue, and would also be a workaround: Ensure the CEO has enough shares, and gets to sell enough shares, and they have a vested interest in doing the work even with lower pay. E.g. there are plenty of CEO's on low pay because their ownership is sufficient.