Learned borrowing from Late Latin logicus, from Ancient Greek λογικός (logikós, “of or relating to speech or reason or reasoning, rational, reasonable”).
Practice speaking and memorizing "lógico" and many other words and sentences in Portuguese.