The phrase
"questionable legality" means that something is in doubt or uncertain regarding whether it is legal or not. It suggests that there are reasons to question or have doubts about the legality of a particular action, behavior, or situation.
Full definition