What is the meaning of Legally?

As permitted by law; not contrary to law.

From a legal perspective.

Source: wiktionary.org