/* The privacy policy and the terms of use (D287). Long reading on the site's
   white, in its Geist and ink. Each page opens with the short version in a
   chalk panel and spends one night panel on what a reader most needs to
   see: on the policy, where footage goes and how long each copy lives; on
   the terms, what a membership costs and how it renews. The contents follow
   the reader beside the text and fold away on a phone. */

:root { --text: #2A2F35; } /* 13.6:1 on white: softer than ink for long reading */

/* --------------------------------------------------------------- head --- */

.doc-head { padding-top: 18px; }
.doc-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* The two documents, as the app's segmented control. */
.doc-switch {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--chalk); font-size: 15px; font-weight: 500;
}
.doc-switch a {
  padding: 9px 16px; border-radius: 999px; color: var(--slate); white-space: nowrap;
  transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.doc-switch a:hover { color: var(--ink); }
.doc-switch a[aria-current="page"] {
  background: var(--paper); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 2px rgba(10, 12, 15, 0.06), 0 6px 16px -6px rgba(10, 12, 15, 0.16);
}

.doc-title { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 64px); }
.doc-title h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.96; }
.doc-title .lede { margin-top: 28px; max-width: 36em; }
.doc-updated { margin-top: 20px; font-size: 15px; color: var(--ash); }

/* ------------------------------------------------------ short version --- */

.brief {
  padding: clamp(28px, 4.4vw, 56px);
  border-radius: var(--r-panel); background: var(--chalk);
}
.brief h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; }
.brief-list {
  margin-top: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px);
}
.brief-list li { padding: 22px 0 24px; border-top: 1px solid rgba(10, 12, 15, 0.1); }
.brief-list strong { display: block; font-size: 19px; line-height: 1.3; letter-spacing: -0.022em; }
.brief-list p { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--slate); }
@media (max-width: 760px) { .brief-list { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- body ---- */

.doc {
  display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start;
  gap: clamp(40px, 7vw, 104px);
  padding: clamp(64px, 9vw, 112px) 0 clamp(80px, 11vw, 144px);
}

.toc { position: sticky; top: 32px; font-size: 15px; }
.toc-title { margin-bottom: 10px; font-weight: 600; }
.toc summary { display: none; }
.toc ol { display: grid; gap: 1px; }
.toc a {
  display: flex; gap: 10px; padding: 7px 12px; margin-left: -12px; border-radius: 10px;
  color: var(--slate); line-height: 1.3;
  transition: color 160ms ease, background-color 160ms ease;
}
.toc a span { min-width: 1.3em; color: var(--ash); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--ink); background: rgba(10, 12, 15, 0.04); }
.toc a.is-current { color: var(--ink); background: var(--chalk); font-weight: 500; }

.prose section, .prose h3[id] { scroll-margin-top: 28px; }
.prose section + section { margin-top: clamp(56px, 7vw, 88px); }
.prose section > :is(h2, h3, p, ul) { max-width: 680px; }
.prose h2 {
  display: flex; gap: 14px; align-items: baseline;
  font-size: clamp(28px, 3.1vw, 38px); line-height: 1.08; font-weight: 600; letter-spacing: -0.036em;
}
/* Sections cite each other by number ("section 4"), so the number is shown. */
.prose h2 .num { color: var(--ash); font-weight: 500; font-variant-numeric: tabular-nums; }
.prose section > h3 { margin-top: 36px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.022em; }
.prose section > p { margin-top: 16px; color: var(--text); line-height: 1.62; }
.prose section > h2 + p { margin-top: 22px; }
.prose section > h3 + p { margin-top: 8px; }
.prose section > ul { margin-top: 16px; display: grid; gap: 12px; }
.prose section > ul > li { position: relative; padding-left: 22px; color: var(--text); line-height: 1.58; }
.prose section > ul > li::before {
  content: ""; position: absolute; left: 3px; top: 0.66em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ash);
}
.prose a:not(.btn) {
  color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(10, 12, 15, 0.35);
}
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose .btn { margin-top: 24px; }

/* ------------------------------------------------------------ tables ---- */

.facts { width: 100%; margin-top: 28px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.facts th, .facts td { padding: 16px 20px 16px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.facts th:last-child, .facts td:last-child { padding-right: 0; }
.facts thead th { padding-top: 0; border-top: 0; font-size: 14px; font-weight: 600; color: var(--ash); }
.facts tbody th { font-weight: 600; color: var(--ink); }
.facts td { color: var(--text); }
.facts tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }

/* On a phone each row is a block, its column names written beside the values. */
@media (max-width: 640px) {
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; }
  .facts thead { display: none; }
  .facts tbody tr { padding: 18px 0; border-top: 1px solid var(--rule); }
  .facts tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .facts tbody tr > * { padding: 0; border: 0 !important; }
  .facts tbody th { font-size: 17px; }
  .facts td { margin-top: 8px; }
  .facts td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 600; color: var(--ash); }
}

/* ------------------------------------------------------- night panel ---- */

.night-panel {
  margin-top: 32px; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-panel); background: var(--night); color: #FFFFFF;
}
.night-panel figcaption { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.night-panel .note { margin-top: 28px; font-size: 15px; line-height: 1.5; color: var(--mist); }

/* Where footage goes, in the order it travels. */
.path { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
/* Each step spans four shared rows, so the lines it ends on sit level. */
.path li { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
.path-step {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lime); color: var(--ink-on-lime);
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.path h3 { margin-top: 18px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.path p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--fog); }
/* How long this copy lives: the line each step ends on. */
.path .life {
  padding-top: 20px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.012em; color: #FFFFFF;
}
.path .life::before {
  content: ""; display: block; margin-bottom: 16px; height: 1px; background: var(--edge-night);
}
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; row-gap: 0; }
  .path li + li { margin-top: 32px; }
}

/* The two plans of one membership, as the site's price draws them. */
.tiers { margin-top: 28px; display: grid; gap: 12px; }
.tier {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--edge-night);
}
.tier-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.tier-name small { flex-basis: 100%; margin-top: -2px; font-size: 15px; font-weight: 400; color: var(--mist); letter-spacing: -0.01em; }
.tier-price { text-align: right; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tier-price small { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--mist); letter-spacing: -0.01em; }
.tier-save {
  padding: 3px 9px; border-radius: 999px;
  background: var(--lime); color: var(--ink-on-lime); font-size: 13px; font-weight: 700; letter-spacing: -0.005em;
}
.renewal { margin-top: 28px; display: grid; gap: 12px; }
.renewal li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.5; color: var(--fog); }
.renewal li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
}

/* ------------------------------------------------------------- phone ---- */

@media (max-width: 920px) {
  .doc { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .toc { position: static; border-radius: 20px; background: var(--chalk); }
  .toc-title { display: none; }
  .toc summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none;
  }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after {
    content: ""; width: 8px; height: 8px; margin-right: 4px;
    border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
    transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease);
  }
  .toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .toc ol { padding: 0 20px 14px; }
  .toc a { margin-left: 0; padding: 9px 0; border-radius: 0; }
  .toc a.is-current { background: none; }
}
@media (max-width: 560px) {
  .doc-head .brand-name { display: none; }
  .doc-switch a { padding: 9px 14px; }
}

@media print {
  .doc-head, .toc, .footer { display: none; }
  .doc { display: block; padding: 0; }
  .night-panel { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
  .path p, .renewal li, .night-panel .note, .tier-name small, .tier-price small { color: var(--text); }
  .path .life { color: var(--ink); }
}

/* The page ends on a rule, since no closing night sits above the footer. */
.footer { border-top: 1px solid var(--rule); }
.facts td[data-label="Where"] { white-space: nowrap; }
