1. Torture is committed by any authority or public official who, abusing their position, and with the aim of obtaining a confession or information from any person, or of punishing them for any act they have committed or are suspected of having committed, or for any reason based on discrimination, subjects them to conditions or procedures that, by their nature, duration, or other circumstances, cause them physical or mental suffering, the suppression or impairment of their cognitive, intellectual, or decisional faculties, or that in any other way violate their moral integrity. The perpetrator of torture shall be punished with imprisonment for two to six years if the offense is serious, and for one to three years if it is not. In addition to the aforementioned penalties, a sentence of absolute disqualification from holding public office for eight to twelve years shall be imposed in all cases.
2. The same penalties shall apply, respectively, to the authority or official of penitentiary institutions or of centers for the protection or correction of minors who commit, with respect to detainees, inmates or prisoners, the acts referred to in the previous section.