legally
Pronunciation:
/ˈliːɡəli//ˈliːɡəli/adverb
Definitions
As permitted by law; not contrary to law.
Example: You can legally park in the lot on weekends without paying the fee, they won't ticket you.
From a legal perspective.
Example: Legally, I think you are covered, but there are angry guys with baseball bats outside.