I never siad it was illegal, I said it was wrong. Big difference.
You said it was wrong, not that you disagree with it. Also a big difference. Costco sets it's own policy, and it's up to them to decide the right and wrong of it. Not you and not me.