A life-course perspective on legal status stratification and health