/* AfFord legal pages — shared styles */

:root {
  --plum: #2d1b2e;
  --plum-deep: #1a0e1b;
  --gold: #b8915a;
  --gold-light: #d4b078;
  --champagne: #e5caa8;
  --cream: #f7f1e8;
  --cream-dark: #ede6dc;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-muted: #7a7a7a;
  --border: rgba(184,145,90,0.22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-dark);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav.legal-nav {
  background: var(--plum);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(184,145,90,0.2);
}
.legal-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.legal-logo .gold { color: var(--gold); font-style: italic; font-size: 0.55em; vertical-align: super; margin-left: 1px; font-weight: 400; }
.legal-back {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s, color 0.2s;
}
.legal-back:hover { gap: 12px; color: var(--gold-light); }
.legal-back::before { content: '←'; font-size: 14px; }

/* ── HEADER ── */
.legal-header {
  background: var(--plum);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.legal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(184,145,90,0.18), transparent 50%);
  pointer-events: none;
}
.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.legal-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.legal-eyebrow::before {
  content: '— ';
  letter-spacing: 0;
  color: var(--gold);
}
.legal-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 22px;
}
.legal-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
.legal-meta span { margin: 0 12px 0 0; }
.legal-meta strong { color: var(--gold-light); font-weight: 400; }

/* ── BODY ── */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}

.legal-intro {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-mid);
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}
.legal-section:last-child { margin-bottom: 0; }

.legal-section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.legal-section h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  line-height: 1.2;
}

.legal-section h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 28px 0 12px;
  line-height: 1.3;
}

.legal-section p {
  font-size: 15.5px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul, .legal-section ol {
  margin: 16px 0 20px 0;
  padding-left: 0;
  list-style: none;
}
.legal-section ul li, .legal-section ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.legal-section ol {
  counter-reset: legal-list;
}
.legal-section ol li {
  counter-increment: legal-list;
}
.legal-section ol li::before {
  content: counter(legal-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
}

.legal-section a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,145,90,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.legal-section a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.legal-section strong {
  color: var(--text-dark);
  font-weight: 500;
}

.legal-callout {
  background: rgba(184,145,90,0.06);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}
.legal-callout p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  color: var(--text-dark);
  margin-bottom: 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  background: rgba(184,145,90,0.08);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}
.legal-table td {
  color: var(--text-mid);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }

/* ── TOC ── */
.legal-toc {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 56px;
  border-radius: 4px;
}
.legal-toc-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  columns: 2;
  column-gap: 32px;
}
.legal-toc ol li {
  counter-increment: toc;
  margin-bottom: 8px;
  break-inside: avoid;
}
.legal-toc ol li a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  display: flex;
  gap: 10px;
  padding: 4px 0;
  transition: color 0.2s;
  border: none;
}
.legal-toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 12px;
  flex-shrink: 0;
}
.legal-toc ol li a:hover { color: var(--gold); }

/* ── DISCLAIMER NOTICE ── */
.legal-notice {
  background: var(--plum);
  color: rgba(255,255,255,0.85);
  padding: 32px;
  margin-top: 64px;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}
.legal-notice-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.legal-notice p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.legal-notice p + p { margin-top: 10px; }

/* ── FOOTER ── */
.legal-footer {
  background: var(--plum-deep);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.legal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.legal-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-footer a {
  color: rgba(229,202,168,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-footer a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .legal-header { padding: 56px 0 72px; }
  .legal-body { padding: 56px 24px 80px; }
  .legal-toc ol { columns: 1; }
  .legal-section h2 { font-size: 24px; }
  .legal-intro { font-size: 18px; }
}
