Once you have lived in a different country for two years, you are subject to the laws of that country if you divorce. So it is important to talk to a legal specialist to establish what rules apply under Portuguese law and what position you would be in.