/* ============================================================
   CreativeGraft — Legal Pages (dark theme)
   Layered on top of style.css. Loaded only by the legal pages,
   so the main site's light surfaces stay untouched.
   ============================================================ */

.legal-page {
  background: var(--dark);
  color: var(--text-invert-muted);
}

/* Header is position:fixed at var(--header-h), so clear it */
.legal-main {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.legal-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
}

.legal-title {
  color: var(--text-invert);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding-bottom: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line-dark);
}

/* ---------- Body copy ---------- */
.legal-body {
  font-size: 1rem;
  line-height: 1.75;
}

.legal-body h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--text-invert);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.7rem;
}

.legal-body h3 {
  font-size: 1.02rem;
  color: var(--text-invert);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p { margin-bottom: 1.05rem; }

.legal-body ul,
.legal-body ol {
  margin: 0 0 1.25rem 1.25rem;
  padding-left: 0.4rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}

.legal-body li::marker { color: var(--accent); }

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

/* style.css sets `a { color: inherit }`, so links need an explicit accent */
.legal-body a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

.legal-body a:hover,
.legal-body a:focus-visible { color: var(--secondary); }

.legal-back {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-weight: 600;
}

.legal-back a { text-decoration: none; }

/* ---------- Footer: 5 columns, matching index.html ---------- */
.legal-page .site-footer .footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1fr;
}

@media (max-width: 1080px) {
  .legal-page .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .legal-page .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer: copyright brand link ---------- */
.legal-page .site-footer .footer-copy-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.legal-page .site-footer .footer-copy-link:hover,
.legal-page .site-footer .footer-copy-link:focus-visible { color: var(--accent-light); }
