The Legal Environment and Risks for Foreign Investment