/* My Healthy Car — páginas legales. Mismo lenguaje visual que la landing,
   optimizado para lectura de texto largo. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-400.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --paper: #FAFAF7;
  --paper-soft: #F3F3EC;
  --ink: #121A15;
  --muted: #5D6862;
  --line: rgba(18, 26, 21, .10);
  --line-soft: rgba(18, 26, 21, .06);
  --brand: #16A34A;
  --brand-deep: #0E7A4E;
  --brand-tint: #E8F5EC;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.7;
}
::selection { background: var(--brand); color: #fff; }

/* nav (idéntica a la landing) */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { max-width: 1140px; margin-inline: auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.wordmark img { width: 28px; height: 28px; }
.wordmark .hl { color: var(--brand); }
.nav-back { font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-back:hover { color: var(--ink); }

/* contenido */
.legal-wrap { max-width: 760px; margin-inline: auto; padding: clamp(48px, 8vw, 88px) 24px clamp(64px, 9vw, 110px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-deep); margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--brand); }
.eyebrow a { color: inherit; text-decoration: none; }

h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 14px; }
.meta { color: var(--muted); font-size: .95rem; margin: 0 0 6px; }
.meta + .meta { margin-bottom: 0; }

h2 { font-size: 1.4rem; font-weight: 650; letter-spacing: -.01em; margin: 44px 0 12px; }
h3 { font-size: 1.1rem; font-weight: 650; margin: 28px 0 8px; }
p { margin: 0 0 16px; color: #25302A; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; color: #25302A; }
a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
strong { font-weight: 650; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* tarjeta de aviso/acento opcional */
.note { background: var(--brand-tint); border-left: 3px solid var(--brand); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }

/* footer (idéntico a la landing) */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0 52px; font-size: .88rem; color: var(--muted); }
.footer-grid { max-width: 1140px; margin-inline: auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .tagline { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); margin: 8px 0 0; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; color: var(--muted); transition: color .15s; }
.footer a:hover { color: var(--ink); }
.footer .legal-note { max-width: 1140px; margin: 26px auto 0; padding: 0 24px; font-size: .78rem; color: #9aa39d; }
