It was legal for them to say, "Rosa, you need to go to the back of the bus, you are a second-class citizen, and because these four gentlemen who just got on the bus are white, that makes them superior to you, so you need to go to the back of the bus, please, and thank you."