Hi, why not live in the Algarve, close to Spain, like in Tavira, only a few minutes from the border?
I was told by the international tax advisors in Tavira, that one can have a Portuguese company, and be taxed "as a personal company transparently" by only 20% (Under NHR) for the income you earn...