/* Privacy, support and 404: home.css supplies the tokens, bar, buttons and footer.
   Here: a sticky title column on the left, the reading column on the right. */

.bar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.doc {
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--margin) 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
}
.doc-head { grid-column: 1 / span 5; align-self: start; position: sticky; top: 32px; }
.doc-head h1 { font-size: clamp(36px, 3.2vw, 46px); line-height: 1.02; }
.doc-meta { margin-top: 20px; color: var(--muted); font-size: 15px; }
.doc-lede { margin-top: 20px; font-size: 20px; max-width: 22rem; }
.doc-index { margin-top: 40px; display: grid; gap: 2px; font-size: 15px; }
.doc-index a {
  display: block; padding: 6px 0; color: var(--muted); text-decoration: none;
  transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out);
}
.doc-index a:hover { color: var(--ink); transform: translateX(4px); }

.doc-body { grid-column: 7 / span 6; max-width: 44rem; }
.doc-body h2 {
  font: 700 28px/1.2 var(--font-display); letter-spacing: -0.02em;
  margin: 72px 0 14px; scroll-margin-top: 32px;
}
.doc-body p + p { margin-top: 12px; }
.doc-body ul { display: grid; gap: 10px; margin-top: 4px; }
.doc-body ul + p { margin-top: 16px; }
.doc-body li { position: relative; padding-left: 22px; }
.doc-body li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.doc-body a { color: var(--accent); }
.path {
  display: inline; padding: 1px 8px; border-radius: 8px;
  background: var(--surface); font-weight: 500; white-space: normal;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Privacy: the three facts first, as statements. */
.facts { display: grid; gap: 32px; }
.facts p { font-size: 20px; }
.facts b { display: block; font: 700 28px/1.2 var(--font-display); letter-spacing: -0.02em; margin-bottom: 6px; }

/* Support: answers open in place on filled rows. */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 20px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 24px; font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em;
  border-radius: 20px; transition: background-color var(--t-hover) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: color-mix(in srgb, var(--surface) 88%, var(--ink)); }
.faq summary::after {
  content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--accent);
  transition: transform var(--t-ui) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > div { animation: answer-in 280ms var(--ease-out); }
}
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.contact { margin-top: 72px; background: var(--field); color: var(--on-field); border-radius: 28px; padding: clamp(28px, 4vw, 48px); }
.contact h2 { margin: 0 0 12px; }
.contact p { max-width: 36rem; }
.contact .path { background: rgba(255,255,255,.12); }
.contact a:not(.button) { color: var(--mint); }
.contact .button { margin-top: 24px; background: var(--mint); color: #0b2a1e; }

/* 404 */
.lost { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 16vw, 200px) var(--margin) 0; }
.lost h1 { font-size: clamp(44px, 6vw, 92px); max-width: 10ch; }
.lost p { margin-top: 24px; font-size: 20px; }
.lost .button { margin-top: 32px; }

.doc + .foot, .lost + .foot { margin-top: clamp(96px, 12vw, 160px); }

@media (max-width: 1024px) {
  .doc-head { grid-column: 1 / span 5; }
  .doc-body { grid-column: 7 / span 6; }
}
@media (max-width: 760px) {
  .doc { display: block; padding-top: 40px; }
  .doc-head { position: static; margin-bottom: 48px; }
  .doc-head h1 { font-size: 40px; }
  .doc-index { display: none; }
  .doc-body h2 { font-size: 24px; margin-top: 56px; }
  .facts b { font-size: 22px; }
  .facts p { font-size: 17px; }
  .faq summary { font-size: 17px; padding: 14px 18px; }
  .faq details > div { padding: 0 18px 18px; }
  .contact { margin-top: 56px; }
  .lost h1 { font-size: 44px; }
}
