The legal problems don't always come with a warning, and when they do show up, they can be disruptive, expensive, and time-consuming.