Did you mean licitly?
licitly
verb
°In a licit manner, legally, in a manner compatible with law.