Pope takes on AI in first major document