/* Document pages (privacy, terms, support, deletion, legal, credits): long text on the brand's
   dark background, the same tokens as styles.css, no light scheme (owner, 2026-10-03).
   Loaded only by the document pages; the hero pages do not need it. */

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem 0;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.18em;
}

.doc-brand img {
  width: 2.25rem;
  height: 2.25rem;
}

/* The small ™ sign raised at the name's top right, as beside the home page wordmark (owner,
   2026-10-09); the negative margin takes back the letter spacing after «a». */
.doc-brand .tm {
  margin-left: -0.13rem;
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0;
  vertical-align: 1em;
}

.doc-brand:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 4px;
}

.doc-lang a,
.doc-lang span {
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.doc-lang a {
  color: var(--muted);
}

.doc-lang a:hover,
.doc-lang a:focus-visible {
  color: var(--cream);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.doc-lang span[aria-current] {
  color: var(--cream);
}

.doc {
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-top: 2.5rem;
}

.doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.doc .meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.doc .meta time {
  color: var(--cream);
}

.doc .summary {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--green);
  background: rgba(246, 244, 239, 0.04);
}

.doc .summary h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc .summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.doc .summary li + li {
  margin-top: 0.35rem;
}

.doc .toc {
  margin: 0 0 2.5rem;
}

.doc .toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc .toc ol {
  margin: 0;
  padding-left: 1.4rem;
}

.doc .toc li + li {
  margin-top: 0.25rem;
}

.doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  scroll-margin-top: 1rem;
}

.doc h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.doc p,
.doc ul,
.doc ol,
.doc dl {
  margin: 0 0 1rem;
}

.doc ul,
.doc ol {
  padding-left: 1.4rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--muted);
}

.doc a:hover {
  text-decoration-color: var(--cream);
}

.doc a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.doc dt {
  font-weight: 500;
}

.doc dd {
  margin: 0.15rem 0 0.9rem;
  color: var(--cream);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.doc caption {
  text-align: left;
  padding: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.doc th,
.doc td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid rgba(246, 244, 239, 0.12);
  text-align: left;
  vertical-align: top;
}

.doc th {
  font-weight: 500;
  color: var(--muted);
}

.doc address {
  font-style: normal;
}

.doc .partner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}

.doc .partner img {
  width: 4rem;
  height: auto;
  flex: none;
}

@media print {
  html,
  body {
    background: #fff;
    color: #000;
  }

  .skip,
  .doc-lang,
  .foot,
  .doc .toc {
    display: none;
  }

  .doc,
  .doc dd,
  .doc .meta time,
  .doc a {
    color: #000;
  }

  .doc .summary {
    background: none;
    border-left-color: #000;
  }

  .doc h2,
  .doc h3 {
    break-after: avoid;
  }

  .doc a[href^="http"]::after,
  .doc a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
}
