/* Shared legal/document page styles (condiciones, privacidad, cookies) */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* HERO */
.legal-hero { padding: 72px 0 48px; position: relative; overflow: hidden; }
.legal-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(46,182,188,.14), transparent 60%),
    radial-gradient(ellipse 50% 35% at 0% 60%, rgba(46,182,188,.08), transparent 60%);
  pointer-events: none;
}
.legal-hero .inner { position: relative; max-width: 760px; }

.legal-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--teal-deep);
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--teal-soft);
  border: 1px solid rgba(46,182,188,.3);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 24px;
}
.legal-hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

.legal-hero h1.headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.0; letter-spacing: -0.025em;
  margin: 0 0 24px; text-wrap: balance;
}
.legal-hero h1.headline em { font-style: italic; color: var(--teal-deep); }

.legal-hero .lede {
  font-size: 18px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 600px; margin: 0 0 32px;
}
.legal-hero .lede b { color: var(--ink); font-weight: 600; }

.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-meta b { color: var(--ink); font-weight: 500; }

/* GRID + TOC */
.legal-grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 72px; padding: 64px 0 96px; align-items: start;
}
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; gap: 32px; } }

aside.toc { position: sticky; top: 96px; align-self: start; }
@media (max-width: 900px) {
  aside.toc {
    position: static; padding: 20px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  }
}
.toc .toc-title {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.toc .toc-title::before { content: ""; width: 24px; height: 1px; background: var(--muted); }
.toc ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: tocnum;
  display: flex; flex-direction: column; gap: 4px;
}
.toc li { counter-increment: tocnum; }
.toc a {
  display: flex; gap: 12px; padding: 8px 0;
  font-size: 14px; color: var(--ink-2);
  border-left: 2px solid transparent;
  padding-left: 14px; margin-left: -16px;
  transition: color .15s, border-color .15s;
}
.toc a::before {
  content: counter(tocnum, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px;
}
.toc a:hover { color: var(--teal-deep); border-color: var(--teal); }
.toc a.is-active { color: var(--ink); border-color: var(--teal-deep); font-weight: 500; }

/* CONTENT */
.content { max-width: 760px; }
.content section { padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--line); }
.content section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.content h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3vw, 38px); line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 0 8px; text-wrap: balance;
}
.content h2 em { font-style: italic; color: var(--teal-deep); }
.content .anchor {
  display: block;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.content h3 {
  font-family: var(--serif); font-weight: 500; font-size: 20px;
  letter-spacing: -0.005em;
  margin: 28px 0 10px;
}
.content p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.content p b, .content li b { color: var(--ink); font-weight: 600; }
.content a { color: var(--teal-deep); border-bottom: 1px solid rgba(46,182,188,.4); }
.content a:hover { color: var(--ink); border-color: var(--ink); }
.content ul { padding-left: 0; margin: 6px 0 16px; list-style: none; }
.content ul li {
  position: relative;
  padding-left: 22px; margin-bottom: 8px;
  font-size: 16px; line-height: 1.65;
  color: var(--ink-2);
}
.content ul li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--teal); border-radius: 2px;
}

.content .note {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin: 18px 0;
  display: flex; gap: 14px;
}
.content .note .ico {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px;
  background: var(--teal-tint); color: var(--teal-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.content .note p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* identity card (used in §01) */
.id-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; margin: 8px 0 16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px;
}
@media (max-width: 600px) { .id-card { grid-template-columns: 1fr; } }
.id-card .row .k {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 4px;
}
.id-card .row .v { font-size: 14px; color: var(--ink); font-weight: 500; }
.id-card .row .v.mono { font-family: var(--mono); font-weight: 400; }

/* table */
.data-table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 14px;
  background: var(--white);
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
}
.data-table th {
  text-align: left;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table td b { color: var(--ink); font-weight: 600; }

/* DOC FOOTER */
.doc-foot {
  margin-top: 72px; padding: 32px 36px;
  background: var(--ink); color: var(--white);
  border-radius: 24px;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.doc-foot::before {
  content: ""; position: absolute; top: -40%; right: -20%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.18; pointer-events: none;
}
@media (max-width: 700px) { .doc-foot { grid-template-columns: 1fr; padding: 28px; } }
.doc-foot h4 {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.2;
  position: relative;
}
.doc-foot h4 em { font-style: italic; color: var(--teal); }
.doc-foot p {
  color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.55;
  margin: 0; position: relative;
}
.doc-foot .doc-links { display: flex; flex-direction: column; gap: 10px; position: relative; }
.doc-foot .doc-links a {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; padding: 12px 18px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,.85);
  transition: background .15s, border-color .15s;
}
.doc-foot .doc-links a:hover { background: rgba(255,255,255,.08); border-color: var(--teal); color: var(--teal); }
.doc-foot .doc-links a span.arrow { color: var(--teal); }
