Actually, you can go back to season 2 in Namibia for the origin of this.
In that season, and in a couple of subsequent seasons the teams were instructed in the clue instructions not to exceed a stated speed limit. The stated limited was a lower speed than what was legally permitted. In these cases, the teams would receive a penalty of 30 minutes plus the amount of time saved from speeding. (The documentation was in the film shot by the camera crew, who were recording the speedometer during the task.)
When teams violated local traffic laws, the teams has to deal with the local police on the matter, and pay whatever fine was assessed. That was the case in this last episode with both teams that had to pay the fine out of their cash they had accumulated by that point in the Race.
That latter rule also applies to violating other traffic laws, as was the case for one team that ran afoul of the Moscow police; I'd have to look for which season, but the show did show the team getting a traffic ticket (IIRC, the team had driven in to an area where traffic had been temporarily blocked.)
Hope that helps.