/* ── Shared styling for legal pages (privacy, terms) ──────────── */
/* Matches the gomillie.ai landing page design language. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --ink:          #1a1613;
  --aubergine:    #2a2038;
  --lavender:     #d8cfe0;
  --lavender-mid: #a89cc0;
  --rule:         rgba(42, 32, 56, 0.12);
}

body {
  background: #ede9f2;
  color: var(--aubergine);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  min-height: 100svh;
}

/* Subtle radial glow, fixed (mirrors landing) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(42,32,56,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ── Masthead ─────────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-badge-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--lavender);
  color: var(--aubergine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1;
}
.logo-wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--aubergine);
}

.back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aubergine);
  opacity: 0.55;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 120ms ease;
}
.back-link:hover { opacity: 0.9; }

/* ── Document head ────────────────────────────────────────────── */
.doc-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--aubergine);
  margin-bottom: 14px;
}
.doc-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 32, 56, 0.5);
  margin-bottom: 48px;
}

/* ── Prose ────────────────────────────────────────────────────── */
.prose h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--aubergine);
  margin: 44px 0 14px;
}
.prose h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--aubergine);
  margin: 28px 0 10px;
}
.prose p { margin-bottom: 16px; opacity: 0.88; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; opacity: 0.88; }
.prose a {
  color: var(--aubergine);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--lavender-mid);
}
.prose a:hover { text-decoration-color: var(--aubergine); }
.prose strong { font-weight: 600; }

.callout {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.callout p:last-child { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 32, 56, 0.3);
}

@media (max-width: 480px) {
  .wrap { padding: 36px 20px 72px; }
  .masthead { padding-bottom: 28px; margin-bottom: 36px; }
}
