/* capysend.com — marketing site, second design (2026-11-10).
   Light, quiet B2B surface; one product moment (the approval desk) carries the page. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f7f8f5;
  --paper-deep: #eef2ec;
  --surface: #ffffff;
  --ink: #13221b;
  --ink-soft: #46574e;
  --ink-faint: #58675e;
  --line: #dbe2da;
  --line-strong: #c3cdc2;
  --pine: #1f3a30;
  --pine-hover: #2a4c3f;
  --moss: #5f8a72;
  --moss-soft: #e4ede6;
  --coral: #d9604a;
  --coral-soft: #fbe9e4;
  --gold: #e8bd65;
  --code-bg: #15281f;
  --code-ink: #dfe9e2;
  --code-dim: #8fa89a;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --page: 1160px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 400px) {
  .nav .pricing {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

.wrap {
  width: min(var(--page), calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  background: var(--pine);
  color: var(--paper);
}

.skip:focus {
  top: 12px;
}

/* --- buttons ------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--pine);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--pine-hover);
}

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink-faint);
  background: var(--surface);
}

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.875rem;
}

/* --- header -------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand img {
  width: 132px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.925rem;
}

.nav a {
  padding-block: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.nav .btn {
  padding-block: 0;
}

.nav a:hover {
  color: var(--ink);
}

.nav .btn {
  color: var(--paper);
}

.nav .lang {
  color: var(--ink-faint);
}

/* --- hero ---------------------------------------------------------------------------------- */

.hero {
  padding: 72px 0 0;
}

.hero h1 {
  max-width: 19ch;
  font: 600 clamp(2.6rem, 5.6vw, 4.6rem)/1.04 var(--display);
  letter-spacing: -0.02em;
}

.hero-sub {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-top: 28px;
}

.hero-sub .hero-actions {
  margin-top: 0;
}

.hero .lede {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 0.875rem;
}

/* --- the approval desk (product moment) ------------------------------------------------------ */

.desk-stage {
  position: relative;
  margin-top: 56px;
  padding-bottom: 96px;
}

.desk-stage::before {
  /* The desk sits on a pale band that starts halfway down, so it reads as a surface, not a card. */
  position: absolute;
  inset: 22% calc(50% - 50vw) 0;
  z-index: -1;
  background: var(--paper-deep);
  content: "";
}

.desk {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(19, 34, 27, 0.04), 0 24px 60px -28px rgba(19, 34, 27, 0.28);
}

.desk-bar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.desk-bar strong {
  font-weight: 600;
}

.desk-bar .count {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: #a33d29;
  font-size: 0.78rem;
  font-weight: 600;
}

.desk-bar .who {
  margin-left: auto;
  color: var(--ink-faint);
}

.queue {
  list-style: none;
  padding: 8px;
  border-right: 1px solid var(--line);
  background: #fbfcfa;
}

.queue li {
  padding: 14px 14px 15px;
  border-radius: var(--radius-m);
}

.queue li + li {
  margin-top: 4px;
}

.queue li.is-open {
  background: var(--moss-soft);
}

.queue .agent {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
}

.queue .agent::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  content: "";
}

.queue .subject {
  margin-top: 6px;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue .to {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 28px 26px;
}

.draft-meta {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 0.875rem;
}

.draft-meta dt {
  color: var(--ink-faint);
}

.draft-meta dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-subject {
  margin-top: 18px;
  font: 600 1.15rem/1.35 var(--display);
}

.draft-body {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.checks {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.875rem;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checks li::before {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--moss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  content: "";
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.draft-actions .fake {
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: #a33d29;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.desk-caption {
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 0.85rem;
  text-align: center;
}

/* The one orchestrated moment: the checks tick one by one, then the email waits for a person.
   Only the tick marks and the pill move; the text is never hidden, so a capture taken before the
   animation runs still shows everything. */
@media (prefers-reduced-motion: no-preference) {
  .js .checks li::before {
    animation: tick 360ms cubic-bezier(0.3, 1.4, 0.5, 1) backwards;
  }

  .js .checks li:nth-child(1)::before { animation-delay: 500ms; }
  .js .checks li:nth-child(2)::before { animation-delay: 700ms; }
  .js .checks li:nth-child(3)::before { animation-delay: 900ms; }
  .js .checks li:nth-child(4)::before { animation-delay: 1100ms; }

  .js .status-pill {
    animation: pill-in 420ms cubic-bezier(0.3, 1.4, 0.5, 1) 1450ms backwards;
  }
}

@keyframes tick {
  from { transform: scale(0.3); background-color: var(--line-strong); }
  to { transform: none; }
}

@keyframes pill-in {
  from { transform: scale(0.9); }
  to { transform: none; }
}

/* --- sections ------------------------------------------------------------------------------ */

.section {
  padding: 112px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2,
.closing h2 {
  max-width: 20ch;
  font: 600 clamp(2rem, 3.6vw, 2.9rem)/1.1 var(--display);
  letter-spacing: -0.015em;
}

.section .intro {
  max-width: 38rem;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Agents: text left, a real terminal right. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.also {
  margin-top: 24px;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.also a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.terminal {
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: 0 24px 60px -30px rgba(19, 34, 27, 0.5);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.terminal pre {
  margin: 0;
  padding: 22px 24px 26px;
  overflow-x: auto;
  font: 0.86rem/1.75 var(--mono);
  white-space: pre;
}

.terminal .dim {
  color: var(--code-dim);
}

.terminal .ok {
  color: #9fd7b2;
}

.terminal .wait {
  color: #f2a48f;
}

/* Guardrails: a 2 x 2 grid divided by hairlines, not cards. */
.guards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.guards > div {
  padding: 32px 40px 36px 0;
  border-bottom: 1px solid var(--line);
}

.guards > div:nth-child(even) {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.guards h3 {
  font: 600 1.15rem/1.3 var(--display);
}

.guards p {
  max-width: 30rem;
  margin-top: 8px;
  color: var(--ink-soft);
}

/* Your channel */
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  list-style: none;
  padding: 0;
}

.channels li {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Pricing at a glance */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.plan {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.plan.is-team {
  border-color: var(--pine);
  background: var(--pine);
  color: var(--paper);
}

.plan h3 {
  font: 600 1.05rem/1.3 var(--body);
}

.price {
  margin-top: 14px;
  font: 600 2.6rem/1 var(--display);
  letter-spacing: -0.02em;
}

.price small {
  margin-left: 6px;
  font: 400 0.95rem/1 var(--body);
  letter-spacing: 0;
  opacity: 0.75;
}

.plan ul {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.plan li {
  padding-left: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 2.8L12.5 5' fill='none' stroke='%235f8a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0.32em / 14px no-repeat;
}

.plan.is-team li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 2.8L12.5 5' fill='none' stroke='%23e8bd65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plans-more {
  margin-top: 24px;
}

.plans-more a {
  font-weight: 500;
  text-underline-offset: 3px;
}

/* Closing */
.closing {
  padding: 104px 0 112px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing img {
  width: 132px;
  margin: 0 auto 28px;
}

.closing h2 {
  max-width: none;
  margin-inline: auto;
}

.closing .hero-actions {
  justify-content: center;
}

/* --- footer -------------------------------------------------------------------------------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  display: inline-block;
  padding-block: 6px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .credit {
  flex-basis: 100%;
  font-size: 0.8rem;
}

/* --- pricing page ---------------------------------------------------------------------------- */

.page-intro {
  padding: 80px 0 48px;
}

.page-intro h1 {
  max-width: 20ch;
  font: 600 clamp(2.4rem, 5vw, 4rem)/1.05 var(--display);
  letter-spacing: -0.02em;
}

.page-intro .lede {
  max-width: 38rem;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.price-table {
  padding-bottom: 96px;
}

.plans-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  margin-top: 0;
}

.plan h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 600 1.25rem/1.3 var(--display);
}

.plan .tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232, 189, 101, 0.18);
  color: var(--gold);
  font: 600 0.75rem/1.4 var(--body);
}

.plan-for {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan.is-team .plan-for,
.plan.is-team .price-alt,
.plan.is-team .plan-fine {
  color: rgba(247, 248, 245, 0.78);
}

.price-words {
  font-size: 2rem;
}

.price-alt {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.plan-cta {
  width: 100%;
  margin-top: 24px;
}

.btn-light {
  background: var(--paper);
  color: var(--pine);
}

.btn-light:hover {
  background: #ffffff;
}

.plan-fine {
  margin-top: 10px;
  font-size: 0.82rem;
}

.plan-plus {
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 600;
}

.plan-plus + ul {
  margin-top: 12px;
}

.table-wrap {
  margin-top: 32px;
  overflow-x: auto;
}

.addons {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.addons th,
.addons td {
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.addons thead th {
  padding-top: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 500;
}

.addons tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.addons td:last-child {
  color: var(--ink-soft);
}

.split-top {
  align-items: start;
}

.promises {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.promises li {
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 2.8L12.5 5' fill='none' stroke='%235f8a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 1.25em / 16px no-repeat;
}

.promises li:first-child {
  padding-top: 0;
  background-position: 0 0.3em;
}

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

.faq details:first-child summary {
  padding-top: 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  flex: none;
  color: var(--ink-faint);
  font-weight: 400;
  content: "+";
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  max-width: 40rem;
  padding-bottom: 20px;
  color: var(--ink-soft);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 960px) {
  .plans-3 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

/* --- Chinese pages --------------------------------------------------------------------------- */

:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3 {
  letter-spacing: 0;
}

:lang(zh) .hero h1,
:lang(zh) .page-intro h1 {
  max-width: none;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1.15;
}

:lang(zh) .section h2,
:lang(zh) .closing h2 {
  max-width: 16em;
  line-height: 1.25;
  text-wrap: balance;
}

:lang(zh) body,
:lang(zh) .lede,
:lang(zh) .intro {
  line-height: 1.75;
}

.phrase {
  display: inline-block;
}

/* --- responsive ---------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-sub {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .desk {
    grid-template-columns: minmax(0, 1fr);
  }

  .queue {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .queue li {
    flex: 0 0 240px;
  }

  .queue li + li {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .site-header .wrap {
    gap: 16px;
  }

  .brand img {
    width: 112px;
  }

  .nav {
    gap: 14px;
    font-size: 0.875rem;
  }

  .nav .optional,
  .desk-bar .who {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .section {
    padding: 80px 0;
  }

  .draft {
    padding: 20px;
  }

  .status-pill {
    margin-left: 0;
  }

  .guards,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .guards > div,
  .guards > div:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }
}


/* --- legal pages ---------------------------------------------------------------------------- */

.legal {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 64px 0 112px;
}

.legal-docs {
  position: sticky;
  top: 24px;
  font-size: 0.9rem;
}

.legal-docs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.legal-docs a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
}

.legal-docs a:hover {
  color: var(--ink);
}

.legal-docs a[aria-current="page"] {
  border-left-color: var(--pine);
  color: var(--ink);
  font-weight: 600;
}

.legal-body {
  max-width: 44rem;
  overflow-wrap: break-word;
}

.legal-head {
  padding-bottom: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  font: 600 clamp(2.2rem, 4.4vw, 3.25rem)/1.08 var(--display);
  letter-spacing: -0.02em;
}

.legal-head .legal-updated {
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.legal-head .legal-draft {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid #ecc9bf;
  border-radius: var(--radius-s);
  background: var(--coral-soft);
  color: var(--ink);
  font-size: 0.95rem;
}

.legal-body h2 {
  margin-top: 48px;
  font: 600 1.35rem/1.3 var(--display);
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}

.legal-body h3 {
  margin-top: 28px;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-body p,
.legal-body ul {
  margin-top: 14px;
  color: var(--ink-soft);
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body li + li {
  margin-top: 6px;
}

.legal-body strong {
  color: var(--ink);
}

.legal-body a {
  color: var(--pine);
  text-underline-offset: 3px;
}

.legal-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper-deep);
  font: 0.88em var(--mono);
}

mark.tbc {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f8e6bd;
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.footer-legal {
  flex-basis: 100%;
}

:lang(zh) .legal-head h1,
:lang(zh) .legal-body h2 {
  letter-spacing: 0;
}

:lang(zh) .legal-body {
  line-height: 1.8;
}

@media (max-width: 860px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
  }

  .legal-docs {
    position: static;
  }

  .legal-docs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    border-left: 0;
  }

  .legal-docs a {
    margin-left: 0;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .legal-docs a[aria-current="page"] {
    border-color: var(--pine);
    background: var(--pine);
    color: #fff;
  }
}
