legally

adverb
  1. in a way that is permitted or required by law
  2. from the perspective of the law; in legal terms

Examples