/* ============================================
   Dorally AI — "Digital Aurora" Design System
   All colors as CSS custom properties for
   rapid global theming.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  /* ── Brand Palette ── */
  --pulse-violet:    #4F5BFF;
  --core-black:      #0b0d24;
  --neon-cyan:       #A45CFF;

  /* ── Extended Palette (derived) ── */
  --violet-soft:     #4F5BFF33;
  --violet-glow:     #4F5BFF66;
  --cyan-soft:       #A45CFF22;
  --cyan-glow:       #A45CFF66;
  --surface:         #141838;
  --surface-glass:   rgba(20, 24, 56, 0.55);
  --surface-hover:   rgba(79, 91, 255, 0.08);
  --border:          rgba(255, 255, 255, 0.06);
  --border-glow:     rgba(79, 91, 255, 0.25);
  --text-primary:    #F0EFF4;
  --text-secondary:  #9896A3;
  --text-dim:        #5E5C6B;
  --danger:          #FF4E6A;

  /* ── Gradients ── */
  --grad-brand:      linear-gradient(135deg, var(--pulse-violet), var(--neon-cyan));
  --grad-violet:     linear-gradient(135deg, var(--pulse-violet), #9B3BFC);
  --grad-glow:       linear-gradient(135deg, var(--violet-soft), var(--cyan-soft));
  --grad-surface:    linear-gradient(180deg, var(--surface) 0%, var(--core-black) 100%);

  /* ── Spacing ── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* ── Radius ── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.4s;
  --dur-slow: 0.7s;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  background-color: var(--core-black);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--violet-soft); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pulse-violet); }

/* ── Selection ── */
::selection { background: var(--violet-soft); color: var(--neon-cyan); }


/* ============================================
   AURORA BACKGROUND
   ============================================ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.aurora__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  will-change: transform;
  contain: layout style;
}

.aurora__orb--violet {
  width: 500px;
  height: 500px;
  background: var(--pulse-violet);
  top: -10%;
  left: -5%;
  animation: aurora-drift-1 25s linear infinite alternate;
}

.aurora__orb--cyan {
  width: 400px;
  height: 400px;
  background: var(--neon-cyan);
  bottom: -15%;
  right: -10%;
  animation: aurora-drift-2 30s linear infinite alternate;
}

.aurora__orb--mix {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--pulse-violet), var(--neon-cyan));
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: aurora-drift-3 20s linear infinite alternate;
}

@keyframes aurora-drift-1 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-40px, 100px); }
}
@keyframes aurora-drift-2 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(50px, -60px); }
}
@keyframes aurora-drift-3 {
  0%   { transform: translate(-50%, -50%); }
  100% { transform: translate(-55%, -45%); }
}

/* Desativa animacoes para usuarios que preferem movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .aurora__orb { animation: none; }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ============================================
   LAYOUT
   ============================================ */
.wrap {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(20, 20, 24, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
}

.brand-link:hover,
.brand-link:focus,
.brand-link:active,
.brand-link:visited {
  text-decoration: none;
  color: inherit;
  outline: none;
  box-shadow: none;
}

.nav__logo {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-out);
}

.nav__cta:hover {
  background: var(--surface-hover);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px var(--violet-soft);
  transform: translateY(-1px);
}

.nav__cta i { color: var(--neon-cyan); font-size: 1.05rem; }

.nav__cta--account {
  border-color: var(--border-glow);
  background: var(--surface);
}
.nav__cta--account i {
  color: var(--pulse-violet);
}

.nav__platforms {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sessão: "Entrar" sem login; com login, o avatar leva ao app (site-session.js). */
.nav__right { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
#meAvatarLink { border-radius: 50%; text-decoration: none; }
.me-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-glow); object-fit: cover; background: var(--grad-brand);
  color: #fff; font: 700 0.8rem/1 'DM Sans', sans-serif;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
#meAvatarLink:hover .me-avatar { transform: scale(1.06); box-shadow: 0 0 18px var(--violet-soft); }
#meAvatarLink:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }


/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-md) var(--space-xl);
  position: relative;
}

.hero__content {
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  background: rgba(20, 24, 56, 0.7);
}

.hero__badge i { color: var(--neon-cyan); font-size: 0.7rem; }
.hero__badge span { color: var(--pulse-violet); font-weight: 600; }

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.hero__title .gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--grad-brand);
  color: var(--core-black);
  box-shadow: 0 4px 24px var(--violet-soft);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 40px var(--violet-glow);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

/* Shimmer effect */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s var(--ease-out);
}
.btn--primary:hover::after { left: 120%; }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-glow);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

/* Platform-specific button variant */
.btn--platform {
  background: var(--platform-color, var(--pulse-violet));
  color: #fff;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--platform-color, var(--pulse-violet)) 30%, transparent);
}

.btn--platform:hover {
  box-shadow: 0 8px 40px color-mix(in srgb, var(--platform-color, var(--pulse-violet)) 50%, transparent);
}

.cta-box__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ============================================
   SECTION DIVIDER (wave)
   ============================================ */
.divider {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.divider__wave { fill: var(--surface); opacity: 0.5; }
.divider__wave--front { fill: var(--core-black); opacity: 1; }


/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pulse-violet);
  margin-bottom: var(--space-md);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--pulse-violet);
  opacity: 0.4;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-title .gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  background: rgba(20, 24, 56, 0.75);
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  overflow: hidden;
}

/* Glow on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 50% 0%,
    var(--violet-soft) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25),
              0 0 20px var(--violet-soft);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  background: var(--grad-glow);
  border: 1px solid var(--border);
  color: var(--neon-cyan);
  transition: all var(--dur-med) var(--ease-out);
}

.feature-card:hover .feature-card__icon {
  background: var(--grad-brand);
  color: var(--core-black);
  border-color: transparent;
  box-shadow: 0 4px 20px var(--violet-soft);
}

.feature-card__title {
  position: relative;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-card__desc {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================
   STEPS ("Como Começar")
   ============================================ */
.steps {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 2;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.step {
  position: relative;
  text-align: center;
}

.step__number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-sm);
  transition: opacity var(--dur-med) var(--ease-out);
}

.step:hover .step__number { opacity: 0.6; }

.step__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.step__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.8rem;
  right: -1rem;
  width: calc(100% - 3rem);
  height: 1px;
  background: linear-gradient(90deg, var(--pulse-violet), transparent);
  opacity: 0.15;
  display: none;
}

@media (min-width: 769px) {
  .step:not(:last-child)::after { display: block; right: calc(-1 * var(--space-lg) / 2); width: var(--space-lg); }
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--space-2xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-box {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-xl);
  background: rgba(20, 24, 56, 0.8);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    var(--violet-soft) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-box .section-title { margin-bottom: var(--space-md); }

.cta-box p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer__links a:hover { color: var(--neon-cyan); }


/* ============================================
   AUTH POPUP
   ============================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 20, 24, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-med) var(--ease-out);
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 92%;
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
              0 0 60px var(--violet-soft);
  animation: popup-enter var(--dur-slow) var(--ease-spring) forwards;
}

@keyframes popup-enter {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}

.popup__close:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: var(--cyan-soft);
}

.popup__icon {
  font-size: 3.5rem;
  margin: var(--space-md) 0 var(--space-lg);
}

.popup__icon.success { color: var(--neon-cyan); }
.popup__icon.error   { color: var(--danger); }

.popup__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.popup__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.popup__countdown {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: var(--space-md);
}

.popup .btn { margin-top: var(--space-lg); }


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid    { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
}

@media (max-width: 768px) {
  .nav__platforms { gap: 6px; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 10px 14px; }

  .hero { min-height: auto; padding: 8rem var(--space-md) var(--space-xl); }
  .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }

  .features__grid { grid-template-columns: 1fr; }
  .steps__grid    { grid-template-columns: 1fr; gap: var(--space-lg); }
  .step:not(:last-child)::after { display: none; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Privacidade e Termos ficam no rodapé: a navegação cabe e o "Entrar"/avatar não sai da tela. */
  .nav__cta--legal { display: none; }
  .nav__name { white-space: nowrap; font-size: 1.15rem; }
  .nav__platforms { gap: 6px; }
  .nav__right { margin-left: 4px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .feature-card { padding: var(--space-lg); }
  .cta-box { padding: var(--space-lg) var(--space-md); }
}


/* ============================================
   LEGAL PAGES (Privacidade / Termos)
   ============================================ */
.legal {
  padding: 8rem 0 var(--space-3xl);
  position: relative;
  z-index: 2;
}

.legal__header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.legal__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.legal__title .gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal__date {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal__body {
  max-width: 780px;
  margin: 0 auto;
}

.legal__body p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
  font-size: 0.95rem;
}

.legal__body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-left: 16px;
  border-left: 3px solid var(--pulse-violet);
}

.legal__body ul,
.legal__body ol {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
  line-height: 1.8;
  font-size: 0.95rem;
}

.legal__body ul ul {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.legal__body li {
  margin-bottom: var(--space-sm);
}

.legal__body a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-decoration-color: var(--cyan-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast);
}

.legal__body a:hover {
  text-decoration-color: var(--neon-cyan);
}

.legal__body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Links dentro dos cartões: cor de destaque legível no fundo escuro (antes, azul padrão). */
.feature-card__desc a { color: var(--neon-cyan); text-underline-offset: 3px; }
.feature-card__desc a:hover { color: var(--text-primary); }

/* Aviso depois de excluir a conta (TODO 02 ID-12) */
.account-deleted { max-width: 720px; margin: 96px auto 0; padding: 14px 18px; border: 1px solid var(--border-glow); border-radius: 14px; background: var(--surface); color: var(--text-primary); text-align: center; }

/* Páginas de funcionalidades (status por área) e "Como conectar" (seo.php) */
.hero--compact { min-height: auto; padding-top: calc(var(--space-3xl) + var(--space-xl)); }
.hero--compact .hero__subtitle { max-width: 680px; }
.area-status { position: relative; display: inline-block; margin: 0 0 var(--space-sm); padding: 3px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.area-status--disponivel { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.35); }
.area-status--parcial { color: #fcd34d; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); }
.area-missing { margin-top: var(--space-sm); }
.connect-server { max-width: 760px; margin: 0 auto var(--space-xl); text-align: center; color: var(--text-secondary); line-height: 1.8; }
.connect-server code { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--text-primary); word-break: break-all; }
.features__grid--guides { grid-template-columns: repeat(2, 1fr); }
.guide-steps { position: relative; margin: 0; padding-left: 1.2rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }
.guide-steps li + li { margin-top: 6px; }
@media (max-width: 720px) { .features__grid--guides { grid-template-columns: 1fr; } }

/* No celular o fim da página não pode virar um vão: texto → rodapé curto, sem 8rem + 2×4rem vazios.
   Fica no fim do arquivo para valer sobre .legal/.footer declarados acima. */
@media (max-width: 768px) {
  .legal { padding: 6rem 0 var(--space-lg); }
  .footer { padding: var(--space-lg) 0 calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); }
  .footer__inner { gap: var(--space-sm); }
  .legal__body h3:last-child, .legal__body p:last-child { margin-bottom: 0; }
}
