/* =====================================================================
   LEGAL — páginas de documento (Política de Privacidade e afins).
   Registro SÓBRIO: sem seção de 100svh, sem clímax, sem laranja ambiente.
   O acento é ROXO — o laranja continua racionado pro CTA/clímax do site.
   Leitura longa: coluna estreita, entrelinha alta, índice fixo à esquerda.
   ===================================================================== */

.yl {
  position: relative;
  isolation: isolate;
  /* SEM overflow:hidden aqui — ancestral com overflow recortado mata o
     position:sticky do índice. O grão usa inset:0 e não vaza. */
  box-sizing: border-box;
  padding: clamp(7rem, 15vh, 10rem) clamp(1.4rem, 5vw, 4.5rem) clamp(4rem, 9vh, 6.5rem);
  font-family: var(--font);
  color: var(--txt);
  background: radial-gradient(120% 80% at 50% 0%, #16162a 0%, #121221 46%, #0F0F1B 100%);
}

/* grão + vinheta: mesma matéria das demais seções do site */
.yl__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: calc(.05 * var(--k-grain, 1));
  mix-blend-mode: overlay;
  box-shadow: inset 0 0 240px 40px rgba(8, 8, 16, .7);
}

.yl__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px; margin: 0 auto;
}

/* ---- Cabeçalho do documento ---- */
.yl__head { max-width: 62ch; margin: 0 0 clamp(2.4rem, 5vh, 3.6rem); }

.yl__h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--txt);
}

.yl__lead {
  margin: clamp(1.1rem, 2.4vw, 1.5rem) 0 0;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
  font-weight: 450;
  color: rgba(244, 244, 242, .72);
}

.yl__meta {
  margin: clamp(1.2rem, 2.6vw, 1.6rem) 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: rgba(244, 244, 242, .48);
}
.yl__meta b { color: rgba(244, 244, 242, .72); font-weight: 700; }

/* ---- Corpo: índice + documento ---- */
.yl__body {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: clamp(1.6rem, 3.4vh, 2.4rem);
  border-top: 1px solid var(--line-2);
}

/* ---- Índice fixo ---- */
.yl__nav { position: sticky; top: clamp(5.5rem, 10vh, 7rem); }
.yl__navtit {
  display: block;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(157, 150, 200, .85);
  margin: 0 0 .9rem;
}
.yl__nav ol { list-style: none; margin: 0; padding: 0; }
.yl__nav li { margin: 0; }
.yl__nav a {
  display: block;
  padding: .38rem 0 .38rem .85rem;
  border-left: 1px solid var(--line-2);
  font-size: .86rem; line-height: 1.35; font-weight: 500;
  color: rgba(244, 244, 242, .58);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.yl__nav a:hover { color: var(--txt); border-left-color: var(--roxo); }

/* ---- Documento ---- */
.yl__doc { min-width: 0; max-width: 74ch; }

.yl__doc section { scroll-margin-top: clamp(5rem, 10vh, 7rem); }
.yl__doc section + section {
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
  padding-top: clamp(2.4rem, 5vh, 3.4rem);
  border-top: 1px solid var(--line);
}

.yl__doc h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.1vw, 1.62rem);
  font-weight: 800; letter-spacing: -.022em; line-height: 1.14;
  color: var(--txt);
}
.yl__doc h2 span { color: rgba(157, 150, 200, .8); font-weight: 700; margin-right: .5rem; font-variant-numeric: tabular-nums; }

.yl__doc h3 {
  margin: 1.8rem 0 .7rem;
  font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em;
  color: rgba(244, 244, 242, .92);
}

.yl__doc p {
  margin: 0 0 1rem;
  font-size: .98rem; line-height: 1.72; font-weight: 450;
  color: rgba(244, 244, 242, .7);
}
.yl__doc p:last-child { margin-bottom: 0; }
.yl__doc b, .yl__doc strong { color: var(--txt); font-weight: 650; }

.yl__doc a { color: #B4ADDC; text-decoration: underline; text-underline-offset: .18em; }
.yl__doc a:hover { color: var(--txt); }

.yl__doc ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.yl__doc ul li {
  position: relative;
  padding: .3rem 0 .3rem 1.15rem;
  font-size: .96rem; line-height: 1.62; font-weight: 450;
  color: rgba(244, 244, 242, .7);
}
.yl__doc ul li::before {
  content: ""; position: absolute; left: 0; top: 1.02em;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(157, 150, 200, .7);
}

/* ---- Tabela (bases legais, cookies) ---- */
.yl__tab { margin: 1.2rem 0 1.4rem; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.yl__tab table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.yl__tab th, .yl__tab td { text-align: left; padding: .8rem 1rem; vertical-align: top; line-height: 1.45; }
.yl__tab th {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(157, 150, 200, .9);
  background: rgba(255, 255, 255, .03);
}
.yl__tab td { color: rgba(244, 244, 242, .7); border-top: 1px solid var(--line); font-weight: 450; }
.yl__tab td b { color: var(--txt); font-weight: 650; }

/* ---- Destaque: o parágrafo que muda a decisão do leitor ---- */
.yl__call {
  margin: 1.3rem 0;
  padding: clamp(1rem, 2.2vw, 1.3rem) clamp(1.1rem, 2.4vw, 1.4rem);
  border: 1px solid rgba(92, 93, 163, .34);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(92, 93, 163, .1), rgba(255, 255, 255, .02));
}
.yl__call p { margin: 0; color: rgba(244, 244, 242, .82); }
.yl__call p + p { margin-top: .7rem; }

/* Campo obrigatório ainda não preenchido — impossível de não ver antes de publicar */
.yl__todo {
  display: inline-block; padding: .1rem .45rem; border-radius: 6px;
  background: rgba(221, 57, 21, .16); border: 1px solid rgba(221, 57, 21, .5);
  color: #FF8A5D; font-weight: 700; font-size: .92em;
}

/* ---- Rodapé do documento ---- */
.yl__fim {
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
  padding-top: clamp(1.4rem, 3vh, 2rem);
  border-top: 1px solid var(--line-2);
  font-size: .9rem; line-height: 1.6; color: rgba(244, 244, 242, .55);
}

/* ---- Telas menores: índice vira lista no topo ---- */
@media (max-width: 900px) {
  .yl__body { grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 2.2rem); }
  .yl__nav { position: static; }
  .yl__nav ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
  .yl__nav a { border-left: 0; border: 1px solid var(--line-2); border-radius: 99px; padding: .32rem .7rem; font-size: .8rem; }
  .yl__doc { max-width: none; }
}
