

.legal-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 5rem;
}

.legal-hero {
  text-align: center;
  padding: 2.4rem 1rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2.4rem;
}

.legal-hero-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
}

.legal-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: .5rem;
}

.legal-hero p {
  color: var(--text-dim);
  font-size: .95rem;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 600;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2.4rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 90px;
  background: rgba(13, 13, 13, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.legal-toc-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 0 .4rem .6rem;
}

.legal-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-size: .85rem;
  line-height: 1.3;
  transition: all .15s;
}

.legal-toc a:hover { color: var(--text); background: var(--glass); }
.legal-toc a.active { color: var(--cyan); background: rgba(199, 199, 209, 0.08); font-weight: 600; }

.legal-content section {
  scroll-margin-top: 90px;
  margin-bottom: 2.6rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--glass-border);
}

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

.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .9rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.legal-content h2 .legal-num {
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--text);
  margin: 1.3rem 0 .7rem;
}

.legal-content p {
  color: var(--text-dim);
  font-size: .93rem;
  line-height: 1.75;
  margin-bottom: .9rem;
}

.legal-content ul {
  margin: 0 0 .9rem;
  padding-left: 1.3rem;
  color: var(--text-dim);
  font-size: .93rem;
  line-height: 1.75;
}

.legal-content li { margin-bottom: .35rem; }
.legal-content li::marker { color: var(--cyan); }

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

.legal-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 1rem;
  font-size: .87rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.legal-callout i { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }

.legal-callout.warn { border-color: rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.06); }
.legal-callout.warn i { color: #EF4444; }

.legal-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2.6rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
}
.legal-back-top:hover { color: var(--cyan); }

.legal-accept-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(13, 13, 13, 0.5);
  border: 1px solid var(--glass-border);
}

.legal-accept-bar p { margin: 0; color: var(--text-dim); font-size: .88rem; }
.legal-accept-bar p strong { color: var(--text); }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
}
