/* ============================================
   NISTERN — Legal Pages
   ============================================ */

body {
  background: #050508;
}

/* HERO */
.legal-hero {
  background: #050508;
  padding-top: calc(var(--navbar-height) + var(--space-9));
  padding-bottom: var(--space-7);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(198,241,53,0.07);
  filter: blur(100px);
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.legal-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 760px;
}

.legal-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.legal-hero__date {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  letter-spacing: var(--tracking-wide);
}

.legal-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: var(--weight-black);
  color: var(--color-white);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.legal-hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.45);
  line-height: var(--leading-loose);
  max-width: 560px;
}

/* BODY */
.legal-body {
  background: #050508;
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.legal-body__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-9);
  align-items: start;
}

/* TABLE OF CONTENTS */
.legal-toc {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-5));
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.legal-toc__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.legal-toc__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
  line-height: var(--leading-normal);
}

.legal-toc__link:hover {
  color: var(--color-green);
}

/* CONTENT */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-bottom: var(--space-8);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  color: var(--color-white);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.legal-section__body {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
  line-height: var(--leading-loose);
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-list li {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.55);
  line-height: var(--leading-loose);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.legal-list li::before {
  content: '→';
  color: var(--color-green);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
  margin-top: 4px;
}

.legal-contact-link {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-green);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.legal-contact-link:hover {
  opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .legal-body__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-4);
    background: rgba(255,255,255,0.03);
    border: 0.5px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
  }
  .legal-toc__label {
    width: 100%;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .legal-toc__link {
    padding: 4px 12px;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: var(--text-xs);
  }
}

@media (max-width: 767px) {
  .legal-hero {
    padding-top: calc(60px + var(--space-5));
    padding-bottom: var(--space-6);
  }
  .legal-hero__headline {
    font-size: clamp(28px, 7vw, 44px);
  }
  .legal-section__title {
    font-size: var(--text-xl);
  }
  .legal-body {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }
}
