Etymology
Today it means: Not in a legal sense. Full definition →
From unlegal + -ly. Piecewise doublet of unloyally.
Etymology from Wiktionary, CC BY-SA 4.0.