Legislating morality