The evolution of civil society