  :root {
    --bg: #FBFBFA;
    --ink: #0C0F11;
    --ink-soft: #4B5054;
    --ink-faint: #8B9094;
    --accent: #0C8B8B;
    --accent-bright: #2BD4C4;
    --accent-soft: #E4F2F1;
    --line: #E4E6E6;
    --box: #F3F5F5;
    --dark: #0B0E10;
    --dark-line: rgba(255,255,255,0.10);
    --dark-text: #E8EAEA;
    --dark-soft: #9BA3A8;
    --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --max: 1040px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg); color: var(--ink);
    font-size: 16.5px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
  ::selection { background: var(--accent); color: #fff; }
  a { color: inherit; }

  /* ---------- nav ---------- */
  nav { position: sticky; top: 0; z-index: 10; background: rgba(251,251,250,0.92); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
  .nav-inner { display: flex; justify-content: space-between; align-items: center; height: 58px; }
  .wordmark { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; letter-spacing: 0.12em; text-decoration: none; }
  .wm-glyph { width: 27px; height: 27px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; letter-spacing: 0; }
  .wordmark .wm-sec { color: var(--ink); }
  .wordmark .wm-dev { color: var(--ink-faint); }
  .wordmark .wm-ai { color: var(--accent); }
  .nav-right { display: flex; align-items: center; gap: 22px; }
  .nav-link { font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--ink-soft); transition: color .2s; }
  .nav-link:hover { color: var(--accent); }
  .lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 980px; padding: 2px; }
  .lang-switch button { font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .06em; border: none; background: transparent; color: var(--ink-faint); padding: 3px 9px; border-radius: 980px; cursor: pointer; transition: .2s; }
  .lang-switch button.active { background: var(--ink); color: var(--bg); }

  /* ---------- document ---------- */
  main { padding: 56px 0 80px; }
  .doc { max-width: 660px; }
  .kicker { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
  h1 { font-size: clamp(27px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.018em; line-height: 1.18; }
  .lede { margin-top: 14px; font-size: 15.5px; color: var(--ink-soft); }
  h2 { margin-top: 40px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
  h2 .no { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); margin-right: 9px; }
  h3 { margin-top: 24px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
  p { margin-top: 11px; font-size: 15px; color: var(--ink-soft); }
  h3 + p { margin-top: 6px; }
  ul { margin-top: 10px; padding-left: 20px; }
  li { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
  li strong, p strong { color: var(--ink); font-weight: 650; }
  .addr { margin-top: 6px; font-size: 15px; line-height: 1.75; color: var(--ink); }
  .doc a[href^="mailto"] { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .doc a[href^="mailto"]:hover { color: var(--accent); border-color: var(--accent); }

  .ph { background: #FFF3BF; color: #6B5200; border-radius: 4px; padding: 1px 6px; font-weight: 600; font-size: 14px; }

  .highlight { margin-top: 18px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 12px; padding: 18px 20px; }
  .highlight p { margin-top: 0; color: var(--ink); font-size: 15px; }
  .highlight p + p { margin-top: 10px; }

  .note { margin-top: 34px; background: var(--box); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 18px; font-size: 13.5px; color: var(--ink-soft); }
  .note strong { color: var(--ink); }
  .stand { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-faint); }

  .back { display: inline-block; margin-top: 32px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--accent); }
  .back:hover { text-decoration: underline; }

  /* ---------- footer ---------- */
  footer { background: var(--dark); color: var(--dark-soft); padding: 36px 0 44px; }
  .footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
  .footer-wordmark { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .12em; color: var(--dark-text); }
  .footer-wordmark .wm-glyph { width: 27px; height: 27px; border-radius: 8px; font-size: 12.5px; }
  .footer-wordmark .wm-sec { color: var(--dark-text); }
  .footer-wordmark .wm-dev { color: var(--dark-soft); }
  .footer-wordmark .wm-ai { color: var(--accent-bright); }
  .footer-right { text-align: right; }
    .footer-legal { padding-top: 7px; font-size: 12.5px; display: flex; gap: 8px; justify-content: flex-end; }
  .footer-legal a { color: var(--dark-soft); text-decoration: none; border-bottom: 1px solid var(--dark-line); transition: color .2s, border-color .2s; }
  .footer-legal a:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
  .footer-legal .sep { color: rgba(255,255,255,0.25); }

  [data-lang] { display: none; }
  [data-lang].on { display: block; }

  @media (max-width: 820px) {
    .footer-right { text-align: left; }
    .footer-legal { justify-content: flex-start; }
  }

  /* ---------- quiet legal pages ---------- */
  body { background: #F2F3F3; }
  nav { background: rgba(242,243,243,0.94); }
  main { padding: 36px 0 56px; }
  .doc { max-width: none; }
  .kicker { display: none; }
  h1 { font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: #5F6468; }
  .lede { margin-top: 4px; font-size: 12px; color: #7C8185; }
  h2 { margin-top: 20px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; padding-bottom: 0; border-bottom: none; color: #5F6468; }
  h3 { margin-top: 10px; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #6B7075; }
  p, li, .addr { font-size: 12px; line-height: 1.55; color: #6B7075; }
  p { margin-top: 6px; }
  h3 + p { margin-top: 2px; }
  ul { margin-top: 4px; padding-left: 18px; }
  li { margin-top: 1px; }
  .addr { margin-top: 4px; line-height: 1.55; color: #6B7075; }
  code { font-family: inherit; font-size: inherit; }
  .doc a[href^="mailto"] { color: inherit; border-bottom: none; }
  .note { margin-top: 18px; background: none; border: none; padding: 0; font-size: 11.5px; color: #7C8185; }
  .note strong { color: inherit; font-weight: inherit; }
  .back { margin-top: 22px; font-size: 12px; font-weight: 400; color: #7C8185; }

  /* ---------- footer pinned to bottom, no layout shift between pages ---------- */
  html { background: #F2F3F3; scrollbar-gutter: stable; overflow-y: scroll; }
  body { min-height: 100vh; display: flex; flex-direction: column; }
  main { flex: 0 0 auto; }
  footer { flex: 1 0 auto; }

  /* ---------- static frame: header and footer stay put, only the text scrolls ---------- */
  a.footer-wordmark { text-decoration: none; width: fit-content; }
  /* desktop: footer stays at the bottom of the screen; the text ends with ~80px of air above it */
  @media (min-width: 821px) {
    main { padding-bottom: 80px; }
    footer { position: sticky; bottom: 0; z-index: 10; }
  }
  /* opaque header; above the footer the text fades into an empty band of the same height on every legal page */
  nav { background: #F2F3F3; }
  @media (min-width: 821px) {
    footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 64px; pointer-events: none;
      background: linear-gradient(to top, #F2F3F3 35%, rgba(242,243,243,0)); }
  }
  /* desktop: footer is fixed and never changes height; above it an identical empty band on every legal page,
     where the text fades out. At the end of a page the last line stops right above that band. */
  @media (min-width: 821px) {
    main { padding-bottom: 228px; }
    footer { position: fixed; left: 0; right: 0; bottom: 0; height: 108px; flex: none; }
    footer::before { height: 120px; background: linear-gradient(to top, #F2F3F3 40%, rgba(242,243,243,0)); }
  }
