offered a buyout for several months of salary to quit.
That's actually what I understand a layoff is. The company must compensate for some time in relation to the antiquity of the working relationship.
You might be referring to a firing? That's when the company doesn't need to compensate you because you fucked up or something. Where I live, Spain, firing someone is very hard but laying someone off isn't.