Slavery was Legal.
Colonialism was Legal.
Jim Crow was Legal.
Apartheid was Legal.
Legality is a matter of Power, NOT Justice.