There are some terms that are not allowed in a contract. I believe most deed restrictions are among those terms.