/* Legal pages (Privacy Policy, Cookies). Plain reading layout: white
   surface, deep-blue headings, sparing gold, comfortable line length. These
   pages load only this sheet and the shared baseline. */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.lg-body {
  --lg-blue: #1257e0;
  --lg-navy: #0b2a6f;
  --lg-ink: #101c3a;
  --lg-text: #33415c;
  --lg-muted: #5d6c8a;
  --lg-line: #e3eaf7;
  --lg-gold: #f5a623;
  margin: 0;
  background: #f4f7fd;
  color: var(--lg-text);
  font: 400 16px/1.7 Inter, Arial, sans-serif;
}

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

.lg-body :is(a, button, summary):focus-visible { outline: 2px solid var(--lg-blue); outline-offset: 2px; border-radius: 4px; }
.lg-body a { color: var(--lg-blue); text-underline-offset: 2px; }
.lg-body a:hover { color: var(--lg-navy); }

.lg-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--lg-navy);
  color: #fff !important;
}

.lg-skip:focus { top: 12px; }

.lg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 16px 0;
}

.lg-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--lg-navy) !important; font: 800 18px/1 Inter, Arial, sans-serif; text-decoration: none; }
.lg-brand img { width: 36px; height: 36px; }
.lg-top nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 600 14px/1.2 Inter, Arial, sans-serif; }
.lg-top nav a { text-decoration: none; }
.lg-top nav a[aria-current="page"] { color: var(--lg-ink); }

.lg-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 8px 0 56px;
}

.lg-layout--single { grid-template-columns: minmax(0, 1fr); width: min(100% - 32px, 900px); }

/* contents list */
.lg-toc {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  padding: 18px;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  background: #fff;
  overflow-y: auto;
}

.lg-toc h2 { margin: 0 0 10px; color: var(--lg-navy); font: 800 13px/1.2 Inter, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.lg-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--lg-text); font: 500 13.5px/1.35 Inter, Arial, sans-serif; text-decoration: none; }
.lg-toc a::before { content: counter(toc) ". "; color: var(--lg-muted); }
.lg-toc a:hover { background: #f1f6ff; color: var(--lg-blue); }

.lg-doc {
  min-width: 0;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--lg-line);
  border-radius: 16px;
  background: #fff;
}

.lg-doc > header { padding-bottom: 20px; border-bottom: 3px solid var(--lg-gold); }
.lg-doc h1 { margin: 0; color: var(--lg-navy); font: 800 clamp(28px, 4.4vw, 40px)/1.15 Inter, Arial, sans-serif; letter-spacing: -.01em; }
.lg-doc .lg-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 12px 0 0; padding: 0; color: var(--lg-muted); font: 500 14px/1.5 Inter, Arial, sans-serif; list-style: none; }
.lg-meta strong { color: var(--lg-ink); font-weight: 600; }
.lg-lead { margin: 16px 0 0; color: var(--lg-text); font-size: 17px; }

.lg-doc section { max-width: 72ch; padding-top: 30px; scroll-margin-top: 16px; }
.lg-doc h2 { margin: 0 0 10px; color: var(--lg-navy); font: 800 clamp(20px, 2.6vw, 24px)/1.25 Inter, Arial, sans-serif; }
.lg-doc h3 { margin: 20px 0 6px; color: var(--lg-ink); font: 700 17px/1.3 Inter, Arial, sans-serif; }
.lg-doc p { margin: 0 0 12px; }
.lg-doc ul { margin: 0 0 12px; padding-left: 22px; }
.lg-doc li { margin-bottom: 6px; }
.lg-doc li::marker { color: var(--lg-blue); }
.lg-doc strong { color: var(--lg-ink); font-weight: 600; }

/* at a glance */
.lg-glance { max-width: none !important; }
.lg-glance dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.lg-glance dl > div { padding: 14px 16px; border: 1px solid var(--lg-line); border-left: 4px solid var(--lg-blue); border-radius: 10px; background: #f8faff; }
.lg-glance dt { color: var(--lg-navy); font: 700 15px/1.3 Inter, Arial, sans-serif; }
.lg-glance dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; }

/* tables scroll inside their own box on narrow screens */
.lg-table { max-width: none; margin: 0 0 14px; border: 1px solid var(--lg-line); border-radius: 10px; overflow-x: auto; }
.lg-doc section:has(.lg-table) { max-width: none; }
.lg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.lg-table caption { padding: 10px 14px; color: var(--lg-muted); font-size: 13.5px; text-align: left; }
.lg-table th,
.lg-table td { padding: 10px 14px; border-top: 1px solid var(--lg-line); text-align: left; vertical-align: top; }
.lg-table thead th { border-top: 0; background: #eef4ff; color: var(--lg-navy); font-weight: 700; }
.lg-table tbody th { color: var(--lg-ink); font-weight: 600; }

.lg-note { margin: 0 0 12px; padding: 12px 16px; border-left: 4px solid var(--lg-gold); border-radius: 0 10px 10px 0; background: #fffaf0; }
.lg-note p:last-child { margin-bottom: 0; }

.lg-foot { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 0 0 36px; color: var(--lg-muted); font-size: 14px; text-align: center; }

@media (max-width: 900px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lg-toc { position: static; max-height: none; }
  .lg-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-glance dl { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .lg-body { font-size: 15.5px; }
  .lg-toc ol { grid-template-columns: minmax(0, 1fr); }
  .lg-top nav { gap: 6px 12px; font-size: 13px; }
}

@media print {
  .lg-top, .lg-toc, .lg-foot, .lg-skip { display: none; }
  .lg-layout { display: block; width: auto; }
  .lg-doc { border: 0; padding: 0; }
}
