If you want to apply for a non-remote job in another country, check the box “I have legal permission to work in the country” when you submit your application.
If you do not yet have the required documentation but plan to relocate soon, you can still apply and message the company to explain your situation.