https://portuguesepedia.com/lessons/84/
Past Subjunctive in Portuguese – Portuguesepedia
When the action is imagined, wished for, or dependent on something else—especially in the past—Portuguese turns to the Past Subjunctive.
subjunctive in portuguesepast