Impressions of danger influence impressions of people: an evolutionary perspective on individual and collective cognition