If a teacher ridicules a student because of their religion, Intelligence, Gender, Gender identity, Race, Home life or anything else then they should absolutely be fired and banned from teaching unless they go through an intense training programme to teach them to respect their students for who they are and to focus on educating their students instead of judging them.
This happened to me. I looked it up and its ileagal. ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !