It seems obvious: Europeans can buy property in Spain without any restrictions.
Buyers from outside the EU should look into rules for residency and possible long term stays. Depending on the amount of investment and country of origin, situations change.