/* Somar365 · páginas legales (términos, privacidad, libro de reclamaciones). Mismos tokens y tipografía que la landing. */
@font-face { font-family: 'Pilcrow Rounded'; src: url('/_l/fonts/pilcrow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pilcrow Rounded'; src: url('/_l/fonts/pilcrow-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pilcrow Rounded'; src: url('/_l/fonts/pilcrow-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff; --surface: #f2f5f4; --pale: #e8f1ef; --ink: #0b1f1d; --muted: #4a5b58;
  --brand: #2f7a74; --line: #c9d6d3;
  --m: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pilcrow Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1.0625rem; line-height: 1.65; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px var(--m); border-bottom: 2px solid var(--ink); }
.mark { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 4px 0; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.doc { max-width: 52rem; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--m) 64px; }
.doc h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 8px; }
.doc h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2; margin: 2.2em 0 0.5em; padding-top: 0.6em; border-top: 2px solid var(--line); scroll-margin-top: 16px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 0.35em 0; }
.fecha { color: var(--muted); margin: 0 0 32px; }
.toc { background: var(--pale); padding: 20px 24px; margin: 28px 0 8px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 16rem; column-gap: 32px; }
.toc a { color: var(--ink); }

.tabla { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
thead th { background: var(--ink); color: #fff; }
tbody th { background: var(--surface); width: 28%; font-weight: 700; }

.ficha { background: var(--surface); padding: 8px 24px; margin: 20px 0; }
.ficha dl { margin: 0; }
.ficha div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ficha div:last-child { border-bottom: 0; }
.ficha dt { font-weight: 700; }
.ficha dd { margin: 0; overflow-wrap: anywhere; }

.hoja { margin-top: 32px; display: grid; gap: 24px; }
fieldset { border: 2px solid var(--ink); margin: 0; padding: 16px 20px 20px; display: grid; gap: 16px; }
legend { font-weight: 700; padding: 0 8px; }
.hoja label { display: grid; gap: 6px; font-weight: 500; }
input, textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
input[type="radio"] { width: auto; }
.opciones { display: flex; gap: 24px; flex-wrap: wrap; }
.opciones label { display: flex; align-items: center; gap: 8px; }
.nota { color: var(--muted); font-size: 0.9375rem; }
button { font: inherit; font-weight: 700; justify-self: start; padding: 14px 28px; border: 0; border-radius: 0; background: var(--ink); color: #fff; cursor: pointer; }
button:hover { background: var(--brand); }

.pie { background: var(--pale); padding: 28px var(--m); font-size: 0.9375rem; }
.pie p { margin: 4px 0; }

@media (max-width: 560px) { .ficha div { grid-template-columns: 1fr; gap: 2px; } .toc ol { columns: 1; } }
@media print { .top nav, .skip, button { display: none; } .doc h2 { break-after: avoid; } }
