/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --border: #dde3ee;
  --text: #16233d;
  --text-soft: #4b5972;
  --text-faint: #7c8aa3;

  --primary: #123a7a;
  --primary-dark: #0b2650;
  --primary-soft: #e7edfb;
  --accent: #0f9c8f;
  --accent-soft: #e1f7f3;
  --warn: #b8860b;
  --warn-soft: #fdf3dc;
  --error: #c62828;
  --error-soft: #fdeaea;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 3px rgba(18, 58, 122, .07), 0 1px 2px rgba(18, 58, 122, .06);
  --shadow-m: 0 8px 24px rgba(18, 58, 122, .10);
  --shadow-l: 0 20px 48px rgba(18, 58, 122, .16);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1526;
    --surface: #131d33;
    --surface-2: #182444;
    --border: #253559;
    --text: #eef2fb;
    --text-soft: #b7c2dc;
    --text-faint: #8492b3;
    --primary: #6f93e6;
    --primary-dark: #4d72cc;
    --primary-soft: #1a2a4f;
    --accent: #33c9b8;
    --accent-soft: #123a37;
    --warn: #e0b03d;
    --warn-soft: #3a2f13;
    --error: #ef5b5b;
    --error-soft: #3a1717;
    --shadow-s: 0 1px 3px rgba(0,0,0,.35);
    --shadow-m: 0 8px 24px rgba(0,0,0,.4);
    --shadow-l: 0 20px 48px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1526;
  --surface: #131d33;
  --surface-2: #182444;
  --border: #253559;
  --text: #eef2fb;
  --text-soft: #b7c2dc;
  --text-faint: #8492b3;
  --primary: #6f93e6;
  --primary-dark: #4d72cc;
  --primary-soft: #1a2a4f;
  --accent: #33c9b8;
  --accent-soft: #123a37;
  --warn: #e0b03d;
  --warn-soft: #3a2f13;
  --error: #ef5b5b;
  --error-soft: #3a1717;
  --shadow-s: 0 1px 3px rgba(0,0,0,.35);
  --shadow-m: 0 8px 24px rgba(0,0,0,.4);
  --shadow-l: 0 20px 48px rgba(0,0,0,.5);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--accent-soft); color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
label { cursor: pointer; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--primary); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8rem 1.4rem; border-radius: var(--radius-s); font-weight: 600; font-size: .96rem;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s var(--ease-out);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-m); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(0.95); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--primary); }
.btn-link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-ok { background: var(--accent-soft); color: #0b6b60; }
.badge-warn { background: var(--warn-soft); color: #8a6408; }
.badge-error { background: var(--error-soft); color: var(--error); }
.badge-neutral { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }

/* =============================================================
   4. Header
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-weight: 600; font-size: .92rem; color: var(--text-soft); }
.nav-links a:hover { color: var(--primary); }
@media (max-width: 719px) { .nav-links .nav-extra { display: none; } }

/* =============================================================
   5. Hero + Tool card
   ============================================================= */
.hero { padding: 2.2rem 0 1.2rem; }
.hero-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: 1.6rem; }
.hero-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); color: var(--primary-dark); max-width: 20ch; margin-inline: auto; }
.hero-head p { margin-top: .7rem; color: var(--text-soft); font-size: 1.05rem; }

.tool-card { padding: clamp(1.1rem, 3vw, 2rem); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center; padding: clamp(1.6rem, 5vw, 3rem) 1rem; border: 2px dashed var(--border);
  border-radius: var(--radius-m); background: var(--surface-2); cursor: pointer;
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .icon { width: 2.4rem; height: 2.4rem; color: var(--primary); }
.dropzone strong { font-size: 1.05rem; }
.dropzone small { color: var(--text-faint); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.file-info { display: none; margin-top: 1.1rem; }
.file-info.is-visible { display: block; }
.file-info-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-s); }
.file-info-row .icon { color: var(--primary); width: 1.8rem; height: 1.8rem; }
.file-info-meta { flex: 1; min-width: 0; }
.file-info-meta strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.file-info-tags span { font-size: .78rem; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .15em .6em; }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: 1.2rem; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left;
  padding: .95rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-s);
  background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .1s;
}
.tool-btn .icon { color: var(--primary); width: 1.5rem; height: 1.5rem; }
.tool-btn strong { font-size: .88rem; line-height: 1.25; }
.tool-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-s); }
.tool-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: var(--shadow-s); }
.tool-btn:active { transform: scale(.98); }

.tool-panel { display: none; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px dashed var(--border); }
.tool-panel.is-active { display: block; }
.tool-panel h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.tool-panel > .panel-desc { color: var(--text-soft); font-size: .92rem; margin-bottom: 1rem; }
.field-row { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 720px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } .field-row.cols-3 { grid-template-columns: repeat(3,1fr); } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--text-soft); }
.field input[type="text"], .field input[type="number"], .field select {
  padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-s);
  background: var(--surface); color: var(--text); font: inherit; font-size: .92rem;
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--primary); }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .45rem .9rem; border: 1.5px solid var(--border); border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: #0b6b60; }
.check-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-soft); }
.check-row input { width: 1.05rem; height: 1.05rem; }

.progress-wrap { display: none; margin-top: 1rem; }
.progress-wrap.is-visible { display: block; }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-soft); margin-bottom: .4rem; }
.progress-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.progress-bar > span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .2s var(--ease-out); }

.result-box { display: none; margin-top: 1.2rem; padding: 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface-2); }
.result-box.is-visible { display: block; }
.result-box.state-ok { border-color: var(--accent); background: var(--accent-soft); }
.result-box.state-warn { border-color: var(--warn); background: var(--warn-soft); }
.result-box.state-error { border-color: var(--error); background: var(--error-soft); }
.result-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: .6rem; margin: .8rem 0; }
@media (min-width: 540px) { .result-stats { grid-template-columns: repeat(4,1fr); } }
.result-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: .6rem .7rem; }
.result-stat span { display: block; font-size: .72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.result-stat strong { font-size: 1.02rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .9rem; align-items: center; }
.compare-figure { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .9rem; }
.compare-figure figure { margin: 0; }
.compare-figure img { border-radius: var(--radius-s); border: 1px solid var(--border); width: 100%; object-fit: contain; background: var(--surface); max-height: 220px; }
.compare-figure figcaption { font-size: .75rem; color: var(--text-faint); margin-top: .3rem; text-align: center; }

.error-box { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-s); background: var(--error-soft); border: 1px solid var(--error); color: var(--error); font-size: .9rem; }
.error-box.is-visible { display: block; }

.privacy-badge { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.1rem; padding: .8rem 1rem; background: var(--accent-soft); border-radius: var(--radius-s); color: #0b6b60; font-size: .86rem; }
.privacy-badge .icon { width: 1.2rem; height: 1.2rem; margin-top: .1em; flex-shrink: 0; }
.limits-note { margin-top: .5rem; font-size: .8rem; color: var(--text-faint); }

/* Cropper */
.cropper-stage { position: relative; max-width: 460px; margin: 0 auto; background: repeating-conic-gradient(#d9dfec 0% 25%, #eef1f8 0% 50%) 50% / 18px 18px; border-radius: var(--radius-s); overflow: hidden; touch-action: none; user-select: none; }
.cropper-stage img { width: 100%; display: block; pointer-events: none; }
.crop-rect { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(15,30,60,.45); cursor: move; }
.crop-handle { position: absolute; width: 16px; height: 16px; background: var(--accent); border: 2px solid #fff; border-radius: 50%; transform: translate(-50%,-50%); }
.crop-handle.nw { top: 0; left: 0; cursor: nwse-resize; }
.crop-handle.ne { top: 0; left: 100%; cursor: nesw-resize; }
.crop-handle.sw { top: 100%; left: 0; cursor: nesw-resize; }
.crop-handle.se { top: 100%; left: 100%; cursor: nwse-resize; }

/* Elementos arrastrables del editor "Rellenar y firmar PDF" */
.sign-el { position: absolute; cursor: move; border: 1.5px dashed transparent; min-width: 18px; min-height: 18px; }
.sign-el:hover, .sign-el.is-selected { border-color: var(--accent); }
.sign-el img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sign-el .sign-el-text { width: 100%; height: 100%; outline: none; white-space: pre; overflow: hidden; line-height: 1.1; }
.sign-el-del { position: absolute; top: -10px; right: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--error); color: #fff; font-size: .7rem; display: none; align-items: center; justify-content: center; z-index: 3; }
.sign-el:hover .sign-el-del, .sign-el.is-selected .sign-el-del { display: flex; }
.sign-el-resize { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: nwse-resize; display: none; z-index: 3; }
.sign-el:hover .sign-el-resize, .sign-el.is-selected .sign-el-resize { display: block; }
.sign-el-checkbox { width: 100%; height: 100%; border: 2px solid; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sign-el-x { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* File list (PDF merge / ID upload rows) */
.file-list { display: flex; flex-direction: column; gap: .5rem; margin: .8rem 0; }
.file-list-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); cursor: grab; }
.file-list-item.dragging { opacity: .4; }
.file-list-item .drag-handle { color: var(--text-faint); }
.file-list-item .name { flex: 1; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-item .actions { display: flex; gap: .3rem; }
.icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface-2); }
.icon-btn:hover { background: var(--primary-soft); }

/* Validator checklist */
.check-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .9rem; }
.check-item { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .8rem; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--surface); font-size: .88rem; }
.check-item .mark { font-weight: 700; }
.check-item.ok .mark { color: var(--accent); }
.check-item.error .mark { color: var(--error); }
.check-item.warn .mark { color: var(--warn); }

/* =============================================================
   6. Ad slots
   ============================================================= */
.ad-slot { display: flex; align-items: center; justify-content: center; margin: 1.6rem auto; border: 1.5px dashed var(--border); border-radius: var(--radius-s); background: var(--surface-2); color: var(--text-faint); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }
.ad-leaderboard { max-width: var(--container); min-height: 90px; margin-inline: auto; }
.ad-rectangle { max-width: 336px; min-height: 280px; }
.ad-banner { min-height: 100px; }
.ad-sidebar { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); width: 160px; min-height: 480px; z-index: 20; }
@media (max-width: 1279px) { .ad-sidebar { display: none; } }

.ad-corner { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); box-shadow: var(--shadow-l); padding: .8rem; display: none; }
.ad-corner.is-visible { display: flex; align-items: flex-start; gap: .6rem; }
.ad-corner .ad-slot { margin: 0; flex: 1; min-height: 54px; }
.ad-corner button { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: .8rem; }

dialog.ad-dialog { border: none; border-radius: var(--radius-m); padding: 0; max-width: 420px; width: min(420px, 92vw); box-shadow: var(--shadow-l); }
dialog.ad-dialog::backdrop { background: rgba(11,20,40,.55); }
.ad-dialog-inner { padding: 1.3rem; }
.ad-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.ad-dialog-head h4 { font-size: .95rem; }
.ad-dialog .ad-slot { min-height: 200px; margin: 0 0 1rem; }

/* =============================================================
   7. Info sections
   ============================================================= */
.section { padding: 2.6rem 0; }
.section h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); text-align: center; color: var(--primary-dark); }
.section > .container > p.lead { text-align: center; max-width: 640px; margin: .6rem auto 0; color: var(--text-soft); }

.steps-grid { display: grid; gap: 1rem; margin-top: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3,1fr); } }
.step-card { padding: 1.3rem; text-align: center; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto .8rem; }
.step-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.step-card p { font-size: .88rem; color: var(--text-soft); }

.usos-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .7rem; margin-top: 1.8rem; }
@media (min-width: 720px) { .usos-grid { grid-template-columns: repeat(5,1fr); } }
.uso-chip { padding: .9rem .7rem; text-align: center; font-size: .85rem; font-weight: 600; color: var(--text-soft); }

.ventajas-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 540px) { .ventajas-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .ventajas-grid { grid-template-columns: repeat(3,1fr); } }
.ventaja-card { padding: 1.1rem 1.2rem; }
.ventaja-card h3 { font-size: .95rem; margin-bottom: .3rem; color: var(--primary-dark); }
.ventaja-card p { font-size: .85rem; color: var(--text-soft); }

.faq-list { max-width: 760px; margin: 1.8rem auto 0; display: flex; flex-direction: column; gap: .7rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; font-size: .95rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 1.2rem 1.1rem; color: var(--text-soft); font-size: .9rem; }

.tools-more-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .6rem; margin-top: 1.8rem; }
@media (min-width: 720px) { .tools-more-grid { grid-template-columns: repeat(4,1fr); } }

/* =============================================================
   8. Footer
   ============================================================= */
.site-footer { background: var(--primary-dark); color: #dbe3f5; padding: 2.4rem 0 1.6rem; margin-top: 1rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.site-footer p { font-size: .85rem; color: #aebbdb; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: #9fb0d9; margin-bottom: .6rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer-col a { font-size: .88rem; color: #dbe3f5; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: #91a1cc; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; }

/* Legal pages */
.legal-page { max-width: 780px; margin: 0 auto; padding: 2.4rem 1.1rem 3rem; }
.legal-page h1 { color: var(--primary-dark); margin-bottom: .6rem; }
.legal-page h2 { margin-top: 1.6rem; margin-bottom: .5rem; font-size: 1.1rem; color: var(--primary-dark); }
.legal-page p, .legal-page li { color: var(--text-soft); font-size: .94rem; margin-bottom: .6rem; }

/* No-JS notice */
.no-js-only { display: none; }
.no-js .no-js-only { display: block; }
.no-js .js-only { display: none !important; }

@media (max-width: 539px) {
  .result-actions { flex-direction: column; align-items: stretch; }
  .compare-figure { grid-template-columns: 1fr; }
}
