@font-face {
  font-family: 'Atlas';
  src: local('Atlas'),
       url('assets/fonts/Atlas.woff2') format('woff2'),
       url('assets/fonts/Atlas.otf') format('opentype'),
       url('assets/fonts/Atlas.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #4c0012;
  --surface: #5E0A1E;
  --surface-raised: #6B1226;
  --accent: #8EB5F9;
  --pink: #D79AA0;
  --rose: #C2858B;
  --text-primary: #F6E7EA;
  --text-secondary: #D8B9C0;
  --text-faint: #B98A93;
  --radius-md: 16px;
  --radius-card: 22px;
  --radius-pill: 100px;
  --serif: "Georgia", "Times New Roman", ui-serif, serif;
  --rounded: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background-color: #4c0012; }
body {
  font-family: var(--rounded);
  color: var(--text-primary);
  background-color: #4c0012;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.55;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* Drifting blobs — matches index.html */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  animation: drift 10s ease-in-out infinite alternate;
}
.blob.a { width: 380px; height: 380px; background: rgba(215,154,160,.16); top: 4%;  left: 8%; }
.blob.b { width: 300px; height: 300px; background: rgba(142,181,249,.13); top: 30%; right: 4%; animation-delay: -3s; }
.blob.c { width: 460px; height: 460px; background: rgba(180,46,51,.14);  bottom: 2%; left: 28%; animation-delay: -5s; }
@keyframes drift { from { transform: translateY(-26px); } to { transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
  flex: 1;
  width: 100%;
}

/* Top bar */
header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 10px;
}
.topbar .brand-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  transition: opacity .15s ease;
}
.topbar .brand-lockup:hover { opacity: .88; }
.topbar .brand-lockup img {
  max-height: 72px;
  max-width: min(420px, 88vw);
  width: auto;
  height: auto;
  display: block;
}
.back-pill {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text-secondary);
  border: 1px solid rgba(246,231,234,.18);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  flex-shrink: 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.back-pill:hover {
  color: var(--text-primary);
  border-color: rgba(246,231,234,.28);
  background: rgba(246,231,234,.04);
}
.back-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Page content */
.page {
  padding: 28px 0 48px;
}
.page .eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.page h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 5.5vw, 48px);
  line-height: 1.05;
  letter-spacing: .4px;
  background: linear-gradient(120deg, var(--text-primary), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.page .updated {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.page .lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: 28px;
}

.content-card {
  background: var(--surface);
  border: 1px solid rgba(246,231,234,.1);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.content-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity .15s ease;
}
.content-card a:hover { text-decoration: underline; }
.content-card .placeholder {
  color: var(--text-faint);
  font-style: italic;
  padding: 14px 16px;
  background: rgba(0,0,0,.12);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  margin-bottom: 22px;
}

/* Long-form policy content */
.content-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 36px 0 14px;
  scroll-margin-top: 24px;
}
.content-card h2:first-child { margin-top: 0; }
.content-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--pink);
  margin: 22px 0 8px;
}
.content-card ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.content-card ul li { margin-bottom: 8px; }
.content-card ul li:last-child { margin-bottom: 0; }
.content-card strong { color: var(--text-primary); font-weight: 700; }

/* Privacy summary callout */
.callout {
  padding: 18px 20px;
  background: var(--surface-raised);
  border: 1px solid rgba(142,181,249,.22);
  border-radius: var(--radius-md);
  margin: 0 0 26px;
}
.callout .label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.callout ul { margin-bottom: 0; }

/* Table of contents */
.toc {
  margin: 0 0 30px;
  padding: 18px 20px;
  background: rgba(0,0,0,.12);
  border-radius: var(--radius-md);
}
.toc .label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}
.toc ol li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) {
  .toc ol { columns: 1; }
}

.contact-card {
  margin-top: 8px;
  padding: 22px 20px;
  background: var(--surface-raised);
  border: 1px solid rgba(142,181,249,.22);
  border-radius: var(--radius-md);
  text-align: center;
}
.contact-card .label {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.contact-card .email-link {
  display: inline-block;
  font-size: clamp(17px, 4vw, 20px);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.contact-card .email-link:hover { text-decoration: underline; }

/* Footer — matches index.html */
footer {
  border-top: 1px solid rgba(246,231,234,.06);
  margin-top: auto;
  padding: 34px 0 max(56px, env(safe-area-inset-bottom));
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-brand .brand-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.foot-brand .brand-lockup img {
  max-height: 60px;
  max-width: min(400px, 85vw);
  width: auto;
  height: auto;
  display: block;
}
.foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}
.foot-links a {
  color: var(--text-secondary);
  text-decoration: none;
}
.foot-links a:hover { color: var(--text-primary); }
.foot-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}
.foot-links a.soon { opacity: .55; cursor: default; }
.foot-links a.soon::after {
  content: " · soon";
  font-size: 11px;
  color: var(--text-faint);
}
.legal {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-faint);
  max-width: 70ch;
}
.legal p { margin-top: 8px; }

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  header.topbar {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: 4px;
  }
  .topbar .brand-lockup img { max-height: 64px; }
  .page { padding: 20px 0 36px; }
  .content-card { padding: 24px 20px; }
  .foot-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .foot-links { justify-content: center; }
  .legal { text-align: center; margin-left: auto; margin-right: auto; }
}
