"Brazil is planning legislation, dubbed Marco Civil de Internet, that would provide a civil rights framework for that country's Internet users. The legislation has been criticised by Google and Facebook for its requirement that data be stored within Brazil's borders rather than being shipped back to US data centres."
That is the wonder of the Internet. Leave that country and just let the users access the sites being hosted in other countries. You cannot break the law when you are not in the country and as such not subject to their laws. The users will continue to use your services and then the country can either block access to your sites or let it stand.
What will really happen; Google Facebook and the others will huff and puff and then just put a data center there. That is all that legislation is designed to do anyway. if you want to sell products in Brazil, they make sure it is produced there. Eventually the ITC will be called in and Brazil and companies in Brazil could see that their products cannot be imported elsewhere without a heavy tariff on them.