
  /* Legal pages (terms + privacy share this block; keep the two copies in sync). */
  .lg-wrap { max-width: 1180px; margin: 0 auto; }
  .lg-head {
    position: relative; overflow: hidden;
    background:
      radial-gradient(ellipse 600px 300px at 90% 0%, rgba(14,165,233,.24) 0, transparent 60%),
      linear-gradient(135deg, #075985 0%, #0f4fa8 56%, #1d4ed8 100%);
    color: #fff; border-radius: 22px; padding: 34px 40px; margin-bottom: 22px;
    box-shadow: 0 24px 60px -20px rgba(11,30,52,.40);
  }
  .lg-pill {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #dff7ff;
  }
  .lg-head h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
  .lg-head p { margin: 0; max-width: 820px; color: rgba(255,255,255,.85); font-size: 15.5px; line-height: 1.65; }
  .lg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
  .lg-chip {
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    padding: 6px 12px; border-radius: 10px; font-size: 13px; color: rgba(255,255,255,.9);
  }
  .lg-chip b { color: #fff; }
  .lg-print {
    background: #fff; color: var(--primary-deep); border: 0; border-radius: 10px;
    padding: 7px 14px; font-weight: 700; font-size: 13px;
  }
  .lg-print:hover { background: #e0f2fe; }

  .lg-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
  .lg-toc {
    position: sticky; top: 146px; max-height: calc(100vh - 166px); overflow: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 20px 18px; box-shadow: 0 4px 14px rgba(11,30,52,.04);
  }
  .lg-toc h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .lg-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
  .lg-toc li { counter-increment: toc; }
  .lg-toc ol a {
    display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px;
    color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.35;
  }
  .lg-toc ol a::before { content: counter(toc) "."; color: var(--muted); min-width: 22px; font-weight: 700; }
  .lg-toc ol a:hover { background: #f0f9ff; color: var(--primary-deep); }
  .lg-toc .lg-also { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }

  .lg-body {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 34px 42px; box-shadow: 0 4px 14px rgba(11,30,52,.04);
    font-size: 15px; line-height: 1.7; color: #1e293b;
    overflow-wrap: break-word;
  }
  .lg-body a { overflow-wrap: anywhere; }
  .lg-body section { scroll-margin-top: 146px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
  .lg-body section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
  .lg-body h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
  .lg-body h2 .n { color: var(--primary); margin-right: 6px; }
  .lg-body h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 700; color: var(--text); }
  .lg-body p { margin: 0 0 12px; }
  .lg-body ul, .lg-body ol { margin: 0 0 12px; padding-left: 22px; }
  .lg-body li { margin-bottom: 6px; }
  .lg-key {
    background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 14px;
    padding: 18px 22px; margin-bottom: 26px;
  }
  .lg-key h2 { font-size: 17px; margin-bottom: 8px; }
  .lg-key ul { margin-bottom: 6px; }
  .lg-key .lg-small { margin: 0; }
  .lg-note {
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
    padding: 12px 16px; margin: 0 0 12px;
  }
  .lg-box {
    background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 18px; margin: 0 0 12px;
  }
  .lg-box p:last-child { margin-bottom: 0; }
  .lg-consents { list-style: none; padding-left: 0 !important; }
  .lg-consents li {
    position: relative; padding: 10px 14px 10px 40px; background: #f8fafc;
    border: 1px solid var(--line); border-radius: 10px;
  }
  .lg-consents li::before {
    content: "✓"; position: absolute; left: 14px; top: 10px;
    color: #10b981; font-weight: 800;
  }
  .lg-addr { font-style: normal; }
  .lg-small { font-size: 13.5px; color: var(--muted); }
  .lg-body li .lg-small { display: block; margin-top: 2px; }
  .lg-end { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

  @media (max-width: 1240px) {
    .lg-toc { top: 96px; max-height: calc(100vh - 116px); }
    .lg-body section { scroll-margin-top: 96px; }
  }
  @media (max-width: 960px) {
    .lg-layout { grid-template-columns: 1fr; }
    .lg-toc { position: static; max-height: none; }
  }
  @media (max-width: 760px) {
    .lg-body section { scroll-margin-top: 72px; }
  }
  @media (max-width: 600px) {
    body > main.page { padding: 18px 16px 40px; }  /* head_extra precedes base CSS, so out-specify it */
    .lg-head { padding: 24px 20px; border-radius: 16px; }
    .lg-head h1 { font-size: 26px; }
    .lg-head p { font-size: 14.5px; }
    .lg-body { padding: 22px 18px; font-size: 14.5px; border-radius: 16px; }
    .lg-body h2 { font-size: 18.5px; }
    .lg-key { padding: 14px 16px; }
    .lg-body ul, .lg-body ol { padding-left: 18px; }
  }
  @media print {
    header.site, footer.site, .lg-toc, .lg-print, .arc, .breadcrumbs { display: none !important; }
    body > main.page { padding: 0; }
    .lg-layout { display: block; }
    .lg-head { background: none; color: #000; box-shadow: none; padding: 0; }
    .lg-head p, .lg-chip, .lg-chip b, .lg-pill { color: #000; }
    .lg-body { border: 0; box-shadow: none; padding: 0; }
  }
