How can a non-European spend 6 months in Spain legally?

When we were planning our retirement, Terry and I dreamt of spending the winter months somewhere warm and sunny.  The winters in Vancouver are mild but dark and rainy.  I have always had this deep love for Europe and Terry loves it too.  Spain is Europe’s warmest and sunniest destination in the winter months.  So,…