Re: Is this legal?
US, forbid discrimination on the basis of "National Origin",
"National Origin" is irrelevant to current country of residence.
E.g., most government jobs require citizenship of the nation of that government, irrespective of the national origin of the employee.