Canadians in Spain & health care

Since returning from a lovely, long time in Spain (along the east coast)I am now seriously thinking of moving to Spain.
I have so many questions but what do you Canadians do for Health Care? Bess

I believe they buy private care, but there are some allowance for illegals to use the public system.  I am not sure that expats count.

Well...left my teaching job in Quebec this year just 2 years before retirement...married my Spanish mujeres...so lost everything from the home land..right now the family lawyers of my wife are taking care of everything for me here...and it's a hassle...got a card to have free hospital though...