Is this legal?

I don’t feel one ounce of sorrow. They choose to buy a house that allowed others to dictate what they can do with their home.