I am a US citizen living in Spain with a non-lucrative visa for a year. I have an opportunity to work from home in Spain for a USA based company with no presence in Spain. All payments will go to my bank in the US. Is this legal? Are there any legal or tax issues?