https://www.vatican.va/roman_curia/pontifical_councils/justp... says:
d. Justice
201. Justice is a value that accompanies the exercise of the corresponding cardinal moral virtue[441]. According to its most classic formulation, it “consists in the constant and firm will to give their due to God and neighbour”[442]. From a subjective point of view, justice is translated into behaviour that is based on the will to recognize the other as a person, while, from an objective point of view, it constitutes the decisive criteria of morality in the intersubjective and social sphere[443].
The Church's social Magisterium constantly calls for the most classical forms of justice to be respected: commutative, distributive and legal justice[444]. Ever greater importance has been given to social justice[445], which represents a real development in general justice, the justice that regulates social relationships according to the criterion of observance of the law. Social justice, a requirement related to the social question which today is worldwide in scope, concerns the social, political and economic aspects and, above all, the structural dimension of problems and their respective solutions[446].
202. Justice is particularly important in the present-day context, where the individual value of the person, his dignity and his rights — despite proclaimed intentions — are seriously threatened by the widespread tendency to make exclusive use of criteria of utility and ownership. Justice too, on the basis of these criteria, is considered in a reductionist manner, whereas it acquires a fuller and more authentic meaning in Christian anthropology. Justice, in fact, is not merely a simple human convention, because what is “just” is not first determined by the law but by the profound identity of the human being[447].
203. The full truth about man makes it possible to move beyond a contractualistic vision of justice, which is a reductionist vision, and to open up also for justice the new horizon of solidarity and love. “By itself, justice is not enough. Indeed, it can even betray itself, unless it is open to that deeper power which is love”[448]. In fact, the Church's social doctrine places alongside the value of justice that of solidarity, in that it is the privileged way of peace. If peace is the fruit of justice, “today one could say, with the same exactness and the same power of biblical inspiration (cf. Is 32:17; Jas 3:18): Opus solidaritatis pax, peace as the fruit of solidarity”[449]. The goal of peace, in fact, “will certainly be achieved through the putting into effect of social and international justice, but also through the practice of the virtues which favour togetherness, and which teach us to live in unity, so as to build in unity, by giving and receiving, a new society and a better world”[450].