/* Páginas legales de la web nueva (términos y contrato): lectura cómoda en
   pantalla y, en el contrato, impresión limpia en blanco y negro. */
@font-face { font-family: 'BSD'; src: url('fonts/big-shoulders-display-var.woff2') format('woff2'); font-weight: 100 900; font-display: optional; }
@font-face { font-family: 'LF'; src: url('fonts/libre-franklin-var.woff2') format('woff2'); font-weight: 100 900; font-display: optional; }

:root { --bg: #0e0e10; --bg2: #17171a; --fg: #f3efe7; --muted: #a7a29a; --line: rgb(243 239 231 / 0.14); --pink: #ff48b0; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; }
body { font-family: 'LF', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--pink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
a { color: var(--pink); text-underline-offset: 3px; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 clamp(16px, 3vw, 40px); background: rgb(14 14 16 / 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { font: 900 26px/1 'BSD', 'Arial Narrow', Impact, sans-serif; letter-spacing: 0.03em; color: var(--fg); text-decoration: none; }
.brand i { font-style: normal; color: var(--pink); }
.back { color: var(--muted); font: 600 14px 'LF', system-ui, sans-serif; text-decoration: none; }
.back:hover { color: var(--fg); }
.bar-actions { display: flex; align-items: center; gap: 18px; }
.print { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pink); color: #120a10; font: 800 14px 'LF', system-ui, sans-serif; cursor: pointer; }

.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vh, 80px) clamp(18px, 4vw, 32px) 100px; }
.doc h1 { padding-top: 0.08em; font: 900 clamp(46px, 8vw, 84px)/0.95 'BSD', 'Arial Narrow', Impact, sans-serif; text-transform: uppercase; }
.meta { margin-top: 14px; color: var(--muted); font: 600 14px 'LF', system-ui, sans-serif; }
.intro, .note { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: var(--bg2); color: #d9d4cb; font: 500 17px/1.55 'LF', system-ui, sans-serif; }
.toc { margin-top: 32px; padding: 22px 24px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.toc ol { columns: 2; column-gap: 28px; padding-left: 20px; color: var(--muted); font: 600 15px/1.9 'LF', system-ui, sans-serif; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--pink); }
.doc section { scroll-margin-top: 80px; }
.doc h2 { margin: 44px 0 12px; font: 800 22px 'LF', system-ui, sans-serif; letter-spacing: -0.02em; }
.doc p, .doc li { color: #d9d4cb; font: 400 17px/1.65 'LF', system-ui, sans-serif; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0 20px; display: grid; gap: 8px; }
.doc strong { color: var(--fg); }
.fill { padding: 0 4px; border-radius: 4px; background: rgb(255 72 176 / 0.16); color: var(--pink); font-weight: 700; }
.regret { font-weight: 800; }
.foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Contrato: espacios para completar, casillas y firmas */
.line { display: inline-block; min-width: 220px; border-bottom: 1px solid currentColor; opacity: 0.6; transform: translateY(-3px); }
.line.short { min-width: 110px; }
.line.tiny { min-width: 36px; }
.box { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 3px; vertical-align: -2px; }
.checks { list-style: none; margin-left: 0 !important; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 70px; text-align: center; font: 600 14px/1.6 'LF', system-ui, sans-serif; color: var(--muted); }
.sign { display: block; height: 70px; margin-bottom: 8px; border-bottom: 1px solid currentColor; }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .signs { grid-template-columns: 1fr; }
  .line { min-width: 140px; }
}

/* Impresión del contrato: blanco y negro, sin barra, márgenes de hoja. */
@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: #fff; color: #000; }
  .no-print { display: none !important; }
  .doc { max-width: none; padding: 0; }
  .doc h1 { font-size: 28pt; line-height: 1.1; }
  .doc strong { color: #000; }
  .doc h2 { margin-top: 16pt; font-size: 12pt; break-after: avoid; }
  .doc p, .doc li, .meta, .signs { color: #000; font-size: 10.5pt; line-height: 1.5; }
  .fill { background: none; color: #000; }
  .line, .box, .sign { opacity: 1; }
  .signs { break-inside: avoid; }
}

/* El aviso de arriba del contrato no se pega al título. */
.doc > .note:first-child { margin: 0 0 40px; }
