/* Páginas legales de Edrex (www.edrex.pro/privacidad, /terminos…). Marca: Inter para el texto, Playfair Display solo para la palabra "Edrex", verde #16A34A (acentos),
   verde oscuro #1A3123 y crema #F5E6C8. Sin modo oscuro (la marca no lo tiene). Contrastes AA comprobados con axe (tests/e2e/legal.cjs). Sin JavaScript. */

/* Tipografías propias (las mismas que la app: src/fonts.css). GENERADO por scripts/build-legal-pages.mjs: no editar, editar legal/legal.css */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #16a34a;
  --green-strong: #166534;
  --green-dark: #1a3123;
  --beige: #f5e6c8;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #d9e3dc;
  --tint: #f0fdf4;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.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; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--beige); color: var(--green-dark); padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 600; z-index: 10; }
.skip:focus { top: 1rem; }
a { color: var(--green-strong); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--green-strong); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }

.site-header { background: var(--green-dark); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; }
.site-header :focus-visible { outline-color: var(--beige); }
.brand { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; line-height: 1; color: var(--beige); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.lang a { color: var(--beige); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.25rem; }

.layout { display: block; padding-top: 0.5rem; padding-bottom: 3rem; }
.toc { border: 1px solid var(--line); background: var(--tint); border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 0.95rem; }
.toc h2 { border-top: 0; padding-top: 0; margin: 0 0 0.5rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 1; }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: inline-block; padding: 0.3rem 0; }

main { display: block; }
.page-head { max-width: 46rem; padding-top: 2rem; }
article { min-width: 0; max-width: 46rem; }
main:focus { outline: none; }
h1 { font-size: clamp(1.85rem, 4.5vw, 2.5rem); line-height: 1.2; margin: 0 0 0.5rem; color: var(--green-dark); letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.75rem 0 0.75rem; color: var(--green-dark); padding-top: 1.25rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.1rem; line-height: 1.4; margin: 1.75rem 0 0.4rem; color: var(--green-dark); }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
.meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.page-head .lead { margin-bottom: 1.5rem; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.75rem; margin-bottom: 0.9rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.1rem; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--green-dark); color: var(--beige); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; line-height: 1; }

.draft { background: #fef3c7; color: #78350f; border: 1px solid #f59e0b; border-radius: 0.75rem; padding: 0.75rem 1rem; margin: 0 0 1.5rem; }
.draft p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.note { background: var(--tint); border-left: 4px solid var(--green); border-radius: 0.5rem; padding: 0.75rem 1rem; margin: 0 0 1rem; }
.note p { margin: 0; }
mark { border-radius: 0.25rem; padding: 0.05em 0.3em; font-weight: 500; }
mark.revisar { background: #fef3c7; color: #78350f; }
mark.dato { background: #e0f2fe; color: #075985; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: #f3f6f4; border-radius: 0.25rem; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: 0.5rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; line-height: 1.5; }
caption { text-align: left; font-weight: 700; padding: 0.6rem 0.8rem; color: var(--green-dark); background: var(--tint); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); }
thead th { background: #f3f6f4; font-size: 0.85rem; color: var(--muted); }
tbody th { font-weight: 600; color: var(--ink); }

.site-footer { background: var(--green-dark); color: var(--beige); padding: 2rem 0 2.5rem; font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--beige); display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer a[aria-current='page'] { font-weight: 700; text-decoration-thickness: 0.15em; }
.site-footer :focus-visible { outline-color: var(--beige); }
.site-footer p { margin: 0; color: #e8dcc0; }

@media (min-width: 40rem) {
  .toc ol { columns: 2; column-gap: 2rem; }
}
@media (min-width: 64rem) {
  .layout { display: grid; grid-template-columns: 16rem minmax(0, 46rem); column-gap: 3rem; align-items: start; }
  .page-head { grid-column: 2; grid-row: 1; }
  article { grid-column: 2; grid-row: 2; }
  .toc { grid-column: 1; grid-row: 1 / span 2; margin-top: 2.5rem; }
  .toc { position: sticky; top: 1rem; margin-bottom: 0; max-height: calc(100vh - 2rem); overflow: auto; }
  .toc ol { columns: 1; }
}
@media print {
  .site-header, .toc, .skip, .site-footer ul { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; }
  .layout { display: block; padding: 0; }
  main { max-width: none; }
  h2 { break-after: avoid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
