Complex sentence: He retired in his country at almost 40 with Cabofriense, then appeared in a few games with the Portuguese beach soccer team courtesy of his previously obtained citizenship.
Split into simpler sentences: He retired in his country at almost 40, last playing for Cabofriense. He then appeared in a few games with the Portuguese beach soccer team, courtesy of his previously obtained citizenship.