legally
//ˈliːɡəli//
Adverb
1
In a manner that conforms to or is permitted by law; lawfully.
The company is legally required to provide safety equipment to all employees.
2
From a legal perspective; according to the law.
Legally, the contract is still valid.