Political philosophy

A statute grants a privilege to one social group while denying an equivalent protection to another. A critic says the statute is unjust even though it is validly enacted. What does the critic distinguish?