https://elequidistante.github.io/graficos-jongonzlz/pensione...
https://elequidistante.github.io/graficos-jongonzlz/pensione...
https://elequidistante.github.io/graficos-jongonzlz/pensione...
And maybe this is the most illustrative:
https://i.redd.it/uwvgxycxhjeg1.jpeg
So yes, the reason why we are underinvesting in pretty much everything is basically pensions. GDP is up, tax collection is up, debt to GDP is sligthly decreasing... but pension expenses keep growing at a fast pace so there's less and less money for everything else. And I say this with both of my parents earning the maximum pension, so I don't have an axe to grind, but it's just reality.
At the same time, medical advances make it so that retirees live longer than before: https://relojpublico.es/poblacion/esperanza-de-vida
If someone has solutions that would not cause widespread riots, I'm sure most goverments of countries in a similar situation would be all ears.