Law'ful-ly, adv.

adverb

In accordance with law; without violating law; legally.