I've found a number of articles claiming that legalizing prostitution is linked to lowed STIs. I could link a dozen other articles. Every one makes slightly different claims but they all seem to imply legalized prostitution leads to lowering the spread of STIs. Of course it's no surprise I can also find plenty of claims for the opposite.
So my question. What does the overall abundance of evidence say about whether legalizing prostitution leads to a decrease, or increase, in the spread of STIs amongst the general population?
I'm asking about the spread of STI across a country's entire population. There seems to be evidence that legalization decreases the odds of sex workers getting an STI but I want to know if that's limited only to sex workers or if it's true for the population as a whole.
I'm asking specifically about legalization of prostitution. I'd be interested in the effects of decriminalization of prostitution if one wants to include that in an answer, but the answer should not focus entirely on decriminalization to the exclusion of legalization.