:root {
  --red:      #D91A2A;
  --red-dark: #A81220;
  --blue:     #006A8E;
  --ink:      #141618;
  --ink-2:    #3D3535;
  --ink-3:    #7A6F6F;
  --bg:       #F7F8FA;
  --white:    #FFFFFF;
  --border:   rgba(15,27,40,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TOP BAR ── */
.legal-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,250,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.legal-topbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.legal-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: 16px;
  color: var(--red); text-decoration: none;
  letter-spacing: -.3px;
}
.legal-back {
  font-size: 13px; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.legal-back:hover { color: var(--red); }

/* ── LAYOUT ── */
.legal-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── SIDEBAR / TABLE OF CONTENTS ── */
.legal-toc {
  position: sticky; top: 80px;
}
.toc-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.toc-label::before {
  content: ''; display: block;
  width: 18px; height: 1.5px;
  background: var(--blue); border-radius: 2px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block; padding: 6px 10px;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-3); text-decoration: none;
  border-radius: 8px; border-left: 2px solid transparent;
  transition: all .2s; line-height: 1.4;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--red); background: rgba(217,26,42,.05);
  border-left-color: var(--red);
}

/* ── MAIN CONTENT ── */
.legal-header { margin-bottom: 40px; }
.legal-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.legal-badge::before {
  content: ''; display: block;
  width: 22px; height: 1.5px;
  background: var(--blue); border-radius: 2px;
}
.legal-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -.04em;
  line-height: 1.1; color: var(--ink);
  margin-bottom: 12px;
}
.legal-subtitle {
  font-size: 15px; line-height: 1.7;
  color: var(--ink-3); font-weight: 400;
  max-width: 600px; margin-bottom: 20px;
}
.legal-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.legal-meta-item { font-size: 12.5px; color: var(--ink-3); }
.legal-meta-item strong { color: var(--ink); font-weight: 600; }

.legal-intro {
  margin-bottom: 36px;
  padding: 20px 24px;
  background: rgba(0,106,142,.05);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  font-size: 14px; line-height: 1.75; color: var(--ink-2);
}
.legal-intro p { margin-bottom: 10px; }
.legal-intro p:last-child { margin-bottom: 0; }

/* ── SECTIONS ── */
.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}
.section-heading {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-num {
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 800;
  color: var(--red); min-width: 28px;
  flex-shrink: 0;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em;
  line-height: 1.3;
}
.section-body { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.section-body p { margin-bottom: 12px; }
.section-body p:last-child { margin-bottom: 0; }
.section-body ul {
  list-style: none; margin: 12px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.section-body ul li {
  display: flex; gap: 10px; align-items: flex-start;
}
.section-body ul li::before {
  content: ''; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  margin-top: 8px;
}
.section-body strong { color: var(--ink); font-weight: 600; }

/* ── DIVIDER ── */
.legal-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0 0 44px;
}

/* ── FOOTER ── */
.legal-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 28px 24px;
}
.legal-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.legal-footer p { font-size: 12px; color: rgba(255,255,255,.4); }
.legal-footer-links { display: flex; gap: 20px; }
.legal-footer-links a {
  font-size: 12px; color: rgba(255,255,255,.4);
  text-decoration: none; transition: color .2s;
}
.legal-footer-links a:hover,
.legal-footer-links a[aria-current="page"] {
  color: rgba(255,255,255,.85);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}
@media (max-width: 560px) {
  .legal-wrap { padding: 32px 20px 60px; }
  .legal-meta { gap: 14px; }
  .legal-title { font-size: 26px; }
}
