Question: three basic requirements with which formal law has to comply?
Answer: The state's power must be controlled by the law; the law sets limits on what the state can or cannot do.
No person is above the law; every individual regardless of their position is subject to it. ... 
No individual should be subjected to arbitrary arrest or punishment.