other provision of law, it shall be an unlawful practice and otherwise unlawful for an employer to enforce or attempt to enforce a nondisparagement clause or nondisclosure clause described in paragraph (1). (b) Settlement or separation agreements (1) In General The provisions of subsection (a) do not apply to a nondisclosure clause or nondisparagement clause contained in a settlement agreement or separation agreement that resolves legal claims or disputes when— (A) such legal claims accrued or such disputes arose before the settlement agreement or separation agreement was executed