That’s a question for a Spanish lawyer.
But it doesn’t really matter whether or not it’s legal, because even if it’s legal, it’s a crazy, bad idea.
You keep asking the same questions repeatedly but completely ignoring the many well informed and helpful replies you get.