Law as a Framework for Justice and Fairness