/* =========================================================
   WeWeKa · Documentos legales (Términos, Privacidad, Cookies)
   Lectura cómoda: columna de 70 caracteres, jerarquía clara,
   índice navegable, claro/oscuro y apto para imprimir.
   ========================================================= */
:root {
  --bg: #f1faee;
  --paper: #ffffff;
  --ink: #111b61;
  --muted: #4a5490;
  --faint: #7c83b3;
  --line: rgba(17, 27, 97, .14);
  --accent: #b3002b;
  --fill: #fff3c4;
  --fill-ink: #6b4e00;
  --font: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101636; --paper: #161d45; --ink: #eef1ff; --muted: #b9c0ea; --faint: #8c94c8;
    --line: rgba(238, 241, 255, .14); --accent: #ff5c7c; --fill: #4a3c00; --fill-ink: #ffe38a;
  }
}
:root[data-theme="dark"] {
  --bg: #101636; --paper: #161d45; --ink: #eef1ff; --muted: #b9c0ea; --faint: #8c94c8;
  --line: rgba(238, 241, 255, .14); --accent: #ff5c7c; --fill: #4a3c00; --fill-ink: #ffe38a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); font-weight: 700; }

.lg-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.lg-brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lg-brand span { color: var(--accent); }
.lg-top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.lg-top nav a { text-decoration: none; color: var(--muted); }
.lg-top nav a[aria-current="page"] { color: var(--accent); }

.lg { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
.lg-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 5vw, 44px); }
.lg h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin-bottom: 8px; }
.lg-ver { font-size: 13px; color: var(--faint); font-weight: 700; margin-bottom: 20px; }
.lg-intro { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.lg h2 { font-size: 20px; font-weight: 900; margin: 34px 0 10px; line-height: 1.3; scroll-margin-top: 72px; }
.lg h3 { font-size: 16px; font-weight: 900; margin: 20px 0 6px; }
.lg p, .lg li { color: var(--ink); margin-bottom: 10px; max-width: 70ch; }
.lg ul, .lg ol { padding-left: 22px; margin-bottom: 12px; }
.lg li { margin-bottom: 6px; }
.lg strong { font-weight: 900; }
.lg-toc { background: var(--bg); border-radius: 14px; padding: 14px 18px; margin: 10px 0 8px; }
.lg-toc b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 6px; }
.lg-toc ol { margin: 0; columns: 2 240px; column-gap: 24px; }
.lg-toc li { font-size: 14px; margin-bottom: 4px; }
.lg-toc a { text-decoration: none; }
.lg-box { border-left: 4px solid var(--accent); background: var(--bg); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 14px 0; }
.lg-box p:last-child { margin-bottom: 0; }
.fill { background: var(--fill); color: var(--fill-ink); padding: 0 6px; border-radius: 6px; font-weight: 800; }
.lg-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; display: block; overflow-x: auto; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lg-table th { font-weight: 900; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.lg-table code { font-size: 13px; background: var(--bg); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.lg-btn { display: inline-flex; align-items: center; min-height: 44px; font: inherit; font-weight: 800; color: #fff; background: var(--accent); border: none; border-radius: 999px; padding: 10px 20px; cursor: pointer; margin: 6px 0 14px; }
.lg-foot { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; font-size: 13px; color: var(--faint); text-align: center; }

@media print {
  .lg-top, .lg-foot, .wwck, .lg-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .lg-card { border: none; padding: 0; }
}
