(1) Every provision in a written instrument relating to real property which purports to forbid or restrict the conveyance, encumbrance, occupancy, or lease thereof to individuals of a specified race, creed, color, sex, national origin, citizenship or immigration status, sexual orientation, families with children status, honorably discharged veteran or military status, or with any sensory, mental, or physical disability or the use of a trained dog guide or service animal by a person who is blind, deaf, or physically disabled, and every condition, restriction, or prohibition, including a right of entry or possibility of reverter, which directly or indirectly limits the use or occupancy of real property on the basis of race, creed, color, sex, national origin, citizenship or immigration status, sexual orientation, families with children status, honorably discharged veteran or military status, or the presence of any sensory, mental, or physical disability or the use of a trained dog guide or service animal by a person who is blind, deaf, or physically disabled is void.
(2) It is an unfair practice to insert in a written instrument relating to real property a provision that is void under this section or to honor or attempt to honor such a provision in the chain of title.