This is the 7589th most frequent Polish word.
legalnie
Legally.
The word 'legalnie' in this sentence is an adverb describing the manner of acting, emphasizing compliance with the law.
Czy jesteś pewien, że możemy działać legalnie?
Are you sure we can act legally?
Here, 'legalnie' is again an adverb describing how the company operates, confirming adherence to legal regulations.
Jego firma działa w kraju całkowicie legalnie.
His company operates in the country completely legally.
In this sentence, 'legalnie' indicates the adverbial manner of the act of purchasing, stressing that it was done in accordance with the law.