Adverb of зако́нный
form of зако́нный
Very rarely used word (top 20,000)
it is right
Also: it is in accordance with the law, lawfully, legally