/* ==========================================================================
   Páginas institucionais — Termos de Uso, Política de Privacidade, Cookies
   Base compartilhada. Depende de styles.css (tokens, fontes, .eyebrow,
   .cta-button, .reveal, reset) e de script.js (.reveal + #year).
   ========================================================================== */

body.legal { background: var(--paper); color: var(--ink); overflow-x: hidden; }

.legal-shell { display: flex; flex-direction: column; min-height: 100svh; }
.legal-shell > * { min-width: 0; }

/* --- Header: só o botão "Voltar ao linkbio" ----------------------------- */
.legal-header {
  padding: 20px clamp(20px, 6vw, 60px) 0;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.legal-back span { font-weight: 700; line-height: 1; }
.legal-back:hover { background: var(--brown); border-color: var(--brown); color: #fff; }

/* --- Hero da página ------------------------------------------------------- */
.legal-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 11vw, 118px) clamp(20px, 6vw, 60px) clamp(34px, 6vw, 58px);
}
.legal-hero__title {
  margin: 0 0 20px;
  font-family: var(--title-serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.legal-hero__lead {
  max-width: 48ch;
  margin: 0;
  color: rgba(40, 39, 36, .68);
  font-size: 1.02rem;
  line-height: 1.62;
}

/* --- Corpo do documento ------------------------------------------------- */
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 60px) clamp(56px, 10vw, 104px);
}

.legal-intro {
  margin: 0;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(166, 126, 89, .3);
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--ink);
}

.legal-section { margin-top: clamp(38px, 6vw, 58px); }
.legal-section__title {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--brown);
}
.legal-section p {
  margin: 0 0 14px;
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(40, 39, 36, .82);
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section h3 {
  margin: 20px 0 8px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.legal-section ul {
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.legal-section li {
  position: relative;
  padding-left: 20px;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(40, 39, 36, .82);
}
.legal-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brown);
}

/* Observação em destaque (bloco bege) */
.legal-note {
  margin: 18px 0;
  padding: 18px 20px;
  background: var(--beige);
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.72;
  color: rgba(40, 39, 36, .84);
}
.legal-note p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.legal-note p + p { margin-top: 10px; }

/* --- Entrada sutil ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .legal-section, .legal-intro { opacity: 1 !important; transform: none !important; }
}
