Remember racism is not illegal. Discrimination based on race in the workplace is.
Thoughtcrime is currently not illegal, but they (the media + the powers that be) are trying their damned hardest to make it so.
Remember that guy, Harvard University President or something, he was caught saying "maybe we shouldn't be so obsessed with pushing more women into math/science, after all women on average show less aptitude in those fields". He was vilified in the media as being worse than the Devil and Hitler combined. He was fired like the next day. All for saying what pretty much every average Joe knows already.
I swear, I'm all for high tech and scientific research, except when it comes to mental technology. Because if they ever make a thought detector, you just KNOW they're gonna use it to sniff out people with impure thoughts and round them up. They're trying to do it right now even though they don't have a mental detector.