Ok, so I just need to sell those stock, and Spain or wherever the stock is domiciled cannot claim later any capital gain tax.
I see that few countries have CGT for non-residents, e.g. France 30%, but I don't have anything from France.
This seems like a huge advantage for Beckham's Law, why...