Visa loses $1.8 billion on legal costs