In landmark encyclical, pontiff compares AI to nuclear power and urges global rules grounded in conscience and responsibility