/* Legal and help pages of wikicards.app (built by tools/legal.py). Tokens and nav: landing.css. */

.doc {
  width: min(100%, 760px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 108px var(--gutter) 72px;
  line-height: 1.65;
}
.doc h1 {
  margin: 0 0 6px;
  font: 400 clamp(1.5rem, 6vw, 2.125rem) / 1.15 var(--font-display);
  text-wrap: balance;
}
.doc h2 {
  margin: 38px 0 10px;
  font: 400 1.25rem / 1.25 var(--font-display);
}
.doc p {
  margin: 10px 0;
}
.doc li {
  margin: 6px 0;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc a,
.doc__foot p a {
  color: var(--cyan);
  text-underline-offset: 3px;
  /* A bare web address has no place to break and would push a 320 px page sideways. */
  overflow-wrap: anywhere;
}
.doc .updated {
  font: 400 0.75rem / 1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-62);
}
.doc .box {
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.doc table {
  width: 100%;
  margin: 14px 0;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 14px;
  background: var(--surface);
}
.doc th,
.doc td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  text-align: left;
  vertical-align: top;
}
.doc th {
  font: 700 0.6875rem / 1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-62);
}
.doc tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 360px) {
  .doc th,
  .doc td {
    padding: 10px 8px;
  }
}
.doc .num {
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
}
.doc .r-c {
  color: var(--muted);
}
.doc .r-pc {
  color: var(--cyan);
}
.doc .r-r {
  color: var(--magenta);
}
.doc .r-sr {
  color: var(--violet);
}
.doc .r-ur {
  color: var(--lime);
}
.doc .r-l {
  color: var(--amber);
}
.doc hr {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.nav__links a[aria-current] {
  color: var(--cyan);
}
/* Under 860 px the page links are hidden: the store button goes to the right edge on its own. */
@media (max-width: 859px) {
  .nav .btn {
    margin-left: auto;
  }
}

.doc__foot {
  width: min(100%, 760px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-62);
}
.doc__foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-bottom: 8px;
}
.doc__foot nav a {
  /* Tap target. */
  padding-block: 12px;
  text-decoration: none;
}
.doc__foot nav a:hover {
  color: var(--text);
}
.doc__foot p {
  margin: 0;
  color: var(--text-56);
}
