/* Condensa Labs · document pages: support, privacy, terms and the 404.
 *
 * Read on top of site.css (tokens, header, footer, buttons). The text of these pages is their own
 * and is not touched by the redesign; only their frame and type change.
 */

/* The header is solid from the start: there is no scene behind it to show through. */
.doc-page .header { background: rgb(2 8 14 / .82); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-color: var(--line); }
.doc-page .nav a[aria-current="page"] { color: var(--pearl); }

.doc {
  width: 100%; max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(68px + clamp(48px, 9vh, 104px)) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(80px, 12vh, 140px) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.doc h1 { font-weight: 600; font-size: clamp(40px, 6.2vw, 76px); line-height: 1; letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance; }
.doc h2 { font-weight: 700; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.25; letter-spacing: -.02em; margin: 60px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); text-wrap: balance; }
.doc h3 { font-weight: 700; font-size: 19px; line-height: 1.35; letter-spacing: -.01em; margin: 34px 0 10px; color: var(--pearl); }
.doc p, .doc li { font-size: 18px; line-height: 1.7; color: var(--body); margin: 0 0 16px; text-wrap: pretty; }
.doc strong { color: var(--pearl); font-weight: 700; }
.doc ul { margin: 0 0 18px; padding-left: 1.25em; }
.doc li { margin-bottom: 8px; padding-left: .2em; }
.doc li::marker { color: var(--yellow); }
.doc a { color: var(--pearl); text-decoration: underline; text-decoration-color: rgb(252 202 31 / .75); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; overflow-wrap: anywhere; }
.doc a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }
.doc :focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }

/* the line under the title: date, product, error code */
.doc .updated, .doc .date, .doc .legal-updated, .doc .section-index {
  font-family: var(--mono); font-weight: 500; font-size: 12.5px; line-height: 1.7; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mist); margin: 0 0 44px;
}
.doc .section-index { color: var(--yellow); margin: 0 0 18px; }
/* the opening paragraph (site.css also has .intro, a 12-column section grid, and .lead's width) */
.doc .lead, .doc .intro { display: block; max-width: none; font-size: clamp(20px, 1.75vw, 23px); line-height: 1.55; color: var(--pearl); }

/* Apple's licence text, quoted in full */
.doc pre.notice {
  white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 20px;
  font: 13px/1.65 var(--mono); color: var(--mist);
  background: var(--night); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
}

/* ---------- the support form (Condensa) ---------- */
.support-form { display: grid; gap: 20px; margin: 30px 0 56px; padding: clamp(20px, 3.4vw, 34px); background: var(--night); border: 1px solid var(--line); border-radius: 24px; }
.support-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.support-form__field { display: grid; gap: 8px; align-content: start; }
.support-form label { font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.support-form label span { text-transform: none; letter-spacing: .01em; color: rgb(148 166 179 / .8); }
.support-form input, .support-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--deep); color: var(--pearl); font: inherit; font-size: 17px; line-height: 1.4; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.support-form input::placeholder, .support-form textarea::placeholder { color: rgb(148 166 179 / .55); }
.support-form input:focus, .support-form textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.support-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.support-form button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: -.005em; cursor: pointer;
  background: var(--yellow); color: var(--on-yellow); border: 1px solid var(--yellow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .2s;
}
.support-form button:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgb(252 202 31 / .55); }
.support-form button:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.doc .support-form__status { margin: 0; font-size: 15px; color: var(--mist); }

/* ---------- 404 ---------- */
.doc-404 { min-height: 72vh; min-height: 72svh; display: flex; flex-direction: column; justify-content: center; }
.doc-404 h1 { font-size: clamp(48px, 8vw, 104px); }

@media (max-width: 560px) {
  .support-form__row { grid-template-columns: minmax(0, 1fr); }
  .doc p, .doc li { font-size: 17px; }
  .doc-page .nav { gap: 12px; }
  .doc-page .nav a { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .doc-page .wordmark span.name { display: none; }
}
