/* ==========================================================================
   Lightning Limo — Legal pages stylesheet
   Used by: cancellation.html, privacy.html, terms.html
   Upload to site root alongside the three pages.
   ========================================================================== */

:root {
  --bg:            #0a0a0c;
  --bg-elevated:   #111114;
  --surface:       #16161a;
  --gold:          #d4af37;
  --gold-soft:     #e8cd7a;
  --gold-dim:      rgba(212, 175, 55, 0.22);
  --text:          #ececf0;
  --text-muted:    #a3a3ac;
  --line:          rgba(255, 255, 255, 0.08);
  --radius:        10px;
  --maxw:          1180px;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 150px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid var(--gold-dim); color: var(--gold-soft); background: transparent;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: rgba(212, 175, 55, 0.1); text-decoration: none; }
.btn-solid { background: var(--gold); color: #0a0a0c; border-color: var(--gold); }
.btn-solid:hover { background: var(--gold-soft); color: #0a0a0c; }
@media (max-width: 720px) { .btn-hide-sm { display: none; } }

/* ---------- Legal section nav ---------- */
.legal-nav { border-bottom: 1px solid var(--line); background: var(--bg-elevated); }
.legal-nav ul {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.legal-nav ul::-webkit-scrollbar { display: none; }
.legal-nav a {
  display: block; padding: 14px 16px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap;
}
.legal-nav a:hover { color: var(--text); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Page head ---------- */
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; font-weight: 700;
  margin: 0 0 16px; letter-spacing: -.02em;
}
.lede { color: var(--text-muted); font-size: 17px; max-width: 68ch; margin: 0 0 20px; }
.meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 13px; color: var(--text-muted); letter-spacing: .02em;
}
.meta strong { color: var(--text); font-weight: 600; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 44px 0 80px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Table of contents ---------- */
.toc { position: sticky; top: 130px; align-self: start; }
.toc h2 {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 14px; font-weight: 700;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 7px 0 7px 30px; position: relative;
  font-size: 14px; line-height: 1.45; color: var(--text-muted); border-left: 1px solid var(--line);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 10px; top: 7px;
  font-size: 11px; font-variant-numeric: tabular-nums; color: rgba(212,175,55,.55);
}
.toc a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 900px) {
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-elevated); }
}

/* ---------- Content ---------- */
.content { max-width: 74ch; }
.content section { scroll-margin-top: 150px; padding-bottom: 12px; }
.content section + section { margin-top: 46px; padding-top: 40px; border-top: 1px solid var(--line); }
.content h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 27px); line-height: 1.25; font-weight: 700;
  margin: 0 0 16px; letter-spacing: -.01em;
}
.content h2 .num {
  display: block; font-size: 12px; letter-spacing: .16em; font-weight: 700;
  color: var(--gold); margin-bottom: 8px; font-family: var(--font-body);
}
.content h3 {
  font-size: 17px; font-weight: 700; margin: 30px 0 10px; color: var(--text);
  letter-spacing: -.005em;
}
.content p { margin: 0 0 16px; color: #d5d5dc; }
.content ul, .content ol { margin: 0 0 18px; padding-left: 22px; color: #d5d5dc; }
.content li { margin-bottom: 9px; }
.content li::marker { color: var(--gold); }
.content strong { color: #fff; font-weight: 650; }

/* ---------- Callout ---------- */
.callout {
  border: 1px solid var(--gold-dim); border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.05);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 22px;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-label {
  display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 8px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
caption {
  text-align: left; padding: 14px 18px; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); font-weight: 700; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-elevated); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: #fff; font-weight: 600; }

/* ---------- Contact block ---------- */
.contact-card {
  border: 1px solid var(--line); background: var(--bg-elevated);
  border-radius: var(--radius); padding: 24px; margin-top: 8px;
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 15px; }
.contact-card dt { color: var(--text-muted); }
.contact-card dd { margin: 0; }
@media (max-width: 520px) { .contact-card dl { grid-template-columns: 1fr; gap: 2px 0; } .contact-card dd { margin-bottom: 12px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-elevated); padding: 44px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-grid h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.footer-grid p { color: var(--text-muted); font-size: 14px; margin: 0 0 8px; max-width: 42ch; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 14px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --text: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .legal-nav, .toc, .site-footer, .btn { display: none !important; }
  .layout { display: block; padding: 0; }
  .content { max-width: none; }
  .content p, .content li, .content ul, .content ol { color: #000; }
  .content section + section { border-top: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
  .callout { border: 1px solid #999; background: #f6f6f6; }
}