/* Privacy, terms, cookies, support and 404: long reading in the landing
   page's world (src/doc.js). The body's gradient shows only without WebGL. */

body { background: radial-gradient(1100px 700px at 85% -10%, #151a33, transparent 60%), radial-gradient(900px 600px at -10% 20%, #1b1030, transparent 55%), var(--bg); }

.read-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 1px; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; }

.doc-hero { max-width: var(--max); margin: 0 auto; padding: clamp(140px, 18vw, 220px) var(--gutter) clamp(48px, 7vw, 88px); }
.doc-hero .mono { margin-bottom: 26px; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.doc-hero .mono::before { content: ""; width: 26px; height: 1px; background: var(--iris); }
.doc-title > * { font: 400 clamp(64px, 12vw, 180px)/.9 var(--excon); letter-spacing: -.055em; color: var(--ink); }
.doc-hero .meta { margin-top: 28px; }
.doc-hero .lede { margin-top: 28px; max-width: 46ch; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; color: var(--ink); }

.doc { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 8vw, 100px); display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(40px, 7vw, 110px); }
.toc { position: sticky; top: 110px; align-self: start; }
.toc > p.mono { margin-bottom: 14px; }
/* On a phone the contents fold into one row (doc.js adds it). */
.toc__fold { display: none; }
.toc ol { display: grid; gap: 2px; }
.toc a { position: relative; display: block; padding: 7px 0 7px 18px; font-size: 14.5px; line-height: 1.4; color: var(--ink3); text-decoration: none; transition: color .3s; }
.toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: var(--line2); transition: width .4s var(--ease), background-color .3s; }
.toc a:hover { color: var(--ink2); }
.toc a.is-on { color: var(--ink); }
.toc a.is-on::before { width: 12px; background: var(--ink); }

.doc-body { min-width: 0; font-size: 17px; line-height: 1.72; color: var(--ink2); }
.doc-body > * + * { margin-top: 18px; }
.doc-body h2 { margin-top: 72px; scroll-margin-top: 110px; font: 400 clamp(28px, 3vw, 38px)/1.12 var(--excon); letter-spacing: -.03em; color: var(--ink); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin-top: 36px; font: 400 20px/1.3 var(--excon); letter-spacing: -.01em; color: var(--ink); }
.doc-body h2 + *, .doc-body h3 + * { margin-top: 12px; }
.doc-body li { position: relative; padding-left: 24px; }
.doc-body li + li { margin-top: 10px; }
.doc-body li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 9px; height: 1px; background: var(--ink3); }
.doc-body strong { font-weight: 500; color: var(--ink); }
.doc-body a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body a.pill { color: #050507; text-decoration: none; }
.doc-body code { font: 13px/1 var(--mono); padding: 3px 7px; border-radius: 6px; background: rgb(var(--ink-rgb) / .07); color: var(--ink); }

.summary, .contact { border-radius: 24px; background: linear-gradient(176deg, var(--card-top), var(--card-bot)); box-shadow: 0 24px 60px var(--shadow), inset 0 0 0 1px var(--line); }
.summary { padding: clamp(26px, 3.4vw, 40px); }
.summary .mono { margin-bottom: 18px; color: var(--ink); }
.summary li { color: var(--ink); }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(26px, 3.4vw, 40px); }
.contact p { font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--excon); letter-spacing: -.02em; color: var(--ink); }
.contact small { display: block; margin-top: 6px; font: 400 15px/1.5 var(--ranade); letter-spacing: 0; color: var(--ink3); }

.table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.table th { font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.table td:first-child { color: var(--ink); width: 34%; }
.table-wrap { overflow-x: auto; margin-top: 20px; }

@media (max-width: 900px) {
  /* minmax(0, …): the folded contents' one line must not widen the page. */
  .doc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* The contents, folded into one row that says where you are. */
  .toc { position: static; border-radius: 20px; background: rgb(var(--ink-rgb) / .04); box-shadow: inset 0 0 0 1px var(--line); }
  .toc > p.mono { display: none; }
  .toc__fold { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 22px; text-align: left; color: var(--ink3); }
  .toc__fold b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 15px/1.3 var(--ranade); letter-spacing: 0; text-transform: none; color: var(--ink); }
  .toc__fold i { position: relative; flex: none; width: 11px; height: 11px; transition: transform .6s var(--ease); }
  .toc__fold i::before, .toc__fold i::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 1px; background: var(--ink); }
  .toc__fold i::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
  .toc.is-open .toc__fold i { transform: rotate(180deg); }
  .toc.is-open .toc__fold i::after { transform: rotate(0); }
  .toc__list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
  .toc.is-open .toc__list { grid-template-rows: 1fr; }
  .toc__list > ol { min-height: 0; overflow: hidden; grid-template-columns: 1fr 1fr; column-gap: 12px; padding: 0 22px; }
  .toc.is-open .toc__list > ol { padding-bottom: 16px; }
}
@media (max-width: 520px) {
  /* A little smaller on a narrow phone, so the emblem has room beside it. */
  .doc-title > * { font-size: clamp(52px, 15.6vw, 64px); }
  .toc__list > ol { grid-template-columns: 1fr; }
  .contact { padding: 22px 20px; }
  .contact p { font-size: clamp(18px, 5.8vw, 22px); overflow-wrap: anywhere; }
  /* A table's rows become entries: the first cell a heading, each other cell under its column's name. */
  .table, .table tbody, .table tr, .table td { display: block; width: auto; }
  .table tr:first-child { display: none; }
  .table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .table td, .table td:first-child { width: auto; padding: 0; border: 0; }
  .table td:first-child { font: 400 19px/1.3 var(--excon); letter-spacing: -.01em; }
  .table td[data-col]::before { content: attr(data-col); display: block; margin: 10px 0 2px; font: 400 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
  .home__words > * { font-size: clamp(38px, 11.6vw, 46px); }
  /* Clear of the ring round the title. */
  .lost .lost__lede { margin-top: 64px; }
}

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; }
.lost__title > * { font: 400 clamp(72px, 15vw, 240px)/.9 var(--excon); letter-spacing: -.06em; color: var(--ink); }
.lost h1 span { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost__lede { margin: 28px auto 36px; max-width: 30ch; font-size: clamp(18px, 1.8vw, 22px); }
.lost .mono { margin-bottom: 24px; }

/* The end of every policy page: the wordmark forms in light above (the world
   draws it in [data-end-mark]), and one big way home. */
.home { max-width: var(--max); margin: 0 auto; padding: clamp(30px, 6vh, 70px) var(--gutter) clamp(60px, 10vh, 110px); display: grid; justify-items: center; text-align: center; }
.home__mark { width: min(680px, 86vw); height: clamp(170px, 24vw, 300px); }
.home__link { display: inline-flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); color: var(--ink); text-decoration: none; }
.home__words > * { font: 400 clamp(46px, 8.2vw, 136px)/.98 var(--excon); letter-spacing: -.05em; white-space: nowrap; }
.home__arrow { position: relative; flex: none; width: clamp(44px, 5.4vw, 84px); height: clamp(44px, 5.4vw, 84px); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line2); transition: background-color .5s var(--ease), box-shadow .5s var(--ease), color .4s; }
.home__arrow::before { content: ""; position: absolute; left: 30%; right: 30%; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: translate .6s var(--ease); }
.home__arrow::after { content: ""; position: absolute; right: 30%; top: 50%; width: 22%; height: 22%; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translate(0, -50%) rotate(45deg); transform-origin: 70% 30%; transition: translate .6s var(--ease); }
.home__link:hover .home__arrow { background: var(--ink); color: #050507; box-shadow: none; }
.home__link:hover .home__arrow::before, .home__link:hover .home__arrow::after { translate: 4px 0; }
.home__sub { margin-top: 24px; text-wrap: balance; }
.docfoot { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 26px; }

/* Guides: the same page, with a title of two lines (a guide's name is longer
   than a policy's one word), each short enough to leave the emblem its room. */
.doc-title--long > * { font-size: clamp(56px, 8.4vw, 140px); line-height: .94; }
.doc-title--long span { display: block; width: fit-content; }
@media (max-width: 520px) { .doc-title--long > * { font-size: clamp(38px, 11.2vw, 46px); } }
/* "Read the guide", after each guide's summary on the guides page. */
.doc-body a.next { display: inline-flex; align-items: center; gap: 14px; padding: 6px 0; text-decoration: none; color: var(--ink); }
.doc-body a.next::after { content: ""; width: 26px; height: 1px; background: var(--iris); transition: width .5s var(--ease); }
.doc-body a.next:hover::after { width: 46px; }
/* Steps, numbered in the mono face. */
.doc-body ol.steps { counter-reset: step; }
.doc-body ol.steps > li { padding-left: 40px; counter-increment: step; }
.doc-body ol.steps > li::before { content: counter(step, decimal-leading-zero); top: .45em; width: auto; height: auto; background: none; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink3); }
.doc-body .aside { font-size: 14.5px; line-height: 1.6; color: var(--ink3); }

/* The words sit over the world, and links leave room for the cursor to wrap them. */
@media (min-width: 901px) { .toc a { display: inline-block; } }
.doc-hero, .doc, .home, .docfoot, .lost { position: relative; z-index: 1; }
