In Portugal, to acquire permanent residency, you need to first get a temporary residence permit, and then after 5 years of legal residence with a valid residence permit, you can apply for a permanent residency. There are different pathways through investment programs, such as the D7 visa or the Golden visa, for those who have a passive income. However, you need to submit documentation like visa stamps or residence permits to prove your continuous residence in the country.