/* Legal pages (app privacy policies and the like): hidden, unlinked pages that
   share the studio's type and colours from site.css. One readable column; no
   chart, no script. */

.legal .masthead {
  position: static;
}

.doc {
  width: 100%;
  max-width: calc(44rem + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(56px, 11vh, 120px) max(var(--gutter), env(safe-area-inset-right))
    clamp(80px, 14vh, 150px) max(var(--gutter), env(safe-area-inset-left));
}

.doc-kicker {
  margin: 0 0 18px;
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.doc h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.doc-date {
  margin: 26px 0 0;
  font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.doc p,
.doc li {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.doc p {
  margin: 0 0 1em;
}

.doc-lede {
  margin-top: 40px !important;
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}

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

.doc a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgb(169 200 255 / 0.4);
  overflow-wrap: anywhere;
}
.doc a:hover {
  text-decoration-color: currentColor;
}

/* The short version: a boxed summary before the details. */
.summary {
  margin: 40px 0 8px;
  padding: 22px 26px 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: rgb(19 32 58 / 0.55);
}
.summary h2 {
  margin: 0 0 12px;
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.summary ul {
  margin: 0;
}
.summary li {
  color: var(--ink);
}

.doc section {
  padding-top: 44px;
}

.doc section h2 {
  margin: 0 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.doc h3 {
  margin: 24px 0 8px;
  font: 600 0.9375rem/1.4 var(--sans);
  letter-spacing: 0.005em;
  color: var(--ink);
}

.doc ul {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.doc li {
  position: relative;
  margin: 0 0 0.55em;
  padding-left: 1.4em;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.78em;
  width: 0.6em;
  height: 1px;
  background: var(--ink-faint);
}

.doc address {
  font-style: normal;
  color: var(--ink-soft);
}

/* Source code shown in full (the OpenStreetMap build script). */
.doc pre.source {
  margin: 8px 0 1em;
  padding: 18px 20px;
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: rgb(19 32 58 / 0.55);
  font: 400 0.75rem/1.55 var(--mono);
  color: var(--ink-soft);
  tab-size: 4;
}
