/*
 * Legal pages (Privacy Policy, Terms of Service). Always light, matching the
 * auth and waitlist pages: page #fbfaf8, ink #0c0a1d, Revluma violet accents,
 * Schibsted Grotesk headings and Instrument Sans body text.
 */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-md: #f4f2ee;
  --border: #e8e6e1;
  --text: #0c0a1d;
  --text-soft: #3f3d4e;
  --muted: #5e5c6b;
  --accent: #4438e8;
  --accent-deep: #1f06ac;
  --accent-wash: #f0edff;
  --accent-line: #d8d7fa;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--text); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.lg-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.lg-header__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lg-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
}
.lg-brand img { width: 28px; height: 28px; }
.lg-brand:hover { color: var(--text); }
.lg-nav { display: flex; align-items: center; gap: 6px; }
.lg-nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--text-soft); font-size: 14px; font-weight: 600; text-decoration: none;
}
.lg-nav a:hover { background: var(--surface-md); color: var(--text); }
.lg-nav a[aria-current="page"] { background: var(--accent-wash); color: var(--accent-deep); }
@media (max-width: 560px) { .lg-nav a.lg-nav__optional { display: none; } }

/* Layout */
.lg-main {
  max-width: 1120px; margin: 0 auto; padding: 48px 24px 96px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px;
}
@media (min-width: 960px) { .lg-main { grid-template-columns: minmax(0, 720px) 240px; justify-content: space-between; } }

/* Title block */
.lg-eyebrow {
  margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.lg-title {
  margin: 0; font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
}
.lg-meta { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }

/* Summary card */
.lg-summary {
  margin: 32px 0 8px; padding: 24px 26px;
  border: 1px solid var(--accent-line); border-radius: 20px; background: var(--accent-wash);
}
.lg-summary h2 {
  margin: 0 0 10px; font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em; border: 0; padding: 0;
}
.lg-summary ul { margin: 0; padding-left: 20px; }
.lg-summary li { margin: 6px 0; color: var(--text-soft); }
.lg-summary p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* Body copy */
.lg-prose section { scroll-margin-top: 88px; }
.lg-prose h2 {
  margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--border);
  font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif;
  font-size: 1.55rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
  scroll-margin-top: 88px;
}
.lg-prose h3 {
  margin: 30px 0 8px; font-family: 'Schibsted Grotesk', 'Instrument Sans', sans-serif;
  font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; scroll-margin-top: 88px;
}
.lg-prose p, .lg-prose li { color: var(--text-soft); }
.lg-prose p { margin: 0 0 14px; }
.lg-prose ul, .lg-prose ol { margin: 0 0 16px; padding-left: 22px; }
.lg-prose li { margin: 6px 0; }
.lg-prose strong { color: var(--text); }

.lg-table-wrap { margin: 8px 0 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.lg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lg-table th, .lg-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.lg-table th { background: var(--surface-md); color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table td { color: var(--text-soft); }
.lg-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

.lg-note {
  margin: 18px 0; padding: 16px 18px; border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0; background: var(--surface); color: var(--text-soft);
}

.lg-contact {
  margin-top: 20px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
}
.lg-contact p { margin: 4px 0; }

/* Table of contents */
.lg-toc { display: none; }
@media (min-width: 960px) {
  .lg-toc { display: block; }
  .lg-toc__inner { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
}
.lg-toc h2 {
  margin: 0 0 12px 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.lg-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border); }
.lg-toc a {
  display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
  color: var(--muted); font-size: 13.5px; line-height: 1.4; text-decoration: none;
}
.lg-toc a:hover { color: var(--text); }
.lg-toc a.is-active { border-left-color: var(--accent); color: var(--accent-deep); font-weight: 600; }

/* Footer */
.lg-footer { border-top: 1px solid var(--border); background: var(--surface); }
.lg-footer__inner {
  max-width: 1120px; margin: 0 auto; padding: 28px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  color: var(--muted); font-size: 14px;
}
.lg-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lg-footer a { color: var(--text-soft); text-decoration: none; }
.lg-footer a:hover { color: var(--accent-deep); text-decoration: underline; }

@media print {
  .lg-header, .lg-toc, .lg-footer, .skip-link { display: none !important; }
  .lg-main { display: block; padding: 0; }
  body { background: #fff; }
}

@media (max-width: 560px) {
  .lg-main { padding: 36px 18px 72px; }
  .lg-summary { padding: 20px 18px; border-radius: 18px; }
  .lg-summary ul { padding-left: 18px; }
  .lg-prose h2 { margin-top: 44px; font-size: 1.38rem; }
}
