Legal systems ultimately enshrine the human morality in law. Common law - through case law, civil law - by committees that the legislators consult, religious law - by morality described in legal texts. We're not talking about any of it though. We are talking about day-to-day things, like what does it mean to steal, what kind of consequences it has, are these consequences real or supposed, and other such things.
Law is generally blind to externalities of an action. An action itself is legal, illegal, or undefined in law. We're not in this domain if we talk about the consequences of piracy or how someone might feel about it. We are having a conversation on morals.
Shifting morals will eventually shift the law, of course.