In the World Bank's annual Doing Business study, which ranks 183 countries based on their friendliness to investors, Brazil sits near the bottom third in categories including enforcing contracts, starting a business and dealing with construction permits -- all areas where courts play a role.