A Hong Kong court has found 14 pro-democracy figures guilty of subversion charges under a 2020 national security law imposed by Beijing.