/* ═══════════════════════════════════════════════════════════════════════
   Spirit Cleanse — shared stylesheet for the static pages
   (support page, 404, and the privacy/terms legal pages).
   Token values mirror src/styles/global.css — keep the two in sync.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #10282d;
  --bg-deep: #0b1d21;
  --surface: #163238;
  --surface-2: #1c3d43;
  --line: #31545a;
  --ink: #eef3ef;
  --ink-soft: rgba(238, 243, 239, 0.78);
  --ink-muted: rgba(238, 243, 239, 0.62);
  --seafoam: #a7d6c7;
  --sand: #d8c7a5;
  --border: rgba(49, 84, 90, 0.65);
  --border-strong: rgba(238, 243, 239, 0.28);
  --focus-ring: #d8c7a5;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: rgba(167, 214, 199, 0.28);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -52px;
  z-index: 90;
  background: var(--sand);
  color: #241b08;
  font-weight: 500;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: top 150ms var(--ease-out);
}
.skip-link:focus {
  top: 16px;
}

.lg-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header ── */
.lg-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(16, 40, 45, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.lg-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.lg-brand-name {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
}

.lg-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}

.lg-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.lg-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--border-strong);
}

/* ── Main / documents ── */
.lg-main {
  padding: 72px 0 96px;
}

.lg-doc {
  max-width: 760px;
  margin: 0 auto;
}

.lg-main h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.012em;
}

.lg-lede {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 62ch;
}

.lg-block {
  margin-top: 52px;
}

.lg-block h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.lg-block p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 66ch;
}

.lg-block p + p {
  margin-top: 14px;
}

.lg-block a,
.lg-lede a {
  color: var(--seafoam);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(167, 214, 199, 0.45);
  transition: text-decoration-color 160ms var(--ease-out);
}
.lg-block a:hover,
.lg-lede a:hover {
  text-decoration-color: var(--seafoam);
}

/* ── Clearly-marked placeholder (legal content slots) ── */
.lg-placeholder {
  margin-top: 36px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  background: rgba(11, 30, 34, 0.5);
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 66ch;
}

.lg-placeholder strong {
  color: var(--sand);
  font-weight: 500;
}

/* ── Warning callout (support page) ── */
.lg-warning {
  margin-top: 36px;
  border: 1px solid rgba(216, 199, 165, 0.4);
  background: rgba(216, 199, 165, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 66ch;
}

.lg-warning strong {
  color: var(--sand);
  font-weight: 500;
}

/* ── 404 centered layout ── */
.lg-center {
  max-width: 560px;
  margin: 56px auto 0;
  text-align: center;
}

.lg-center .lg-mark {
  margin: 0 auto 30px;
  width: 48px;
  height: 48px;
}

.lg-center p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  margin-top: 16px;
}

.lg-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ── Buttons (static-page variant) ── */
.lg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--seafoam);
  color: #10282d;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.lg-btn:hover {
  background: #b9e0d3;
}
.lg-btn:active {
  transform: scale(0.98);
}

.lg-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.lg-btn--ghost:hover {
  border-color: var(--seafoam);
  background: rgba(167, 214, 199, 0.08);
}

/* ── Footer ── */
.lg-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 46px;
}

.lg-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 13.5px;
}

.lg-footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.lg-footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}
.lg-footer-nav a:hover {
  color: var(--seafoam);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .lg-wrap {
    padding: 0 20px;
  }
  .lg-main {
    padding: 56px 0 72px;
  }
  .lg-header-inner {
    height: 64px;
  }
  .lg-nav {
    gap: 16px;
    row-gap: 4px;
  }
  .lg-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Approved legal document content (privacy & terms pages) ── */
.lg-doc .intro {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 64ch;
  margin-top: 20px;
}

.lg-doc .meta {
  color: var(--ink-muted);
  font-size: 14px;
  margin-top: 10px;
}

.lg-doc nav {
  margin: 36px 0 44px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(22, 50, 56, 0.6);
}

.lg-doc nav strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
}

.lg-doc nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 36px;
}

.lg-doc nav li {
  margin: 6px 0;
  break-inside: avoid;
}

.lg-doc nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.lg-doc nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--border-strong);
}

.lg-doc section {
  margin-top: 46px;
  scroll-margin-top: 96px;
}

.lg-doc section h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.18;
  letter-spacing: -0.008em;
  margin-bottom: 14px;
}

.lg-doc section p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
  max-width: 68ch;
}

.lg-doc section p + p {
  margin-top: 14px;
}

.lg-doc section a {
  color: var(--seafoam);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(167, 214, 199, 0.45);
  transition: text-decoration-color 160ms var(--ease-out);
}

.lg-doc section a:hover {
  text-decoration-color: var(--seafoam);
}

.lg-doc section em {
  font-style: italic;
}

.lg-doc .note {
  border: 1px solid rgba(216, 199, 165, 0.35);
  background: rgba(216, 199, 165, 0.07);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 68ch;
}

@media (max-width: 640px) {
  .lg-doc nav ul {
    columns: 1;
  }
}
