You apply for the Spanish Non-Lucrative Visa at the nearest Spanish consulate or embassy in your home country or country of legal residence.