There aren't any limitations on Upwork related to the scenario you proposed but we can't provide legal advice and would suggest consulting a local legal advisor. Thank you.
Is Upwork the employer, Does Upwork pay the income tax to the country ?
Is there any legal documentation about this on Upwork you can point me to ?
I would like to check that it's lawful for me to hire using this platform.