Deductions & credits

No.  Your information is out of date.  You can deduct legal fees related to self-employment on schedule C.  But legal fees related to a W-2 job are a miscellaneous itemized deduction subject to the 2% rule, and this entire class of deduction was eliminated by the Tax Cut and Jobs Act signed in December 2017, and covering tax years 2018-2025.