/* ======================================
   LEGAL PAGES — Privacy Policy & ToS
   Shared supplemental styles
   ====================================== */

/* ---- LEGAL HERO ---- */
.legal-hero {
  background: var(--black);
  padding: 160px 0 72px;
  position: relative;
  overflow: hidden;
}
.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 260px; height: 3px;
  background: var(--red);
}

.lh-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.lh-breadcrumb a {
  color: rgba(255,255,255,0.4);
  transition: color 0.25s;
}
.lh-breadcrumb a:hover { color: var(--red); }
.lh-breadcrumb span { color: rgba(255,255,255,0.2); }

.lh-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
}

.lh-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

/* ---- LEGAL BODY ---- */
.legal-body {
  background: var(--off-white);
  padding: 80px 0 120px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

/* ---- SIDEBAR TOC ---- */
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-left: 3px solid var(--red);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.toc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.legal-toc nav ol {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc nav ol li {
  counter-increment: toc-counter;
}
.legal-toc nav ol li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--grey-600);
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
  text-decoration: none;
}
.legal-toc nav ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 10px;
  font-weight: 700;
  color: var(--grey-200);
  flex-shrink: 0;
  transition: color 0.25s;
}
.legal-toc nav ol li a:hover {
  color: var(--red);
}
.legal-toc nav ol li a:hover::before {
  color: var(--red);
}

/* ---- LEGAL CONTENT ---- */
.legal-intro {
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 28px 32px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-sm);
}
.legal-intro p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--grey-600);
}
.legal-intro p + p { margin-top: 14px; }

.legal-content section {
  margin-bottom: 56px;
  scroll-margin-top: 120px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-content h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--red);
  flex-shrink: 0;
  border-radius: 2px;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--grey-800);
  margin: 28px 0 12px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--grey-600);
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.legal-content ul li,
.legal-content ol li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--grey-600);
  padding-left: 24px;
  position: relative;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 14px; height: 2px;
  background: var(--red);
}
.legal-content ol {
  counter-reset: legal-ol;
}
.legal-content ol li {
  counter-increment: legal-ol;
}
.legal-content ol li::before {
  content: counter(legal-ol) '.';
  position: absolute;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}

.legal-content strong {
  font-weight: 600;
  color: var(--grey-800);
}

.legal-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.legal-content a:hover { color: var(--red-dark); }

/* Contact box */
.legal-contact-box {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--red);
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.legal-contact-box strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 10px;
}
.legal-contact-box p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey-600);
  margin-bottom: 0;
}

/* Highlight box */
.legal-highlight {
  background: rgba(212,0,26,0.05);
  border: 1px solid rgba(212,0,26,0.15);
  border-left: 4px solid var(--red);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-800);
}
.legal-highlight strong {
  color: var(--red);
  font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 32px;
    align-items: start;
  }
  .toc-label { grid-row: 1; }
  .legal-toc nav { grid-column: 2; grid-row: 1 / span 2; }
  .legal-toc nav ol { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .legal-toc nav ol li a { padding: 4px 12px 4px 0; border-bottom: none; }
}

@media (max-width: 640px) {
  .legal-hero { padding: 130px 0 52px; }
  .legal-body { padding: 48px 0 80px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc nav { grid-column: 1; }
  .legal-content h2 { font-size: 21px; }
  .legal-intro { padding: 20px; }
  .legal-contact-box { padding: 18px 20px; }
}
