By Pedro Fonseca
RIO DE JANEIRO (Reuters) - Brazil passed key anti-doping legislation on Thursday that avoided the embarrassing possibility of the country being in breach of the rules at its own Olympic Games.
The legislation was officially confirmed in the government's official gazette, one day before the deadline set by the World Anti-Doping Authority (WADA).
The decree creates one tribunal for doping cases across all sports, as WADA demanded in November when it named Brazil one of the countries not in compliance with its guidelines. Until now, state and national courts heard anti-doping cases.
"Trials on Brazilian soil regarding doping in sport must take place in the Sports Anti-Doping Justice (system)," the official announcement said.
The move also seeks to speed up hearings to the international standard of a maximum of 21 days, less than the maximum of 60 days more common in Brazil.
Rio de Janeiro will host South America's first Olympic Games in August.
(Writing by Andrew Downie, editing by Alan Baldwin)