/* ============================================================
   Páginas legales · Matby Peralta — misma línea editorial
   ============================================================ */
:root {
  --ink: #0c1410;
  --ink-2: #1a2220;
  --ink-soft: #2a342e;
  --green: #1e3a2e;
  --green-deep: #11251c;
  --bone: #f4efe6;
  --bone-2: #ebe4d5;
  --bone-3: #ddd4c0;
  --paper: #fbf8f1;
  --white: #ffffff;
  --gold: #b89968;
  --gold-soft: #d4bf97;
  --gold-deep: #8b6f3f;

  --rule: rgba(12, 20, 16, 0.12);
  --rule-strong: rgba(12, 20, 16, 0.24);
  --rule-inv: rgba(244, 239, 230, 0.18);
  --rule-inv-strong: rgba(244, 239, 230, 0.35);

  --font-sans: "Geist", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-mono: 11px;
  --t-body: clamp(15px, 0.5vw + 13px, 17px);
  --t-lead: clamp(18px, 0.8vw + 14px, 22px);
  --t-h4: clamp(18px, 0.8vw + 14px, 23px);
  --t-h2: clamp(34px, 4vw + 16px, 68px);

  --pad-x: clamp(22px, 5vw, 64px);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

a {
  color: inherit;
}

/* ---- Top bar ---- */
.legal-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad-x);
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.legal-bar__brand {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1vw + 13px, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.legal-bar__brand em {
  font-style: italic;
  color: var(--gold-deep);
}

.legal-bar__back {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.legal-bar__back:hover {
  color: var(--ink);
  gap: 13px;
}

/* ---- Document head ---- */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) var(--pad-x) clamp(64px, 8vw, 120px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.legal-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--rule-strong);
}

.legal-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.legal-title em {
  font-style: italic;
  color: var(--gold-deep);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.legal-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---- Document body ---- */
.legal-lead {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: clamp(36px, 4vw, 56px);
  margin-bottom: clamp(8px, 1vw, 16px);
  max-width: 60ch;
}

.legal-section {
  margin-top: clamp(34px, 3.6vw, 52px);
}

.legal-section h2 {
  font-family: var(--font-sans);
  font-size: var(--t-h4);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  display: flex;
  gap: 14px;
}

.legal-section h2 .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  padding-top: 5px;
  flex: none;
}

.legal-section h3 {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: clamp(18px, 2vw, 26px);
  margin-bottom: 4px;
}

.legal-section p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 64ch;
  text-wrap: pretty;
}

.legal-section p:first-of-type {
  margin-top: 16px;
}

.legal-section ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 64ch;
}

.legal-section li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.legal-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

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

.legal-section a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

/* ---- Callout (medical / important) ---- */
.legal-callout {
  margin-top: clamp(34px, 3.6vw, 52px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--green-deep);
  color: var(--bone);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.legal-callout::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -30%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(184, 153, 104, 0.16), transparent 70%);
  pointer-events: none;
}

.legal-callout .kicker {
  color: var(--gold-soft);
}

.legal-callout .kicker::before {
  background: var(--gold-soft);
}

.legal-callout p {
  margin-top: 16px;
  color: rgba(244, 239, 230, 0.85);
  max-width: 60ch;
  position: relative;
}

.legal-callout strong {
  color: var(--bone);
}

/* ---- Contact / footer of doc ---- */
.legal-contact {
  margin-top: clamp(40px, 4.4vw, 64px);
  padding-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--rule-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.legal-contact p {
  color: var(--ink-soft);
  max-width: 46ch;
}

.legal-contact a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-contact a:hover {
  color: var(--gold-deep);
  border-color: var(--gold);
}

/* ---- Cross-links to other legal docs ---- */
.legal-more {
  margin-top: clamp(40px, 4.4vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-more__label {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.legal-more a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  transition: all 0.18s ease;
}

.legal-more a:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.legal-more a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}
