/* ══════════════════════════════════════
   LEGAL PAGES — extends style.css
   Reuses the RideLink gold/dark system
   ══════════════════════════════════════ */

/* ── PAGE HEADER (mini hero) ── */
.legal-header {
  position: relative;
  padding: 160px 0 80px;
  background: var(--dark);
  overflow: hidden;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.legal-header .hero-glow {
  top: -260px; left: -220px;
}
.legal-header .hero-glow-2 {
  bottom: -320px; right: -240px;
}
.legal-crumb {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted-custom);
  margin-bottom: 1rem;
}
.legal-crumb a { color: var(--text-muted-custom); text-decoration: none; transition: color .2s; }
.legal-crumb a:hover { color: var(--gold); }
.legal-crumb .sep { color: rgba(201,168,76,0.4); margin: 0 0.5rem; }
.legal-crumb .current { color: var(--gold); }

.legal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.legal-title .accent { color: var(--gold); }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.25rem;
}
.legal-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted-custom);
}
.legal-meta-chip i { color: var(--gold); font-size: 0.75rem; }
.legal-intro {
  color: var(--text-muted-custom);
  max-width: 640px;
  line-height: 1.7;
  margin-top: 1.5rem;
  font-weight: 300;
}

/* ── BODY LAYOUT ── */
#legal-body { background: var(--dark-2); }

.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
}
.legal-toc-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; margin-bottom: 0.15rem; }
.legal-toc a {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  text-decoration: none;
  color: var(--text-muted-custom);
  font-size: 0.85rem;
  padding: 0.45rem 0.5rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: rgba(201,168,76,0.5);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.legal-toc a:hover, .legal-toc a.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.08);
}

.legal-content {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 4px;
  padding: 3rem;
}
.legal-section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  scroll-margin-top: 100px;
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-section-head {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  margin-bottom: 1.1rem;
}
.legal-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: rgba(201,168,76,0.35);
  line-height: 1;
  min-width: 46px;
}
.legal-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 0;
}
.legal-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin: 1.25rem 0 0.5rem;
}
.legal-section p {
  color: var(--text-muted-custom);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 1rem;
}
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.legal-section ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted-custom);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.legal-section ul li strong { color: var(--white); font-weight: 600; }
.legal-section a.inline-link { color: var(--gold-light); text-decoration: none; border-bottom: 1px dotted rgba(201,168,76,0.4); }
.legal-section a.inline-link:hover { color: var(--gold); border-color: var(--gold); }

.legal-highlight {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.25);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  padding: 1.1rem 1.4rem;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.7;
  margin: 1rem 0;
}
.legal-highlight i { color: var(--gold); margin-right: 0.5rem; }

.legal-footer-note {
  text-align: center;
  color: var(--text-muted-custom);
  font-size: 0.82rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.legal-footer-note .gold { color: var(--gold); }

.legal-switch-card {
  margin-top: 1.75rem;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 1.5rem;
}
.legal-switch-card p {
  font-size: 0.82rem;
  color: var(--text-muted-custom);
  margin-bottom: 0.85rem;
}
.legal-switch-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.legal-switch-card a:hover { color: var(--gold); }


@media (max-width: 991px) {
  .legal-toc { position: static; margin-bottom: 2rem; }
  .legal-content { padding: 2rem 1.5rem; }
}
