/* ==========================================================================
   PROSPECT - TERMOS DE SERVIÇO E CONTRATO (LGPD)
   PADRÃO VISUAL: APPLE HIG (Human Interface Guidelines)
   - Compacto (max-width: 480px)
   - Zero Emojis (Apenas Lucide Icons SVG)
   - Estilo iOS/macOS Inset Grouped, Typography SF Pro / Inter
   ========================================================================== */

/* Forçar tamanho compacto padrão Apple HIG para o modal */
#global-modal-card.apple-hig-modal,
.modal-content.apple-hig-modal {
  width: min(480px, 92vw) !important;
  max-width: 480px !important;
  max-height: 85vh !important;
  border-radius: 20px !important;
  background: #FFFFFF !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.22), 0 0 1px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Inter", sans-serif !important;
}

/* Header compacto Apple HIG */
.apple-hig-modal .modal-header {
  padding: 16px 20px 14px !important;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12) !important;
  background: #FFFFFF !important;
}

.apple-hig-modal .modal-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1C1C1E !important;
  letter-spacing: -0.3px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.apple-hig-modal .modal-title i {
  color: #007AFF !important;
}

.apple-hig-modal .modal-close {
  background: rgba(118, 118, 128, 0.12) !important;
  width: 28px !important;
  height: 28px !important;
  color: #8E8E93 !important;
  transition: all 0.15s ease !important;
}

.apple-hig-modal .modal-close:hover {
  background: rgba(118, 118, 128, 0.24) !important;
  color: #1C1C1E !important;
}

/* Body compacto Apple HIG */
.apple-hig-modal .modal-body {
  padding: 16px 18px !important;
  background: #F2F2F7 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* Footer compacto Apple HIG */
.apple-hig-modal .modal-footer {
  padding: 12px 18px 14px !important;
  border-top: 0.5px solid rgba(60, 60, 67, 0.12) !important;
  background: #FFFFFF !important;
}

/* Callout de Isenção Apple HIG (Sem Emojis, apenas Lucide) */
.p-terms-hig-callout {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.p-terms-hig-callout-icon {
  width: 17px;
  height: 17px;
  color: #D97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.p-terms-hig-callout-body {
  font-size: 12px;
  color: #92400E;
  line-height: 1.45;
}

.p-terms-hig-callout-body strong {
  color: #78350F;
  font-weight: 600;
}

/* Apple Inset Grouped Card */
.p-terms-hig-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 0.5px solid rgba(60, 60, 67, 0.12);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.p-terms-hig-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.08);
}

.p-terms-hig-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.p-terms-hig-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007AFF;
  flex-shrink: 0;
}

.p-terms-hig-row-info {
  display: flex;
  flex-direction: column;
}

.p-terms-hig-row-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1C1C1E;
}

.p-terms-hig-row-subtitle {
  font-size: 11.5px;
  color: #8E8E93;
}

/* Botão Link 'Ler' */
.p-terms-hig-btn-read {
  background: rgba(0, 122, 255, 0.08);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #007AFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.p-terms-hig-btn-read:hover {
  background: rgba(0, 122, 255, 0.16);
}

/* Linha de Checkbox Apple HIG */
.p-terms-hig-checkbox-row {
  padding: 10px 14px 11px;
  background: #FAFAFC;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s ease;
}

.p-terms-hig-checkbox-row:hover {
  background: #F2F2F7;
}

.p-terms-hig-checkbox-row.has-error {
  background: #FEF2F2 !important;
  animation: termsShake 0.35s ease;
}

.p-terms-hig-checkbox-input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #007AFF;
  cursor: pointer;
}

.p-terms-hig-checkbox-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #2C2C2E;
}

.p-terms-hig-checkbox-text a,
.p-terms-hig-checkbox-text strong {
  color: #007AFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Botões do Rodapé Apple HIG */
.p-terms-hig-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 10px;
}

.p-terms-hig-btn-secondary {
  height: 38px;
  padding: 0 16px;
  background: rgba(118, 118, 128, 0.12);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1C1C1E;
  cursor: pointer;
  transition: all 0.15s ease;
}

.p-terms-hig-btn-secondary:hover {
  background: rgba(118, 118, 128, 0.2);
}

.p-terms-hig-btn-primary {
  height: 38px;
  padding: 0 20px;
  background: #007AFF;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-terms-hig-btn-primary:hover:not(:disabled) {
  background: #0062CC;
}

.p-terms-hig-btn-primary:disabled,
.p-terms-hig-btn-primary.blocked {
  opacity: 0.45;
  cursor: not-allowed;
}

.p-terms-hig-validation {
  font-size: 12px;
  color: #DC2626;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.p-terms-hig-validation.visible {
  display: inline-flex;
}

/* Document Reader Apple HIG (Texto limpo, sem emojis, tipografia clara) */
.p-terms-reader-body {
  font-size: 13px;
  line-height: 1.6;
  color: #3A3A3C;
}

.p-terms-reader-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1C1C1E;
  margin: 16px 0 6px;
  padding-bottom: 4px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.p-terms-reader-body h4:first-child {
  margin-top: 0;
}

.p-terms-reader-body h4 i {
  color: #007AFF;
  width: 15px;
  height: 15px;
}

.p-terms-reader-body p {
  margin: 0 0 10px;
}

.p-terms-reader-body ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.p-terms-reader-body li {
  margin-bottom: 4px;
}

.p-terms-reader-alert {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  color: #991B1B;
  font-size: 12.5px;
  line-height: 1.5;
}

.p-terms-reader-alert strong {
  color: #7F1D1D;
  font-weight: 600;
}

.p-terms-reader-alert-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #991B1B;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.4px;
}

.p-terms-reader-alert-header i {
  width: 15px;
  height: 15px;
  color: #EF4444;
}

@keyframes termsShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
