/* ============================================================
   LoneStar AI · Legal pages (Privacy, Terms, Cookies, Disclaimer)
   Reuses .edu-nav, .edu-footer, etc. from educators.css
   ============================================================ */

.legal-body {
  background:
    radial-gradient(circle at 15% 5%, rgba(78, 160, 255, 0.06), transparent 45%),
    #060a14;
  min-height: 100vh;
  color: #f4f7fb;
  font-family: "Inter Tight", "Manrope", system-ui, sans-serif;
  line-height: 1.65;
}

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.legal-kicker {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(190, 202, 219, 0.22);
  background: rgba(255, 255, 255, 0.03);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #99abc1;
  margin-bottom: 1.4rem;
}

.legal-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: #f4f7fb;
}

.legal-updated {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: #6f7f95;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin: 2.4rem 0 0.8rem;
  color: #f4f7fb;
}

.legal-content h3 {
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  margin: 1.6rem 0 0.5rem;
  color: #d9e1ec;
}

.legal-content p,
.legal-content li {
  color: #b8c4d3;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.4rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: #4ea0ff;
  text-decoration: underline;
  text-decoration-color: rgba(78, 160, 255, 0.35);
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #f4f7fb;
  text-decoration-color: #f4f7fb;
}

.legal-content strong {
  color: #f4f7fb;
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 2rem 0 2.5rem;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(190, 202, 219, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.legal-toc a {
  color: #99abc1;
  font-size: 0.92rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #4ea0ff;
}

.legal-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(190, 202, 219, 0.12);
}

.legal-nav-row a {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(190, 202, 219, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: #99abc1;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.legal-nav-row a:hover {
  color: #f4f7fb;
  border-color: rgba(190, 202, 219, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.legal-nav-row a.is-active {
  color: #f4f7fb;
  border-color: rgba(78, 160, 255, 0.5);
  background: rgba(78, 160, 255, 0.12);
}

@media (max-width: 720px) {
  .legal-main {
    padding: 2.5rem 1.4rem 4rem;
  }
}
