/* ========================================================= PÁGINA TERMOS ========================================================= */

.terms-page {
  width: 100%;
  min-height: 100vh;
  padding: 3.5rem 1.25rem 4.5rem;
  background: var(--bg-page);
  background-image: var(--mesh-teal);
  background-repeat: no-repeat;
}

.terms-container {
  width: 100%;
  max-width: 52.5rem;
  margin: 0 auto;
}

/* ========================================================= VOLTAR ========================================================= */

.terms-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.875rem;
  transition: color var(--ease-premium), transform var(--ease-premium);
}

.terms-back-link:hover {
  color: var(--brand-teal);
  transform: translateX(-2px);
}

.terms-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
}

/* ========================================================= CABEÇALHO ========================================================= */

.terms-header {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1.375rem;
  border-bottom: 1px solid var(--border-soft);
}

/* Marcador decorativo teal→dourado acima do título (acento premium) */
.terms-header::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.25rem;
  margin-bottom: 1.125rem;
  border-radius: var(--r-pill);
  background: var(--grad-line);
}

.terms-header h1 {
  font-size: 2.125rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.03em;
}

/* Fio fino teal→dourado sob o título */
.terms-header h1::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 0.1875rem;
  margin-top: 1rem;
  border-radius: var(--r-pill);
  background: var(--grad-line);
}

/* ========================================================= CONTEÚDO ========================================================= */

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.terms-section {
  position: relative;
  background: var(--grad-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--r-xl);
  padding: 2rem 2.125rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm), var(--card-highlight);
  transition: transform var(--ease-premium), box-shadow var(--ease-premium), border-color var(--ease-premium);
}

/* Fio teal→dourado no topo do card (revela no hover) */
.terms-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.1875rem;
  background: var(--grad-line);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.terms-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--card-highlight);
  border-color: rgba(0, 101, 78, 0.2);
}

.terms-section:hover::before {
  opacity: 1;
}

.terms-section h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

/* Acento teal antes do título da seção (hierarquia premium) */
.terms-section h2::before {
  content: "";
  flex-shrink: 0;
  width: 0.25rem;
  height: 1.1875rem;
  border-radius: var(--r-pill);
  background: var(--grad-teal);
}

.terms-section p {
  font-size: 0.9375rem;
  line-height: 1.72;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 47.5rem;
}

.terms-section a {
  color: var(--brand-teal);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease-premium);
}

.terms-section a:hover {
  color: var(--brand-teal-700);
  text-decoration: underline;
}

/* ========================================================= RODAPÉ ========================================================= */

.terms-footer {
  margin-top: 2.375rem;
  padding-top: 0.375rem;
}

.terms-footer p {
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-muted);
}

/* ========================================================= RESPONSIVO ========================================================= */

@media (max-width: 768px) {
  .terms-page {
    padding: 2.25rem 1rem 3.25rem;
  }

  .terms-container {
    max-width: 100%;
  }

  .terms-back-link {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .terms-header {
    margin-bottom: 1.625rem;
    padding-bottom: 1.125rem;
  }

  .terms-header h1 {
    font-size: 1.625rem;
  }

  .terms-content {
    gap: 1.125rem;
  }

  .terms-section {
    padding: 1.5rem 1.375rem;
  }

  .terms-section h2 {
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
  }

  .terms-section p {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .terms-footer {
    margin-top: 1.875rem;
  }

  .terms-footer p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .terms-page {
    padding: 1.5rem 0.875rem 2.5rem;
  }

  .terms-back-link {
    font-size: 0.8125rem;
    gap: 0.375rem;
  }

  .terms-back-icon {
    font-size: 1rem;
  }

  .terms-header h1 {
    font-size: 1.4375rem;
  }

  .terms-section {
    padding: 1.375rem 1.25rem;
  }

  .terms-section h2 {
    font-size: 1rem;
  }

  .terms-section p {
    font-size: 0.8125rem;
    line-height: 1.65;
  }
}
