In Denmark my employeer can’t make non-compete contract for more that 12 month, during which I’m entitled to 60% of my salery. It’s also only valid within the same field. That is: You can’t jump from Microsoft, developing Windows, to Apple and work on macOS, but you can go to Twitter.