The legal system and independent courts etc are an infrastructure it depends on - Google had to leave China due to problems with the local legal system
Google has to leave china for political reasons. The legal system rather is incredibly malleable to the needs of officials (lots of Chinese internet companies are allowed to ignore laws that foreign companies are not).