/* AutoDealSuite — Shared styles */
/* Used by: index.html, legal.html, terms.html */

:root {
  --ink: #0b1a26;
  --ink-2: #122534;
  --paper: #f7f9fb;
  --line: rgba(11, 26, 38, 0.12);
  --line-soft: rgba(11, 26, 38, 0.07);
  --muted: #5a6b78;
  --primary: #0069a8;
  --primary-soft: #3b8ec4;
  --primary-tint: #e6f1f8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 400;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ——— NAV ——— */

nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(247, 249, 251, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand span {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ——— BUTTONS ——— */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-family: inherit;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.small {
  padding: 9px 16px;
  font-size: 12.5px;
}

/* ——— PAGE CONTENT (legal.html, terms.html) ——— */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 32px 6rem;
}

.page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.page .last-updated {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  display: block;
}

.page h2 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.625rem;
}

.page p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1rem;
}

.page ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.page li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 9px;
  flex-shrink: 0;
}

.page a {
  color: var(--primary);
  text-decoration: none;
}

.page a:hover {
  text-decoration: underline;
}

/* ——— SIMPLE FOOTER (legal.html, terms.html) ——— */

footer.simple {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--primary);
}

.foot-copy {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— UTILITY ——— */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— RESPONSIVE ——— */

@media (max-width: 1080px) {
  .container {
    padding: 0 24px;
  }
}

@media (max-width: 780px) {
  html,
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    height: 60px;
    padding: 0 20px;
  }

  .brand {
    font-size: 17px;
  }

  .btn.small {
    padding: 8px 14px;
    font-size: 12px;
  }

  .page {
    padding: 2.5rem 20px 4rem;
  }

  .foot-inner {
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .page {
    padding: 2rem 16px 3rem;
  }

  .foot-inner {
    padding: 0 16px;
  }

  .foot-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
