/* The privacy page, on top of styles.css (its tokens, type, buttons and footer). A long read, kept calm: the page's
   line hung from a prompter at the top of one panel, as on the thanks page, with what matters most under it; then the
   policy in the order the law asks for, beside a contents rail. The ledger, a black slate listing everything that
   leaves the Mac, is the one showpiece; the rest stays quiet. Written for phones first. */
.privacy-page::before { content: ""; position: fixed; z-index: -1; inset: 0; background: radial-gradient(ellipse 70% 46% at 50% 24%, rgb(43 39 34 / .9) 0%, rgb(43 39 34 / 0) 72%); pointer-events: none; }
.policy-header { display: flex; justify-content: center; padding: 28px 16px 0; }
.policy-header .footer-lockup img { height: 27px; }

/* The summary panel, framed like the pricing tray, with the prompter hung from its top edge. */
.policy-card { position: relative; isolation: isolate; width: min(720px, calc(100% - 32px)); margin: 44px auto 0; padding: 0 20px 12px; border-radius: var(--r-card); background: radial-gradient(ellipse 90% 70% at 50% 0%, #2b2722 0%, #191714 55%, #141210 100%); box-shadow: 0 0 0 6px #060606, 0 0 0 7px rgb(242 237 227 / .06), inset 0 1px 0 rgb(255 246 226 / .06), 0 50px 90px -30px rgb(5 4 3 / .8); }
.policy-card::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--grain); opacity: .07; pointer-events: none; }
.policy-prompter { position: relative; width: min(520px, 100%); margin: 0 auto; border-radius: 0 0 24px 24px; background: #0a0909; box-shadow: 0 20px 30px rgb(5 4 3 / .3); }
.policy-prompter::before, .policy-prompter::after { content: ""; position: absolute; top: 0; width: 18px; height: 18px; background: radial-gradient(circle at bottom left, transparent 18px, #0a0909 18.5px); }
.policy-prompter::before { left: -18px; }
.policy-prompter::after { right: -18px; transform: scaleX(-1); }
.policy-prompter-top { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; padding: 13px 20px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: #aba39b; white-space: nowrap; }
.policy-prompter-state { justify-self: end; display: flex; align-items: center; gap: 5px; color: var(--muted); }
.policy-prompter-state::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.policy-title { padding: 2px 20px 22px; font-size: clamp(26px, 7.6vw, 38px); font-weight: 550; line-height: 1.4; letter-spacing: -.04em; text-align: center; text-wrap: balance; }
.policy-word { display: inline-block; margin-inline: -4px; padding: 0 4px 2px; border-radius: 5px; background: #77332c; }

.policy-summary { padding-top: 28px; }
.policy-lede { max-width: 52ch; margin-inline: auto; color: var(--ink-soft); font-size: 17px; line-height: 1.7; text-align: center; text-wrap: pretty; }
.policy-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 18px; color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.policy-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 28px; border-top: 1px dashed rgb(242 237 227 / .16); }
.policy-facts > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 18px 0; border-bottom: 1px dashed rgb(242 237 227 / .16); }
.policy-facts .fact-icon { grid-row: span 2; }
.policy-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.policy-facts dd { font-size: 16px; line-height: 1.5; letter-spacing: -.02em; text-wrap: pretty; }
.policy-facts > div:last-child { border-bottom: 0; }

/* The policy: a contents rail and the reading column. */
.policy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; width: min(1040px, calc(100% - 32px)); margin: 56px auto 80px; }
.policy-rail .eyebrow { margin-bottom: 8px; }
.policy-rail ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin: 0; padding: 0; list-style: none; }
.policy-rail a { display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding-block: 10px; border-top: 1px dashed rgb(242 237 227 / .16); color: var(--ink-soft); font-size: 14.5px; font-weight: 550; line-height: 1.3; letter-spacing: -.01em; transition: color .2s; }
.policy-rail a:hover { color: var(--ink); }
.policy-rail .rail-index { flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--dim); }
.policy-rail a:hover .rail-index { color: var(--accent); }

.policy-body { min-width: 0; max-width: 700px; }
.policy-section { scroll-margin-top: 28px; }
.policy-section + .policy-section { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.policy-section:focus { outline: none; }
.section-index { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--muted); }
.policy-section:target .section-index { color: var(--accent); }
.policy-body h2 { font-size: clamp(30px, 8vw, 40px); line-height: 1.12; letter-spacing: -.05em; text-wrap: balance; }
.policy-body h3 { font-size: 21px; font-weight: 550; line-height: 1.25; letter-spacing: -.035em; }
.policy-body p { margin-top: 16px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.policy-body h2 + p { margin-top: 20px; }
.policy-body strong { color: var(--ink); font-weight: 600; }
.policy-body a:not(.button) { color: var(--ink); text-decoration: underline; text-decoration-color: rgb(242 237 227 / .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.policy-body a:not(.button):hover { text-decoration-color: var(--ink); }
.policy-body a:focus-visible { outline-offset: 3px; border-radius: 2px; }
.policy-body .muted { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
/* A dash for each line of a list, as on the home page's feature notes. */
.policy-body ul { margin: 0; padding: 0; list-style: none; }
.policy-body li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.policy-body li + li { margin-top: 8px; }
.policy-body li::before { content: ""; position: absolute; left: 0; top: .85em; width: 12px; height: 1px; background: #d59277; }
/* A gap in the text that still needs a fact from us. Never left on the live page. */

/* The ledger: a black slate, one row for each thing. Its columns come from --cols; on a phone each row stacks. */
.ledger { margin-top: 28px; padding: 4px 18px 6px; border-radius: var(--r-inset); background: #060606; box-shadow: inset 0 0 0 1px rgb(242 237 227 / .08), 0 1px 0 rgb(255 246 226 / .06); }
.ledger-title { padding: 16px 0 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.ledger-head { display: none; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 0; border-top: 1px dashed rgb(242 237 227 / .16); }
.ledger dt { color: var(--ink); font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
.ledger dd { position: relative; color: var(--muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.ledger .k { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ledger-note { margin-top: 0 !important; padding: 14px 0 12px; border-top: 1px dashed rgb(242 237 227 / .16); color: var(--dim) !important; font-size: 13px !important; line-height: 1.6 !important; }
.ledger-usage { --cols: minmax(0, 1.05fr) minmax(0, 1.45fr) minmax(0, .95fr) minmax(0, 1.25fr); }
.ledger-keep { --cols: minmax(0, 1fr) minmax(0, 2fr); }

/* One panel for each thing that's collected. */
.policy-item { margin-top: 24px; padding: 24px 20px 26px; border-radius: var(--r-card); background: var(--panel); box-shadow: inset 0 0 0 1px rgb(242 237 227 / .07), inset 0 1px 0 rgb(255 246 226 / .06); }
.policy-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.policy-item-head + p { margin-top: 12px; }
.policy-body .basis { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; margin-top: 0; padding: 0 12px 0 10px; border-radius: 999px; background: rgb(242 237 227 / .06); box-shadow: inset 0 0 0 1px rgb(242 237 227 / .1); color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; }
.basis::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.basis[data-basis="consent"]::before { background: var(--amber); }
.spec { display: grid; grid-template-columns: minmax(0, 1fr); margin: 20px 0 0; }
.spec dt { padding-top: 16px; border-top: 1px dashed rgb(242 237 227 / .16); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; padding: 8px 0 16px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.spec dd > p { margin-top: 0; font-size: 15px; }
.spec dd > p + p, .spec dd > p + ul, .spec dd > ul + p { margin-top: 10px; }
.spec dd ul ul { margin-top: 8px; }
.policy-item > p:last-child { margin-bottom: 0; }

.policy-body .policy-rights { margin-top: 20px; }
/* Counts as small tags, so a long list reads at a glance. */
.policy-body .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.policy-body .chips li { margin: 0; padding: 6px 12px; border-radius: 999px; background: rgb(242 237 227 / .06); box-shadow: inset 0 0 0 1px rgb(242 237 227 / .1); color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.policy-body .chips li::before { content: none; }
.policy-body li > .muted { margin-top: 12px; }
.callout { margin-top: 28px; padding: 22px 20px 24px; border-radius: var(--r-inset); background: #060606; box-shadow: inset 0 0 0 1px rgb(242 237 227 / .08), 0 1px 0 rgb(255 246 226 / .06); }
.callout-label { margin-top: 0 !important; font-family: var(--mono); font-size: 10.5px !important; letter-spacing: .12em; color: var(--muted) !important; }
.callout p:not(.callout-label) { margin-top: 10px; }
.callout .button { margin-top: 20px; min-height: 48px; }
.callout .button-arrow { width: 34px; height: 34px; font-size: 18px; background: rgb(255 255 255 / .08); }
.callout .button-outline { padding: 4px 4px 4px 20px; gap: 14px; }
.code { padding: 2px 8px; border-radius: 6px; background: rgb(242 237 227 / .08); color: var(--ink); font-family: var(--mono); font-size: .9em; letter-spacing: .04em; white-space: nowrap; }

.policy-footer { padding-bottom: 8px; }

@media (min-width: 768px) {
  .policy-header { padding-top: 36px; }
  .policy-header .footer-lockup img { height: 31px; }
  .policy-card { margin-top: 72px; padding: 0 40px 16px; box-shadow: 0 0 0 8px #060606, 0 0 0 9px rgb(242 237 227 / .06), inset 0 1px 0 rgb(255 246 226 / .06), 0 50px 90px -30px rgb(5 4 3 / .8); }
  .policy-title { padding: 4px 28px 26px; }
  .policy-summary { padding-top: 36px; }
  .policy-lede { font-size: 18px; }
  .policy-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .policy-facts > div:nth-last-child(2) { border-bottom: 0; }
  .policy { margin-top: 88px; }
  .policy-item { padding: 30px 32px 32px; }
  .spec { grid-template-columns: 116px minmax(0, 1fr); column-gap: 24px; }
  .spec dt { padding-block: 16px; }
  .spec dd { padding-block: 14px 16px; border-top: 1px dashed rgb(242 237 227 / .16); }
  .ledger { padding-inline: 26px; }
  /* Wide enough for columns: the labels move to a header row, and stay in the text for screen readers. */
  .ledger-head, .ledger-row { grid-template-columns: var(--cols); gap: 6px 24px; }
  .ledger-head { display: grid; padding: 0 0 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
  .ledger .k { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (min-width: 1024px) {
  .policy { grid-template-columns: 200px minmax(0, 1fr); gap: 72px; }
  .policy-rail { position: sticky; top: 32px; align-self: start; }
  .policy-rail ol { grid-template-columns: minmax(0, 1fr); }
  .policy-rail li:last-child a { border-bottom: 1px dashed rgb(242 237 227 / .16); }
  .policy-body h2 { font-size: 40px; }
}

/* Motion: the panel rises in and the prompter drops from its edge. styles.css turns both off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .policy-card { animation: enter .7s var(--ease) both; }
  .policy-prompter { animation: notch-enter .9s var(--ease) both; }
}
