/* Estilos de las tres páginas legales.
   Misma paleta que la web, en una sola columna de lectura. */

:root {
  --ground:      #F7F2EB;
  --surface:     #FFFCF8;
  --surface-alt: #EFE7DC;
  --ink:         #2A211C;
  --ink-soft:    #6B5D54;
  --ink-faint:   #9A8C81;
  --rule:        #E2D7C9;
  --accent:      #9C5440;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --logo: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #1B1513;
    --surface:     #241C18;
    --surface-alt: #2B221D;
    --ink:         #F2E9E0;
    --ink-soft:    #BBAA9E;
    --ink-faint:   #8B7C71;
    --rule:        #3A2E28;
    --accent:      #D89478;
    --logo: invert(1) brightness(0.96) sepia(0.07);
  }
}

:root[data-theme="dark"] {
  --ground:      #1B1513;
  --surface:     #241C18;
  --surface-alt: #2B221D;
  --ink:         #F2E9E0;
  --ink-soft:    #BBAA9E;
  --ink-faint:   #8B7C71;
  --rule:        #3A2E28;
  --accent:      #D89478;
  --logo: invert(1) brightness(0.96) sepia(0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

:where(a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

header.legal {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

header.legal > .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
}

header.legal img { display: block; height: 2rem; width: auto; filter: var(--logo); }

header.legal a.volver {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

header.legal a.volver:hover { color: var(--accent); }

main { padding-block: clamp(2.5rem, 7vh, 4.5rem) 3rem; }

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 2.8rem);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}

.fecha {
  margin: 0 0 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  margin: 1.75rem 0 0.5rem;
}

p, li { color: var(--ink-soft); }

p { margin: 0 0 1.1rem; }

ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }

li { margin-bottom: 0.5rem; }

strong { color: var(--ink); font-weight: 600; }

.ficha {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ficha p { margin: 0 0 0.4rem; }

.ficha p:last-child { margin-bottom: 0; }

.tabla-envoltura { overflow-x: auto; margin-bottom: 1.5rem; }

table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.92rem; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

th {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-width: 2px;
}

footer.legal {
  border-top: 1px solid var(--rule);
  background: var(--surface-alt);
}

footer.legal > .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-block: 2rem 2.5rem;
  font-size: 0.85rem;
}

footer.legal a { text-decoration: none; color: var(--ink-soft); }

footer.legal a:hover { color: var(--accent); text-decoration: underline; }

footer.legal p { margin: 0; font-size: 0.85rem; }

nav.entrelegales { display: flex; flex-wrap: wrap; gap: 1.25rem; }
