If you want to apply for a non-remote job in another country, you must check the box "I have legal permission to work in the country" when you send your application.
If you do not yet have the necessary documentation, but plan to relocate to that country soon, you can apply and send a message to the company explaining the situation.