I'm not sure on the legality of 12 months, but a cancellation clawback is typical. The role I was in the clawback was within the first 60 days.
For instance, what if you're a Zenefits salesperson who closed an account 6 months ago before their compliance issues hit headlines. If that customer then cancels based on the news, will the commission be clawed back?