TORONTO (AP) — Canada's highest court struck down the country's anti-prostitution laws Friday, a victory for sex workers who had argued that a ban on brothels and other measures made their profession more dangerous. The ruling drew criticism from the conservative government and religious leaders.

The court, ruling in a case brought by three women in the sex trade, struck down all three of Canada's prostitution-related laws: bans on keeping a brothel, making a living from prostitution, and street soliciting. The ruling won't take effect immediately, however, because the court gave Parliament a year to respond with new legislation, and said the existing laws would remain in place until then.

The decision threw the door open for a wide and complex debate on how Canada should regulate prostitution, which isn't in itself illegal in the country.

Robert Leckey, a law professor at McGill University, said the court found that the law did nothing to increase safety, but suggested in its ruling that more finely tailored rules might pass constitutional scrutiny in the future.

"Some of the (current) provisions actually limit sex workers' ability to protect themselves," Leckey said.

The court found that Canada's prostitution laws violated the guarantee to life, liberty and security of the person. For instance, it said the law prohibiting people from making a living from prostitution is too broad.

It is intended "to target pimps and the parasitic, exploitative conduct in which they engage," the ruling said. "The law, however, punishes everyone who lives on the avails of prostitution without distinguishing between those who exploit prostitutes and those who could increase the safety and security of prostitutes, for example, legitimate drivers, managers, or bodyguards."

Other countries around the world, particularly in Europe, are having similar debates. Earlier this month, France's lower house of parliament passed a bill that would decriminalize prostitutes and fine their customers. Some argue such laws empower prostitutes against their potential exploiters but others — including some prostitutes — say it only drives their practice further underground and makes it more dangerous.

Story continues

Sex-trade workers in Canada stepped up their fight for safer working conditions following the serial killings of prostitutes by Robert Pickton in British Columbia. Pickton was convicted in 2007 of killing six women whose remains were found on his farm outside Vancouver. Years earlier, authorities had closed down a Vancouver house for sex workers that many had considered a safe haven just as the disappearance of several prostitutes began raising fears that a serial killer was prowling the streets.

The Supreme Court ruling upheld an Ontario Court of Appeal ruling last year that, among other findings, struck down the ban on brothels on the grounds that it endangered sex workers by forcing them onto the streets.

"I am shocked and amazed that sex work and the sex work laws that affect our lives on a daily basis will within a year not cause us harm anymore," said Amy Lebovitch, who brought the case along with Terri-Jean Bedford and Valerie Scott.

Justice Minister Peter MacKay said the government was "concerned" by the decision and is "exploring all possible options to ensure the criminal law continues to address the significant harms that flow from prostitution to communities, those engaged in prostitution, and vulnerable persons."

Chief Justice Beverley McLachlin, writing on behalf of the court, said Canada's social landscape has changed since 1990, when the Supreme Court upheld a ban on street solicitation.

"These appeals and the cross-appeal are not about whether prostitution should be legal or not," she wrote. "They are about whether the laws Parliament has enacted on how prostitution may be carried out pass constitutional muster. I conclude that they do not."

Don Hutchinson, vice president of the Evangelical Fellowship of Canada, a religious group that opposes the decriminalization of prostitution, warned that the ruling could lead to increased human trafficking and victimization of people.

"I think we're going to see an increase in cross-border traffic for those hoping to access our brothels," Hutchinson said.

The last time Canada's Supreme Court considered the country's prostitution laws was in 1990, when it upheld a ban on street solicitation. The two women then on the high court dissented from the ruling. This time, all six men on the court justices sided with their three female colleagues.

"The harms identified by the courts below are grossly disproportionate to the deterrence of community disruption that is the object of the law," McLachlin wrote. "Parliament has the power to regulate against nuisances, but not at the cost of the health, safety and lives of prostitutes."

The Supreme Court appeared to acknowledge the Pickton case in the ruling, saying: "A law that prevents street prostitutes from resorting to a safe haven such as Grandma's House while a suspected serial killer prowls the streets, is a law that has lost sight of its purpose."

Grandma's House was a safe house established to support street workers in Vancouver's drug and violence-riddled Downtown Eastside. Authorities considered the house a brothel and raided and closed it in 2000. The brothel charges were stayed four years later, but by then it was too late.

Parliament could ask the Supreme Court for an extension on the effect of the ruling, if it has tabled legislation but can't meet the one-year deadline.

The ruling told Parliament it needs to reshape the legal framework around prostitution.