/* Support and Privacy. Tokens, fonts, the bar and the footer come from styles.css. */

.doc {
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(64px + 9vh) var(--gutter) 12vh;
}

.doc-head {
  display: grid;
  gap: 18px;
  padding-bottom: 7vh;
}

.doc-head h1 { font-size: clamp(52px, 9vw, 112px); line-height: 0.98; }
.doc-head .lead { max-width: 30ch; }

.updated {
  color: var(--meta);
  font-size: 14px;
}

/* A heading on the left, its text on the right, on one rule. Stacks on narrow screens. */
.part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 48px;
  padding: 36px 0 44px;
  border-top: 1.5px solid var(--line-strong);
}

.part > h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  align-self: start;
}

.part-body {
  display: grid;
  gap: 16px;
  align-content: start;
  color: var(--text2);
  max-width: 62ch;
}

.part-body strong { color: var(--ink); font-weight: 600; }

.part-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.part-body li {
  position: relative;
  padding-left: 24px;
}

/* The app's task ring as the bullet. */
.part-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--mark);
}

.doc a:not(.mail-button) {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 35%, transparent);
  overflow-wrap: anywhere;
}
.doc a:not(.mail-button):hover { text-decoration-color: currentColor; }

/* On desktop a heading stays under the bar until its section scrolls away. */
@media (min-width: 761px) {
  .part > h2 { position: sticky; top: 96px; }
}

@media (max-width: 760px) {
  .part { grid-template-columns: 1fr; padding: 28px 0 36px; }
}

/* The one line that sums the policy up. */
.statement {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.statement::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 18px;
  border-radius: 2px;
  background: var(--mark);
}

.closing {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1.5px solid var(--line-strong);
  color: var(--meta);
  font-size: 15px;
  font-style: italic;
  max-width: 62ch;
}

/* Support: the contact card */

.contact {
  display: grid;
  gap: 18px;
  padding: 30px 28px 32px;
  border-radius: 22px;
  background: var(--raised);
}

.contact-label {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-address {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.mail-button, .copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.mail-button:hover, .copy-button:hover { transform: translateY(-1px); }
.mail-button svg, .copy-button svg { width: 18px; height: 18px; }

.mail-button { background: var(--accent); color: var(--on-accent); }

.copy-button {
  border: 1.5px solid var(--line-strong);
  background: none;
  color: var(--ink);
}

.contact-note { color: var(--text2); }

/* Support: questions, each one a row that opens */

.faq { display: grid; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }

/* A plus that turns into a minus. */
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat,
    var(--raised);
  color: var(--mark);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    var(--fill);
  transform: rotate(180deg);
}

.faq details p { padding: 0 48px 22px 0; color: var(--text2); }

.faq summary:focus-visible, .contact a:focus-visible, .copy-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* The bar on these pages: back home on the right. */
.bar-link {
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.bar-link:hover { color: var(--ink); }
.bar-link::before { content: "\2190  "; }

@media (prefers-reduced-motion: reduce) {
  .faq summary::after, .mail-button, .copy-button { transition: none; }
}
