Brazil’s global balancing act is trickier than ever