In this case the author is an attorney, so can presumably understand a contract she signed.
And the non-disparagement wasnt in her hire agreement, it was in her severance agreement, in exchange for a negotiated amount of money. Author was wealthy enough to afford dedicated lawyers to review.