:root {
  --nav-offset: 90px;
}

html {
  scroll-behavior: auto;
}

section {
  scroll-margin-top: var(--nav-offset);
}

.page-legal {
  padding: 120px 20px;
  max-width: 980px;
  margin: 0 auto;
}

.legal-hero {
  text-align: center;
  margin-bottom: 40px;
}

.legal-hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(45deg, #ff5e00, #00b2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-meta {
  opacity: 0.7;
  font-size: 0.95rem;
  margin-top: 10px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 94, 0, 0.2);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.legal-toc h4 {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #ff5e00;
}

.legal-toc a {
  display: block;
  font-size: 0.98rem;
  opacity: 0.8;
  padding: 8px 6px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: #fff;
  transition: 0.2s;
}

.legal-toc a:hover,
.legal-toc a.active {
  border-left-color: #00b2ff;
  background: rgba(0, 178, 255, 0.08);
  opacity: 1;
}

.legal-content section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 94, 0, 0.2);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}

.legal-content section:hover {
  border-color: #00b2ff;
}

.legal-content h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #ffffff, #ff5e00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content p,
.legal-content li {
  line-height: 1.75;
  opacity: 0.87;
  font-size: 1.02rem;
}

.legal-content ul {
  padding-left: 18px;
  margin: 8px 0 4px;
  list-style: square;
}

.legal-note {
  margin-top: 8px;
  font-size: 0.92rem;
  opacity: 0.65;
}

@media (max-width: 980px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: relative;
    top: 0;
  }
}
