/* AXIOM World — Legal Pages */


.legal-page {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 120px;
  min-height: 100vh;
  position: relative;
}


.legal-page::before {
  content: '';
  position: absolute;
  top: 80px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, .04), transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.legal-page::after {
  content: '';
  position: absolute;
  top: 500px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .015), transparent 70%);
  pointer-events: none;
  filter: blur(100px);
}

/* Header */
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  text-align: center;
}

.legal-header .label-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(74, 222, 128, .06);
  border: 1px solid rgba(74, 222, 128, .12);
  border-radius: 980px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.legal-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-date {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.legal-date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: datePulse 2s ease-in-out infinite;
}

@keyframes datePulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}


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

/* Sidebar TOC */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

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

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list a {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all .25s var(--ease);
  line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--text);
  background: rgba(255,255,255,.03);
  border-left-color: var(--white);
}

/* Content */
.legal-body {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.legal-body section {
  margin-bottom: 8px;
  padding: 32px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .015);
  transition: border-color .4s, background .4s;
}

.legal-body section:hover {
  border-color: var(--border-m);
  background: rgba(255, 255, 255, .025);
}

.legal-body h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-body h2::before {
  content: attr(data-num);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--text-3);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.legal-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text);
  padding-left: 2px;
}

.legal-body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 12px;
}

.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-h);
  transition: text-decoration-color .3s;
}

.legal-body a:hover {
  text-decoration-color: var(--white);
}

.legal-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.legal-body li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 4px;
  transition: color .25s;
}

.legal-body li:hover {
  color: var(--text);
}

.legal-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-h);
  transition: background .25s;
}

.legal-body li:hover::before {
  background: var(--green);
}

.legal-body li strong {
  color: var(--text);
  font-weight: 600;
}


.legal-nav {
  display: flex;
  gap: 20px;
}

.legal-nav a {
  font-size: 12px;
  color: var(--text-3);
  transition: color .25s;
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-toc {
    position: relative;
    top: auto;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .toc-list a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
  }

  .toc-list a:hover,
  .toc-list a.active {
    border-left-color: transparent;
    border-bottom-color: var(--white);
    background: rgba(255,255,255,.04);
  }
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 72px;
  }

  .legal-page::before,
  .legal-page::after {
    display: none;
  }

  .legal-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }

  .legal-header h1 {
    font-size: 28px;
  }

  .legal-toc {
    margin-bottom: 28px;
    padding-bottom: 20px;
  }

  .toc-list {
    gap: 2px;
  }

  .toc-list a {
    font-size: 11px;
    padding: 5px 8px;
  }

  .legal-body section {
    padding: 22px 18px;
    margin-bottom: 6px;
  }

  .legal-body h2 {
    font-size: 15px;
    gap: 10px;
  }

  .legal-body h2::before {
    font-size: 9px;
    padding: 3px 6px;
    min-width: 24px;
  }

  .legal-body h3 {
    font-size: 13px;
  }

  .legal-body p,
  .legal-body li {
    font-size: 13px;
    line-height: 1.8;
  }

  .legal-body li {
    padding-left: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .legal-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .legal-header h1 {
    font-size: 24px;
  }

  .legal-header .label-pill {
    font-size: 9px;
    padding: 4px 12px;
  }

  .legal-body section {
    padding: 18px 16px;
    margin-bottom: 4px;
  }

  .toc-list a {
    font-size: 10px;
    padding: 4px 6px;
  }
}
