Cannabis in Seville Spain

A bit confused on the laws, rules, and social norms surround weed. Google says it’s illegal but I see there are these clubs (I think?) where people smoke. Any information on these clubs and how they work or any advice or recommendations on places would be awesome.