:root {
  --ink: #1a1a1a;
  --ink-soft: #2c2c2a;
  --green: #2a4a3a;
  --green-deep: #1d3528;
  --green-soft: #3d5e4d;
  --copper: #a8552c;
  --copper-soft: #c47648;
  --cream: #f2ede3;
  --cream-deep: #e8e2d3;
  --paper: #faf7f0;
  --stone: #7a7a72;
  --stone-light: #a8a8a0;
  --hair: rgba(26, 26, 26, 0.12);
  --hair-cream: rgba(242, 237, 227, 0.2);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ============ NAV ============ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; max-width: 1180px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo .wordmark {
  font-family: var(--serif); font-size: 18px; letter-spacing: 0.04em;
  color: var(--ink); font-weight: 500; line-height: 1.1;
}
.nav-logo .wordmark span {
  display: block; font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.25em; color: var(--stone); text-transform: uppercase;
  margin-top: 2px; font-weight: 400;
}
.nav-back {
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.05em; color: var(--stone);
  text-decoration: none; transition: color 0.2s;
}
.nav-back:hover { color: var(--copper); }

/* ============ HERO ============ */
.legal-hero {
  padding: 100px 0 80px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.legal-hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.legal-hero-content {
  position: relative; max-width: 1000px; margin: 0 auto; padding: 0 32px;
}
.eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--copper);
  margin-bottom: 28px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--copper);
}
.legal-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--ink); max-width: 16ch;
  margin-bottom: 28px;
}
.legal-hero h1 em {
  font-style: italic; font-weight: 400; color: var(--green);
}
.legal-hero .meta {
  font-family: var(--serif); font-style: italic;
  color: var(--stone); font-size: 16px;
  display: flex; align-items: center; gap: 14px;
}
.legal-hero .meta::before {
  content: ''; width: 24px; height: 1px; background: var(--stone);
}

/* ============ SUMMARY ============ */
.legal-summary-band {
  background: var(--cream);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 64px 0;
}
.legal-summary {
  max-width: 760px; margin: 0 auto; padding: 0 32px;
}
.legal-summary .summary-label {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.legal-summary .summary-label::before {
  content: ''; width: 24px; height: 1px; background: var(--stone);
}
.legal-summary > p {
  font-family: var(--serif); font-size: 19px;
  line-height: 1.6; color: var(--ink);
  margin-bottom: 28px; font-weight: 500;
  letter-spacing: -0.005em;
}
.legal-summary ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
}
.legal-summary ul li {
  padding: 14px 0 14px 26px;
  position: relative;
  font-size: 15px; line-height: 1.65;
  color: var(--ink-soft);
  border-top: 1px solid var(--hair);
}
.legal-summary ul li:first-child { border-top: none; }
.legal-summary ul li::before {
  content: '·'; position: absolute; left: 4px; top: 10px;
  color: var(--copper); font-weight: 700; font-size: 22px;
}
.legal-summary ul li strong {
  font-weight: 500; color: var(--ink);
}

/* ============ MAIN ============ */
.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 32px 120px;
}
@media (max-width: 640px) { .legal-main { padding: 64px 24px 80px; } }

/* ============ SECCIONES ============ */
section {
  margin-bottom: 64px;
}
section:last-of-type { margin-bottom: 0; }

section h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3vw, 28px); line-height: 1.25;
  color: var(--ink); margin-bottom: 24px;
  letter-spacing: -0.005em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
  position: relative;
}
section h2::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 32px; height: 1px;
  background: var(--copper);
}

section h3 {
  font-family: var(--serif); font-weight: 500;
  font-style: italic;
  font-size: 19px; line-height: 1.4;
  color: var(--green); margin-top: 36px; margin-bottom: 16px;
}

section p {
  font-size: 16px; line-height: 1.75;
  color: var(--ink-soft); margin-bottom: 18px;
}

section ul {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}
section ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 16px; line-height: 1.7;
  color: var(--ink-soft);
}
section ul li::before {
  content: '—'; position: absolute; left: 0; top: 8px;
  color: var(--copper); font-family: var(--serif);
}
section ul li strong {
  font-weight: 500; color: var(--ink);
}

section a {
  color: var(--copper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
section a:hover { color: var(--green); }

/* ============ DATOS IDENTIFICATIVOS ============ */
.data-list {
  background: var(--cream) !important;
  border: none !important;
  border-left: 3px solid var(--copper) !important;
  padding: 28px 32px !important;
  margin: 8px 0 28px !important;
  list-style: none;
}
.data-list li {
  padding: 10px 0 !important;
  font-size: 15px !important;
  line-height: 1.55;
  color: var(--ink-soft);
}
.data-list li::before { display: none !important; }
.data-list li strong {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* ============ TABLA DE COOKIES ============ */
.cookie-table {
  margin: 24px 0 32px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--green);
}
.cookie-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 2fr 0.9fr;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cookie-row:last-child { border-bottom: none; }
.cookie-row.header {
  background: var(--cream);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.cookie-row code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 2px;
  color: var(--copper);
  border: 1px solid var(--hair);
}
@media (max-width: 720px) {
  .cookie-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .cookie-row.header { display: none; }
  .cookie-row > div { padding: 4px 0; }
  .cookie-row > div::before {
    display: block;
    font-family: var(--sans); font-size: 10px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--copper); margin-bottom: 4px;
    font-weight: 500;
  }
  .cookie-row:not(.header) > div:nth-child(1)::before { content: 'Nombre / Servicio'; }
  .cookie-row:not(.header) > div:nth-child(2)::before { content: 'Proveedor'; }
  .cookie-row:not(.header) > div:nth-child(3)::before { content: 'Finalidad'; }
  .cookie-row:not(.header) > div:nth-child(4)::before { content: 'Duración / Datos'; }
}

/* ============ DOCUMENTACIÓN RELACIONADA ============ */
.legal-related {
  margin-top: 80px;
  padding: 48px 32px;
  background: var(--green);
  color: var(--cream);
  text-align: center;
}
.legal-related .related-label {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--copper-soft); margin-bottom: 20px;
  font-weight: 500;
}
.legal-related ul {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 0;
}
.legal-related ul li { padding: 0; }
.legal-related ul li::before { display: none; }
.legal-related ul li a {
  font-family: var(--serif); font-size: 17px;
  font-style: italic; color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--copper-soft);
  padding-bottom: 4px;
  transition: color 0.2s;
}
.legal-related ul li a:hover {
  color: var(--copper-soft);
}

/* ============ FOOTER ============ */
.legal-footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 48px 0 32px;
  text-align: center;
}
.legal-footer .container {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
}
.legal-footer p {
  font-family: var(--sans); font-size: 13px;
  margin-bottom: 12px; opacity: 0.75;
  letter-spacing: 0.02em;
}
.legal-footer p:last-child { margin-bottom: 0; }
.legal-footer a {
  color: var(--cream); text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.legal-footer a:hover { opacity: 1; color: var(--copper-soft); }
