https://github.com/Automattic/legalmattic
Of course I'm not a lawyer and it's probably a good idea to get a lawyer to review yours, blah blah blah.