The difference between tax residency and legal residence: EU, UK, Portugal