Yes, if any of the Social Security benefits are included in income. The portion of legal fees that are deductible are proportional to the taxable part of the Social Security benefit collected. The deduction is taken on Line 23 of Schedule A, miscellaneous itemized deduction subject to 2% of AGI.