Investor Protection and Income Inequality: Risk Sharing vs Risk Taking