/* /terms and /privacy: iteration 2 ("soft spring"), a calm reading page.
   Loaded after ada.css, which supplies the tokens, .bar, .logo, .eb, .card,
   .langs and focus rings; this file only sets the document's own layout. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { overflow-wrap: break-word; }
.frame { --gut: max(40px, calc((100% - 1280px) / 2)); }

/* bar: the board's wordmark left, the two documents right */
.bar { padding: 0 var(--gut); }
.logo { font-size: 28px; line-height: 1; gap: 0; }
.bar nav { display: flex; gap: 6px; font-size: 14px; font-weight: 700; }
.bar nav a { color: var(--ink); padding: 9px 14px; border-radius: 999px; }
.bar nav a:hover { background: var(--wash); color: var(--ink); }
.bar nav a[aria-current] { background: var(--leaf-t); color: var(--leaf); }

/* hero: eyebrow, title, one plain lede; no dither */
.hero .copy { padding: 56px var(--gut) 36px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.15; letter-spacing: -0.045em; }
.hero .lede { margin: 0; font-size: 16px; line-height: 1.8; max-width: 40em; color: var(--mute); }

/* version, date, contact: one quiet mono line */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 12px var(--gut);
        border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
        font-family: 'IBM Plex Mono', 'Noto Sans KR', monospace; font-size: 12px; color: var(--soft); }
.meta b { font-weight: 500; color: var(--ink); margin-left: 8px; }
.meta .langs { margin-left: auto; }
/* translations say up front that the Korean text is the one that binds */
.tr { font-size: 14px; line-height: 1.7; color: var(--mute); background: var(--wash); border-radius: 12px; padding: 12px 16px; margin: 0 0 32px; }
/* keep-all is right for Korean but stops Chinese wrapping between characters */
html[lang="zh-Hans"] body { word-break: normal; }

/* body: contents on the left, the text in a 720px reading column */
.doc { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 72px; padding: 48px var(--gut) 96px; }
.toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px;
       max-height: calc(100vh - 48px); overflow-y: auto; }
.toc .eb { margin-bottom: 10px; }
.toc a { padding: 6px 12px; margin-left: -12px; border-radius: 999px; line-height: 1.45; color: var(--soft); }
.toc a:hover { color: var(--ink); background: var(--wash); }
.toc a.on { color: var(--leaf); background: var(--leaf-t); font-weight: 700; }
article { font-size: 15.5px; line-height: 1.85; color: var(--ink); }
article a { color: var(--leaf); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
article a:hover { color: #0e3a2b; text-decoration-color: currentColor; }
article section { padding-top: 8px; margin-bottom: 44px; }
article h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.4; font-weight: 800; letter-spacing: -0.03em; }
article h2 .no { display: block; margin-bottom: 4px; font-family: 'IBM Plex Mono', 'Noto Sans KR', monospace; font-size: 12px; font-weight: 500;
                 color: var(--bink); letter-spacing: 0.06em; text-transform: uppercase; }
article h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
article p { margin: 0 0 12px; }
article ol, article ul { margin: 0 0 12px; padding-left: 1.4em; }
article li { margin-bottom: 6px; }
article li::marker { color: var(--soft); }
/* the summary up top: ada.css's soft card */
article .card { padding: 24px 28px; margin-bottom: 52px; }
.card h2 { margin-top: 0; }
.card ul { margin: 0; }
.note { background: var(--blossom-t); color: var(--ink); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-size: 14.5px; line-height: 1.7; }
.table { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--wash); color: var(--mute); font-weight: 700; white-space: nowrap; font-size: 12.5px; }
tr:last-child td { border-bottom: 0; }
.wide table { min-width: 760px; }
/* blanks the operator still has to fill: impossible to miss */
.fill { color: var(--bink); border-bottom: 1px dashed var(--bink); font-weight: 500; }

/* foot: who runs this, as the e-commerce footer lists it */
.foot { border-top: 1px solid var(--line); padding: 24px var(--gut) 32px; display: flex; flex-wrap: wrap; justify-content: space-between;
        gap: 12px 28px; font-size: 12.5px; line-height: 1.7; color: var(--soft); }
.foot .biz { display: flex; flex-wrap: wrap; gap: 4px 16px; max-width: 820px; }
.foot nav { display: flex; gap: 20px; font-size: 13px; }
.foot nav a { color: var(--mute); }
.foot nav a:hover { color: var(--leaf); }
.foot nav a.strong { font-weight: 800; color: var(--ink); }

@media (max-width: 900px) {
  .frame { --gut: 16px; }
  .logo { font-size: 24px; }
  .bar nav { gap: 2px; font-size: 13px; }
  .bar nav a { padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; }
  .hero .copy { padding-top: 32px; padding-bottom: 24px; }
  .meta .langs { margin-left: 0; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fff; }
  .toc a { margin-left: -8px; padding: 0 8px; min-height: 40px; display: flex; align-items: center; }
  article { font-size: 15px; }
  article .card { padding: 20px; }
  .foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 420px) {
  .bar { gap: 8px; }
  .bar nav { font-size: 12.5px; }
  .bar nav a { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .toc, .bar nav { display: none; }
  .doc { display: block; padding: 0; }
}
