/* ──────────────────────────────────────────────────────────────
   Perkizo · legal pages (Términos / Privacidad / Cookies)
   Shared stylesheet, loaded by the 3 legal HTMLs under /legal/.
   ────────────────────────────────────────────────────────────── */

:root {
  --paper:        #FAF8F2;
  --paper-deep:   #F2EEE2;
  --hairline:     #E8E2D4;
  --hairline-warm:#D9D1BD;
  --ink:          #0E2A47;
  --ink-soft:     #2C405E;
  --ink-mute:     #5A6B82;
  --green:        #0DBC6E;
  --green-deep:   #0A8F5A;
  --lime:         #9FE870;
  --col:          clamp(16px, 4vw, 56px);
  --ease:         cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-deep); }
a:hover { color: var(--ink); }

.shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-left: var(--col);
  padding-right: var(--col);
}

/* ─── nav (slim version of the homepage one) ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav .shell {
  max-width: 1280px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand {
  display: inline-flex; align-items: center; line-height: 0;
}
.brand img { height: 76px; width: auto; }
@media (max-width: 640px) {
  .nav { height: 78px; }
  .brand img { height: 56px; }
}
.nav-back {
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s var(--ease);
}
.nav-back:hover { color: var(--ink); }
.nav-back .arrow { transition: transform .25s var(--ease); }
.nav-back:hover .arrow { transform: translateX(-3px); }

/* ─── doc layout ─── */
.doc {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 9vw, 110px);
}

.eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 16px;
}

h1.doc-title {
  font-family: "Fraunces", "Plus Jakarta Sans", serif;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.doc-meta {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px; color: var(--ink-mute);
}
.doc-meta::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}

.doc-intro {
  margin: 28px 0 36px;
  font-family: "Fraunces", serif;
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink);
  line-height: 1.5;
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 18px;
}

/* sections */
section.doc-section {
  margin: clamp(36px, 5vw, 56px) 0 0;
}
section.doc-section h2 {
  font-family: "Fraunces", serif;
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
section.doc-section p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}
section.doc-section p + p { margin-top: 0; }
section.doc-section ul {
  margin: 12px 0 12px;
  padding: 0;
  list-style: none;
}
section.doc-section ul li {
  position: relative;
  padding: 0 0 8px 22px;
}
section.doc-section ul li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 8px; height: 1.5px; background: var(--green);
}

/* TOC pill list at the top (linkable) */
.toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0;
  margin: 24px 0 0;
}
.toc li a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.toc li a:hover { background: var(--ink); color: var(--paper); }

/* divider */
hr.rule {
  border: none;
  border-top: 1px dashed var(--hairline-warm);
  margin: clamp(40px, 5vw, 60px) 0;
}

/* contact card */
.contact {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper-deep) 60%, var(--paper));
}
.contact h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.contact p { margin: 0; font-size: 14px; }

/* footer (simplified) */
footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0;
  font-size: 13px;
  color: var(--ink-mute);
}
footer .shell {
  max-width: 1280px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer nav a {
  color: var(--ink-soft); text-decoration: none;
  margin-left: 18px;
}
footer nav a:hover { color: var(--ink); }

/* selection */
::selection { background: var(--green); color: var(--paper); }
