Protection for Minorities

In a Direct Democracy the majority vote might be opposed to the minority vote, and the majority is not always right.  The majority might vote for racist policies or wars of aggression or legislation that goes against the moral view of a minority.  How does a Direct Democracy protect the minority? A Direct Democracy which…