Court costs are not the same as legal fees.
I just got finished with a lengthy civil suit and we won. We were award $45,000 in court costs (basically to pay for the court reporter during months of depositions). The legal fees were well over $500,000.
Second person in the case waited for the verdict. Then he sued. Insurance company settled out of court for less than $500,000 and felt they came out ahead. We did nothing wrong and were completely vindicated in the first trial.