Drugs are not legal in Portugal.
Educate yourself:
https://en.m.wikipedia.org/wiki/Drug_policy_of_Portugal#:~:text=Consumption and possession,-In Portugal%2C recreational&text=Portugal signed all the UN,punishable crime) but repression persists.
But I agree that the war on drugs failed miserably and was won by the drugs.