The Ins and Outs of Deducting Legal Expenses