Non-compete clauses... yes, they are legal... but they must be fair in terms of time and geography.
You coulnd't have a non-compete clause for 20 years and over the whole world... but could have one for 1 year within the city limits... or something like that.
C