The dual evolutionary foundations of political ideology