Once the procedure has been initiated, would it be legal in Spain?

There is a legal vacuum in this regard, as the law does not provide for what happens while the application is being decided. However, we can advise the interested person on the best ways to achieve legal residency.