Unchecked AI threatens democracy, warns UN chief