Greater gender equality can help both men and women live longer, a new study finds