The Gender and Intergenerational Consequences of the Demographic Dividend