/* =========================================================
   All Things Taycie LLC — shared legal stylesheet
   Used by privacy.html and terms-of-service.html ONLY
   Deep violet / blue-violet accent on near-black
   ========================================================= */

.legal-page {
  background-color: #0b0e14;
  color: #e8eaed;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- header (must be non-section element) ---------- */
.legal-header {
  background: linear-gradient(150deg, #24164a 0%, #1a1233 45%, #0b0e14 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 72px 0 56px;
  text-align: center;
}

.legal-header .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 16px;
}

.legal-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto 14px;
  padding: 0 24px;
}

.legal-header .sub {
  color: #9aa3b5;
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- layout ---------- */
.legal-main {
  padding: 0;
}

.legal-content {
  padding: 56px 0 24px;
}

.legal-content .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* scope isolation: never let homepage section styles bleed in */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- table of contents ---------- */
.legal-toc {
  background: #141927;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 30px;
  margin-bottom: 48px;
}

.legal-toc h2 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.legal-toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  counter-reset: toc;
}

.legal-toc ol li {
  counter-increment: toc;
}

.legal-toc ol li a {
  color: #9aa3b5;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  gap: 10px;
  transition: color 0.2s ease;
}

.legal-toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  color: #8b5cf6;
  font-weight: 700;
  font-size: 0.82rem;
}

.legal-toc ol li a:hover {
  color: #a78bfa;
}

/* ---------- section content ---------- */
.legal-content section {
  padding: 40px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-content section:first-of-type {
  padding-top: 0;
}

.legal-content section h2 {
  font-size: 1.55rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  line-height: 1.3;
  font-weight: 700;
  padding-top: 28px;
}

.legal-content section p {
  color: #9aa3b5;
  margin-bottom: 16px;
}

.legal-content section ul,
.legal-content section ol {
  margin: 0 0 18px 24px;
  color: #9aa3b5;
  display: grid;
  gap: 8px;
}

.legal-content section li {
  padding-left: 4px;
}

.legal-content section a {
  color: #a78bfa;
  text-decoration: none;
}

.legal-content section a:hover {
  text-decoration: underline;
}

.legal-content strong {
  color: #e8eaed;
  font-weight: 600;
}

/* ---------- back-to-top links ---------- */
.back-top {
  display: inline-block;
  margin-top: 20px;
  color: #8b5cf6;
  font-size: 0.9rem;
  text-decoration: none;
}

.back-top:hover {
  color: #a78bfa;
}

/* ---------- footer ---------- */
.legal-footer {
  background: #0b0e14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 48px;
  text-align: center;
}

.legal-footer .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-footer p {
  color: #6f788a;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.legal-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 8px;
}

.legal-footer .footer-links a {
  color: #a78bfa;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-footer .footer-links a:hover {
  text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}
