Democracy doesn't automatically safeguard women and minorities.