/* ============================================================
   PageForth — privacy & terms document pages.
   Shares the editorial type system with the landing page.
   ============================================================ */

:root {
  --paper:      #FBF8F0;
  --ink:        #1B1A14;
  --ink-mute:   #6E695A;
  --rule:       #CFC6AC;
  --accent:     #6B4FB8;
  --accent-ink: #4A3486;

  --display: "Fraunces", "Georgia", serif;
  --body:    "Spectral", "Georgia", serif;
  --wire:    "Courier Prime", "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Newsprint grain — same overlay as the landing page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
a:hover { color: var(--accent); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 36px; }

/* ---- Masthead ---------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 240, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  padding-block: 12px;
}
.nameplate {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.nameplate img { width: 30px; height: 30px; display: block; }
.nameplate .word {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---- Document ---------------------------------------------- */
.doc {
  max-width: 740px;
  margin: 0 auto;
  padding: 66px 36px 96px;
}
.doc h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  letter-spacing: -0.022em;
  line-height: 1.06;
}
.updated {
  font-family: var(--wire);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 14px;
}
.doc hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 36px 0;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 44px 0 14px;
}
.doc p { margin-top: 0.95rem; }
.doc strong { font-weight: 600; }
.doc ul { margin-top: 0.95rem; padding-left: 1.35rem; }
.doc li { margin-top: 0.4rem; }
.doc li::marker { color: var(--accent); }

/* ---- Colophon (matches the landing page footer) ------------ */
.colophon {
  background: var(--ink);
  color: #9B9686;
  padding: 44px 0;
  font-family: var(--wire);
  font-size: 0.74rem;
}
.colophon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.colophon .nameplate .word { color: var(--paper); }
.colophon .links { display: flex; gap: 22px; }
.colophon .links a {
  color: #9B9686;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.colophon .links a:hover { color: #BFA9F0; }
.colophon .set { letter-spacing: 0.06em; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 22px; }
  .doc { padding: 48px 22px 72px; }
}
