Any foreigner, resident or non-resident has the same rights as a citizen, except for voting rights in presidential and municipal elections and can, therefore, purchase and own Costa Rica real estate legally.