법적으로, 합법적으로
In Korea, you can legally drive a car once you turn eighteen and pass the test.
한국에서는 열여덟 살이 되어 시험에 합격하면 법적으로 차를 운전할 수 있다.
The store was closed because it was not legally allowed to sell medicine without a license.
그 가게는 허가 없이 약을 파는 것이 법적으로 허용되지 않아 문을 닫았다.