The Democratic Foundations of the Just City