/* ============================================================
   LEGAL PAGES — política de privacidade, cookies, termos
   Espelham a estética do index.html (hero preto + tipografia Vinila)
============================================================ */

:root {
  --color-light: #E1DFE1;
  --color-medium: #79797E;
  --color-dark: #222228;
  --font-heading: 'Vinila', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --px: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--color-dark);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
em.italic-dim-light { font-style: italic; color: rgba(225,223,225,0.6); }
em.italic-dim       { font-style: italic; color: rgba(34,34,40,0.55); }

/* ============================================================
   READING PROGRESS BAR (topo absoluto)
============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-dark);
  width: 0;
  z-index: 1100;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ============================================================
   SITE HEADER (sticky, espelha o do index)
============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  height: 72px;
  background: #000;
  border-bottom: 1px solid rgba(225,223,225,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  color: var(--color-light);
}
.site-header__logo { height: 40px; display: flex; align-items: center; }
.site-header__logo img { height: 40px; width: auto; }
.site-header__back {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-light);
  border-left: 1px solid rgba(225,223,225,0.1);
  padding: 24px 0 32px 24px;
  position: relative;
}
.site-header__back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.site-header__back:hover svg { transform: translateX(-3px); }

/* ============================================================
   HERO DA PÁGINA LEGAL (preto, espelha o hero do site)
============================================================ */
.legal-hero {
  position: relative;
  background: #000;
  color: var(--color-light);
  padding: 100px var(--px) 100px;
  overflow: hidden;
  border-bottom: 1px solid rgba(225,223,225,0.1);
}
.legal-hero__inner {
  position: relative;
  z-index: 2;
}
.legal-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(225,223,225,0.5);
  margin-bottom: 40px;
}
.legal-hero__breadcrumb a {
  color: rgba(225,223,225,0.7);
  transition: color 0.25s ease;
  position: relative;
  display: inline-block;
}
.legal-hero__breadcrumb a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.legal-hero__breadcrumb a:hover { color: var(--color-light); }
.legal-hero__breadcrumb a:hover::after { transform: scaleX(1); }
.legal-hero__breadcrumb-sep { opacity: 0.4; }

.legal-hero__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  max-width: 820px;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 13px;
  color: rgba(225,223,225,0.6);
  letter-spacing: 0.05em;
  padding-top: 24px;
  border-top: 1px solid rgba(225,223,225,0.15);
  max-width: 820px;
}
.legal-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-hero__meta-item strong {
  color: var(--color-light);
  font-weight: 400;
}

.legal-hero__pattern {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 320px;
  height: 80px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   BODY: SUMÁRIO STICKY + CONTEÚDO
============================================================ */
.legal-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  padding: 96px var(--px) 120px;
  align-items: start;
}

/* ---------- Sumário ---------- */
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.legal-toc__label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-medium);
  margin-bottom: 20px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-toc__label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}
.legal-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 8px;
}
.legal-toc__list::-webkit-scrollbar { width: 4px; }
.legal-toc__list::-webkit-scrollbar-track { background: transparent; }
.legal-toc__list::-webkit-scrollbar-thumb { background: rgba(34,34,40,0.15); }

.legal-toc__list a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 12px 8px 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-medium);
  border-left: 1px solid transparent;
  padding-left: 16px;
  margin-left: -16px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.legal-toc__list a span:first-child {
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(34,34,40,0.4);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.legal-toc__list a:hover {
  color: var(--color-dark);
  border-left-color: rgba(34,34,40,0.3);
}
.legal-toc__list a:hover span:first-child {
  color: rgba(34,34,40,0.6);
}
.legal-toc__list a.is-active {
  color: var(--color-dark);
  border-left-color: var(--color-dark);
  font-weight: 400;
}
.legal-toc__list a.is-active span:first-child {
  color: var(--color-dark);
}

/* ---------- Conteúdo ---------- */
.legal-content {
  max-width: 720px;
}
.legal-content section {
  scroll-margin-top: 96px; /* offset pra header sticky no scroll-to-anchor */
}
.legal-content section + section { margin-top: 64px; }
.legal-content section:first-of-type { margin-top: 0; }

.legal-content__intro {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-dark);
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(34,34,40,0.1);
}

.legal-content h2 {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.legal-content h2::before {
  content: attr(data-num);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 300;
  color: var(--color-medium);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  position: relative;
  top: -2px;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-medium);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-content p strong, .legal-content li strong {
  font-weight: 400;
  color: var(--color-dark);
}

.legal-content ul, .legal-content ol {
  padding-left: 22px;
  margin: 8px 0 20px;
}
.legal-content li {
  font-size: 15px;
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-content a {
  color: var(--color-dark);
  border-bottom: 1px solid rgba(34,34,40,0.3);
  transition: border-color 0.2s ease;
}
.legal-content a:hover { border-bottom-color: var(--color-dark); }

/* ---------- Bloco de contato (final) ---------- */
.legal__contact {
  margin-top: 32px;
  padding: 32px;
  background: #000;
  color: var(--color-light);
  position: relative;
}
.legal__contact::before,
.legal__contact::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(225,223,225,0.25);
}
.legal__contact::before { top: 0; left: 0; }
.legal__contact::after { bottom: 0; right: 0; }
.legal__contact h3 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(225,223,225,0.6);
  margin-bottom: 16px;
  margin-top: 0;
  font-weight: 400;
}
.legal__contact p {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-light);
  margin-bottom: 8px;
}
.legal__contact a {
  color: var(--color-light);
  border-bottom: 1px solid rgba(225,223,225,0.3);
}
.legal__contact a:hover { border-bottom-color: var(--color-light); }
/* Override do strong dentro do bloco preto pra ficar legível
   !important pra bypassar qualquer override por cascata */
.legal__contact p strong,
.legal__contact strong {
  color: rgba(225,223,225,0.85) !important;
  font-weight: 400 !important;
}

/* ---------- Conclusão ---------- */
.legal__conclusion {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(34,34,40,0.1);
  font-style: italic;
  color: var(--color-medium);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   BACK TO TOP (botão flutuante)
============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-dark);
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--color-dark);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, border-color 0.25s ease;
  z-index: 100;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #000;
  border-color: #000;
}
.back-to-top svg { width: 18px; height: 18px; }

/* ============================================================
   FOOTER (espelha o do index, simplificado)
============================================================ */
.site-footer {
  background: #000;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 80px var(--px) 40px;
  color: var(--color-light);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-contact a {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-light);
  position: relative;
  display: inline-block;
}
.footer-contact a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.footer-contact a:hover::after { transform: scaleX(1); }
.footer-social { display: flex; align-items: center; gap: 32px; }
.footer-social__item {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-light);
  position: relative;
  display: inline-block;
}
.footer-social__item::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.footer-social__item:hover::after { transform: scaleX(1); }
.footer-social__divider { height: 16px; width: 1px; background: rgba(255,255,255,0.1); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-light);
}
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 300;
  color: var(--color-light);
  position: relative;
  display: inline-block;
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.footer-links a:hover::after,
.footer-links a[aria-current="page"]::after { transform: scaleX(1); }
.footer-links__div { height: 12px; width: 1px; background: rgba(255,255,255,0.1); }

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 980px) {
  .legal-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-toc {
    position: static;
    border: 1px solid rgba(34,34,40,0.1);
    padding: 24px;
  }
  .legal-toc__list { max-height: 280px; }
}

@media (max-width: 768px) {
  :root { --px: 16px; }
  .site-header { height: 60px; border-bottom-color: rgba(225,223,225,0.2); }
  .site-header__logo, .site-header__logo img { height: 16px; }

  .legal-hero { padding: 64px var(--px) 64px; }
  .legal-hero__title { font-size: 36px; line-height: 1.1; }
  .legal-hero__breadcrumb { margin-bottom: 28px; font-size: 11px; }
  .legal-hero__meta { gap: 20px; font-size: 12px; }
  .legal-hero__pattern { width: 220px; height: 56px; right: -20px; }

  .legal-body { padding: 56px var(--px) 80px; }
  .legal-content__intro { font-size: 15px; margin-bottom: 40px; padding-bottom: 24px; }
  .legal-content section + section { margin-top: 48px; }
  .legal-content h2 { font-size: 24px; gap: 14px; }
  .legal-content h2::before { font-size: 16px; }
  .legal-content h3 { font-size: 12px; }
  .legal-content p, .legal-content li { font-size: 15px; }
  .legal__contact { padding: 24px; }
  .legal__contact p { font-size: 15px; }

  .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }

  .site-footer { gap: 56px; padding: 56px var(--px) 32px; }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 32px;
  }
  .footer-contact a { font-size: 18px; }
  .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-social__divider { display: none; }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-links__div { display: none; }
}

/* ============================================================
   PREFERS REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
