I think you are screwed.
JJ has domestic lounges only at SDU and CWB. There used to be a lounge landside in GRU, but I believe that is closed.
On your return journey (if you are flying via GIG, there is a decent TAM lounge in the basement).
But a big slice of your 4+ hours might be spent waiting at the immigration...