> You can negotiate these things while selling.
Can you do so in a legally-binding way? Surely if you are selling then they own the company, the staff, etc and can do whatever they want?
To do otherwise would mean that you still retain ownership and control of the company, thus not legally "selling".