Legally

Webster's Dictionary of the English Language

·adv In a legal manner.