Tight rules helped mitigate crisis in Brazil