Didn't you sign an agency contract with a law firm before the lawsuit? Generally, the money of first instance is non-refundable, and the appeal fee is generally half of the lawyer's fee of first instance. Of course, you can also negotiate with a lawyer!
Further reading: How to buy insurance, which is good, and teach you how to avoid these "pits" of insurance.