Despite increased sales and attendance, legal costs weighed down SeaWorld Entertainment Inc.’s fourth quarter finances, resulting in a $24.2 million loss.

The Orlando-based theme park operator had announced Feb. 11 that it would pay $65 million to settle a class action suit filed in 2014, as well as a related derivative suit. It said about $45.5 million of that would come from insurance.