From Old Galician-Portuguese cativo, probably a semi-learned borrowing from Latin captīvus.
Practice speaking and memorizing "cativo" and many other words and sentences in Portuguese.