/* AutoViz legal pages — shared design system
   Premium, data-forward, financial-terminal energy.
   Mirrors the new landing's tokens (copper/gold accent, layered black, Inter + JetBrains Mono). */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --accent: #E8C77C;
  --accent-rgb: 232, 199, 124;
  --accent-soft: rgba(232, 199, 124, 0.12);
  --accent-mid:  rgba(232, 199, 124, 0.35);
  --accent-deep: #C4A35F;

  --ok: #58d68d;

  --bg-0: #0A0A0B;
  --bg-1: #0F0F11;
  --bg-2: #16161A;
  --bg-3: #1C1C21;
  --bg-4: #23232A;

  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --border-accent: rgba(var(--accent-rgb), 0.3);

  --text: #F4F4F5;
  --text-dim: #A3A3AA;
  --text-mute: #71717A;
  --text-faint: #52525B;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --rad: 10px;
  --rad-lg: 14px;
  --rad-xl: 20px;
}

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

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
}
body {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(var(--accent-rgb), 0.06), transparent 60%),
    var(--bg-0);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: transparent; cursor: pointer; color: inherit; padding: 0; }

/* ─── Container ─── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand__name { letter-spacing: -0.02em; font-weight: 600; }
.brand__name em { font-style: normal; color: var(--accent); }
.brand__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  margin-left: 2px;
  box-shadow: 0 0 8px var(--ok);
  animation: liveDot 2s ease-in-out infinite;
}
@keyframes liveDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.nav__links {
  display: flex; align-items: center; gap: 28px;
  margin-left: 24px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.nav__links a { transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.15s;
}
.btn--primary {
  background: var(--accent);
  color: #0A0A0B;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 8px 24px rgba(var(--accent-rgb), 0.25);
}
.btn--primary:hover { background: #F4D594; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-2); border-color: var(--border-accent); }

/* ─── Page header ─── */
.page-head {
  position: relative;
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-head__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(800px 300px at 30% 50%, #000 30%, transparent 80%);
  opacity: 0.4;
  pointer-events: none;
}
.page-head__inner { position: relative; max-width: 780px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

h1.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1.page-title em { font-style: normal; color: var(--accent); }

.page-head__updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-head__updated::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--text-mute);
}

/* ─── Body / typography ─── */
.legal-body {
  position: relative;
  padding: 56px 0 96px;
}
.legal-body__inner {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-section > .kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.legal-section > .kicker::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--text-mute);
}
.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
.legal-section h2 em { font-style: normal; color: var(--accent); }
.legal-section h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.legal-body a:hover { text-decoration-color: var(--accent); }
.legal-body ul, .legal-body ol {
  margin-left: 1.4em;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.legal-body li { padding: 3px 0; }
.legal-body li::marker { color: var(--accent); }

.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
}

/* ─── Imprint card (used for company / contact details) ─── */
.imprint {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.imprint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.04), transparent 60%);
  pointer-events: none;
}
.imprint > * { position: relative; }
.imprint dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 18px; }
.imprint dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  padding-top: 2px;
}
.imprint dd { color: var(--text); font-size: 14.5px; }
.imprint dd strong { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .imprint dl { grid-template-columns: 1fr; gap: 4px; }
  .imprint dt { padding-top: 12px; }
  .imprint dt:first-child { padding-top: 0; }
}

/* ─── Tables ─── */
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  font-size: 14px;
}
.legal-body th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
  padding: 14px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.legal-body td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}
.legal-body td strong { color: var(--text); }
.legal-body tr:first-child td { border-top: none; }

/* Pricing-style highlight (used on /pricing) */
.legal-body table.is-pricing td:last-child { color: var(--accent); font-family: var(--font-mono); font-weight: 600; }
.legal-body table.is-pricing td:first-child strong { color: var(--text); }

/* ─── Callout / summary box ─── */
.summary-box {
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--border-accent);
  border-radius: var(--rad-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-box__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.summary-box__label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.summary-box ul {
  margin: 0;
  padding-left: 1.3em;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.summary-box li::marker { color: var(--accent); }

/* ─── Pricing tiers (used on /pricing only) ─── */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 16px 0 8px;
}
.tier {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.18s;
}
.tier:hover { border-color: var(--border-strong); }
.tier--featured {
  border-color: var(--border-accent);
  background:
    radial-gradient(400px 300px at 50% 0%, rgba(var(--accent-rgb), 0.08), transparent 70%),
    var(--bg-1);
  padding-top: 36px;
}
.tier--custom {
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(var(--accent-rgb), 0.06), transparent 70%),
    var(--bg-1);
  border-style: dashed;
}
.tier__badge {
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 4px 10px;
  background: var(--accent);
  color: #000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 600;
}
.tier__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.tier__amount {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.tier__amount em { font-style: normal; color: var(--accent); }
.tier__unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.tier__custom {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.tier__desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  min-height: 36px;
}
.tier__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tier__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.tier__features li::before {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8C77C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.tier .btn { width: 100%; justify-content: center; }
.pricing-note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.7;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .tiers { grid-template-columns: 1fr; } }

/* ─── Footer ─── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  margin-top: 80px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__link {
  display: block;
  color: var(--text-dim);
  font-size: 13.5px;
  padding: 5px 0;
  transition: color 0.15s;
}
.footer__link:hover { color: var(--text); }
.footer__bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.footer__bottom a { color: var(--text-dim); }
.footer .brand { font-size: 16px; }
.footer__tagline {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 14px;
  max-width: 260px;
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .container { padding: 0 20px; }
  .imprint { padding: 18px 20px; }
  .legal-body__inner { gap: 36px; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}
