legally
verb
°As permitted by law; not contrary to law.
"You can legally park in the lot on weekends without paying the fee, they won't ticket you."
°From a legal perspective.