/* Car Specs Pro: legal pages (privacy.html, terms.html).
   Stand-alone on purpose: styles.css locks the landing to one fixed, non-scrolling screen.
   Same tokens, fonts and logo as the landing; no JS, no animation, reads well in the
   App Store / Google Play in-app browsers and prints on white. */

:root {
  --ink: #f5f5f3;
  --ink-2: #d6d6d2;
  --ink-3: #9a9a96;
  --line: rgba(255, 255, 255, .09);
  --card: #141416;
  --red-1: #ff5244;
  --red-2: #e3231a;
  --red-3: #a8100a;
  --red-edge: #6e0804;
  --measure: 42rem; /* ~70 characters per line at 17px */
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 100%;
  color: var(--ink-2);
  background: #0c0c0d;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; background: #0c0c0d;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  overflow-wrap: break-word;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 82, 68, .7); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--red-1); }
a:focus-visible { outline: 2px solid var(--red-1); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: calc(var(--measure) + 2 * 24px); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */
.top {
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; max-width: 72rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .32em; text-decoration: none;
  font: 600 22px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; color: var(--ink);
}
.pro {
  position: relative; display: inline-grid; place-items: center;
  padding: .2em .36em .22em;
  font: 700 .8em/1 "Inter Tight", Inter, sans-serif; letter-spacing: 0;
  color: #fff; border-radius: .18em;
  background: linear-gradient(180deg, var(--red-1) 0%, var(--red-2) 52%, var(--red-3) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .25),
    0 1px 0 #8c0c06, 0 2px 0 #7d0a05, 0 3px 0 var(--red-edge), 0 4px 0 #5a0603,
    0 6px 6px rgba(0, 0, 0, .35);
  transform: perspective(240px) rotateX(14deg) translateY(-2px);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.pro::before {
  content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 46%;
  border-radius: .14em .14em .5em .5em / .14em .14em .2em .2em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .06));
}
.pro span { position: relative; }

.tabs { display: flex; gap: 4px; font-size: 15px; }
.tabs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: 999px; text-decoration: none; color: var(--ink-3);
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .07); }

/* ------------------------------------------------------------------ intro */
.intro { padding: 56px 0 8px; }
.eyebrow {
  margin: 0 0 12px; font: 600 13px/1 "Inter Tight", Inter, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red-1);
}
h1, h2, h3 { font-family: "Inter Tight", Inter, sans-serif; color: var(--ink); letter-spacing: -.015em; }
h1 { margin: 0; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.meta { margin: 14px 0 0; font-size: .9375rem; color: var(--ink-3); }

.summary {
  margin: 32px 0 0; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.summary h2 { margin: 0 0 8px; font-size: 1.0625rem; }
.summary ul { margin: 0; padding-left: 1.15em; }
.summary li + li { margin-top: 6px; }

/* table of contents */
.toc { margin: 36px 0 0; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.toc h2 { margin: 0 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 1.6em; columns: 2 16rem; column-gap: 32px; font-size: .9688rem; line-height: 1.55; }
.toc li { break-inside: avoid; padding: 3px 0; color: var(--ink-3); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red-1); }

/* ------------------------------------------------------------------- body */
.doc { padding: 12px 0 64px; }
.doc section { padding-top: 32px; }
.doc h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.doc h2 .n { color: var(--red-1); font-variant-numeric: tabular-nums; margin-right: .4em; }
.doc h3 { margin: 24px 0 6px; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.25em; }
.doc li { margin: 0 0 6px; padding-left: .15em; }
.doc li::marker { color: var(--ink-3); }
.doc strong { color: var(--ink); font-weight: 600; }

.table-scroll { margin: 4px 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font: 600 .8125rem/1.3 "Inter Tight", Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--card); }
td:first-child { color: var(--ink); font-weight: 500; min-width: 9rem; }

.note { padding: 14px 18px; border-left: 3px solid var(--red-2); background: var(--card); border-radius: 0 10px 10px 0; }

/* ----------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0 max(24px, env(safe-area-inset-bottom)); font-size: .8125rem; color: #8d8d89; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; max-width: 72rem; }
.foot a { color: #8d8d89; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot span:first-child { margin-right: auto; }

/* ----------------------------------------------------------------- phones */
@media (max-width: 600px) {
  body { font-size: 1rem; line-height: 1.68; } /* 16px */
  .wrap { padding: 0 18px; }
  .top .wrap { min-height: 60px; }
  .brand { font-size: 19px; }
  .tabs { font-size: 14px; }
  .tabs a { padding: 0 10px; }
  .tabs .home { display: none; }
  .intro { padding-top: 36px; }
  .doc h2 { font-size: 1.3125rem; }
  .summary { padding: 16px 18px; }
  th, td { padding: 10px 12px; }
  .foot span:first-child { width: 100%; }
}

/* ------------------------------------------------------------------ print */
@media print {
  :root, body { background: #fff; color: #222; }
  h1, h2, h3, .doc strong, td:first-child, a { color: #000; }
  .tabs, .toc { display: none; }
  .summary, .note, th { background: #f4f4f4; }
  .top, .foot, .summary, .table-scroll, th, td { border-color: #ddd; }
  .doc section { break-inside: avoid-page; }
}
