Ignorance is frequently the cause of mistakes and discussions. Same with racism, it is caused by a high level of ignorance, which over time is turned into fear.
It is an ignorance of history, and inherent biases, with the lack of willingness to do something about it.
In a democracy, is it often taken for granted that laws and regulations are fair. However, that is not always the case.
Sometimes legislation can help reinforce unwanted attitudes so that racism arises. In this way, the system helps to perpetuate racist attitudes in society.
Legislation in a country can consciously, through laws and regulations, control our attitudes so that racism and inequality are reinforced and sustained. In this way, the system helps to perpetuate racist and unfortunate attitudes.