[hidden] { display: none !important; }

.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.legal-toc a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.legal-toc a:hover { color: var(--text); border-color: var(--ring); }

.legal section { margin-bottom: 3rem; scroll-margin-top: 5rem; }

.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--glow);
  margin: 1.75rem 0 0.5rem;
}

.legal p { color: var(--text-muted); margin-bottom: 0.9rem; overflow-wrap: anywhere; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a:not(.btn):not(.legal-toc a) { color: var(--ring); text-decoration: underline; }
.legal code { font-size: 0.9em; padding: 0.1em 0.4em; border-radius: 4px; background: rgba(139, 152, 232, 0.12); color: var(--text); }

.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: 12px; }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.legal th { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ring); background: rgba(139, 152, 232, 0.06); }
.legal tr:last-child td { border-bottom: none; }

.legal-back { text-align: center; margin-top: 2rem; }

@media (max-width: 720px) {
  .legal { padding-top: 2rem; }
  .legal th, .legal td { padding: 0.7rem 0.8rem; }
}
