How can I avoid having to pay legal costs?