You’re describing what officials do when they use laws, not what justice is. Laws can be unjust. And if an unjust law is applied, that can't be called justice. So justice must be something independent of the laws. What is "justice"?
Bro sorry I can't give definision of Justice