I don't see how something can be both legal and unethical. The way we write legislation, I think it's impossible for the two to coexist.
However, we're talking hypotheticals here. I'd rather you provide an example of a case in which you think there's a legal issue, but not an ethical one.