Legally
(
adv.
) In a legal manner.