Answer
The last Brazilian club that Rivaldo played for before retiring was Mogi Mirim. He played for the club for two seasons, from 2012 to 2013. He was a key player for the club during his time there, helping them to win the Campeonato Paulista Série A2 in 2013. He retired from professional football in 2014.