There are entire subspecialties of HR and Legal professionals who deal with specific laws like ERISA (the Employee Retirement Income Security Act) and more generally how the Internal Revenue Code affects employers and employees receiving various types of benefits.