/* Páginas legales (privacy.html, terms.html, policy.html). Va después de site.css, que pone los colores, la
   cabecera, los botones y el pie. El texto de los documentos está en inglés y no se toca: acá sólo se lee mejor. */

.legal-page .site-header .brand { color: var(--ink); }
.legal-cta { height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- Cabecera del documento ---------- */
.legal-hero { position: relative; overflow: hidden; padding: 128px 0 52px; background: var(--pink-soft); }
.legal-hero .blob { opacity: .55; }
.legal-hero .wrap { position: relative; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.legal-tabs a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff;
  color: var(--gray1); font-size: 14px; font-weight: 700; box-shadow: 0 0 0 1px #FFDCE6; transition: box-shadow .2s ease, color .2s ease; }
.legal-tabs a:hover { color: var(--ink); box-shadow: 0 0 0 1px #FFC2D3; }
.legal-tabs a[aria-current="page"] { background: var(--pink); color: #fff; box-shadow: 0 10px 22px -10px rgba(235, 61, 105, .7); }
.legal-hero h1 { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -0.04em; max-width: 760px; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; color: var(--gray2); font-size: 15px; font-weight: 600; }
.legal-meta .lang { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  background: #fff; color: var(--gray1); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 1px #FFDCE6; }

/* ---------- Índice y documento ---------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 72px; padding-top: 56px; padding-bottom: 104px; }
.legal-toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 124px); overflow: auto; padding-bottom: 8px; }
.legal-toc h2 { margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray3); }
.legal-toc ol { display: grid; gap: 1px; border-left: 2px solid var(--gray6); }
.legal-toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--gray2);
  font-size: 14px; font-weight: 600; line-height: 1.35; transition: color .15s ease, border-color .15s ease; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--gray4); }
.legal-toc-mobile { display: none; }

.legal-doc { min-width: 0; font-size: 17px; line-height: 1.75; color: var(--gray1); }
.legal-doc > :first-child { margin-top: 0; }
.legal-doc .intro { font-size: 19px; line-height: 1.65; color: var(--ink); }
.legal-doc h2 { margin: 52px 0 14px; font-size: 23px; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 100px; }
.legal-doc h2 .num { margin-right: 8px; color: var(--pink); font-variant-numeric: tabular-nums; }
.legal-doc p { margin: 0 0 16px; }
.legal-doc b, .legal-doc strong { color: var(--ink); font-weight: 700; }
.legal-doc a { color: var(--pink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  overflow-wrap: anywhere; }
.legal-doc ul { display: grid; gap: 12px; margin: 0 0 20px; }
.legal-doc ul li { position: relative; padding-left: 26px; }
.legal-doc ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.legal-doc .li-title { display: block; color: var(--ink); font-weight: 700; }
/* Los incisos numerados de los términos (0.1., 0.2., …) */
.legal-doc .item { position: relative; padding-left: 46px; }
.legal-doc .item .n { position: absolute; left: 0; color: var(--gray3); font-weight: 700; font-variant-numeric: tabular-nums; }
.legal-doc .stamp { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--gray7);
  color: var(--gray2); font-size: 14px; font-weight: 700; }
.legal-doc .shout { font-weight: 600; color: var(--ink); }

.contact-card { display: grid; gap: 2px; margin: 6px 0 0; padding: 22px 24px; border-radius: 22px; background: var(--list-bg);
  border: 1px solid var(--gray6); font-size: 16px; font-style: normal; line-height: 1.55; }
.contact-card .who { margin-bottom: 4px; font-weight: 800; }
.contact-card .who a { color: var(--ink); text-decoration: none; }
.legal-doc .updated { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--gray6); font-size: 14px; color: var(--gray3); }

@media (max-width: 900px) {
  .legal-hero { padding: 108px 0 40px; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; padding-bottom: 80px; }
  .legal-toc { display: none; }
  .legal-toc-mobile { display: block; margin-bottom: 36px; border-radius: 18px; background: var(--list-bg); border: 1px solid var(--gray6); }
  .legal-toc-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; font-weight: 800; font-size: 15px; }
  .legal-toc-mobile summary::-webkit-details-marker { display: none; }
  .legal-toc-mobile summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--gray2); border-bottom: 2px solid var(--gray2);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
  .legal-toc-mobile[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .legal-toc-mobile ol { padding: 0 18px 14px; display: grid; gap: 2px; }
  .legal-toc-mobile a { display: block; padding: 7px 0; color: var(--gray1); font-size: 15px; font-weight: 600; border-top: 1px solid var(--gray6); }
  .legal-doc h2 { margin-top: 40px; font-size: 21px; scroll-margin-top: 88px; }
}
@media (max-width: 560px) {
  .legal-cta { height: 40px; padding: 0 14px; font-size: 14px; }
  .legal-tabs { gap: 6px; }
  .legal-tabs a { height: 34px; padding: 0 12px; font-size: 13px; }
  .legal-doc { font-size: 16px; }
  .legal-doc .intro { font-size: 17.5px; }
  .legal-doc .item { padding-left: 40px; }
  .contact-card { padding: 18px; }
}
