Pope Leo calls for global regulation of AI, warns of conflict risks, and apologises for Church’s role in slavery in a landmark document.