The cognitive and cultural foundations of moral behavior