Intergenerational Justice: an Economic and Juridical Analysis