@font-face {
  font-family: "Baloo 2";
  src: url("/assets/Baloo2-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --clay: #c0664a;
  --deep-clay: #8e4630;
  --sage: #7d9471;
  --paper: #fbf7f2;
  --sand: #efe3d6;
  --ink: #2e2723;
  --muted: #7c6f67;
  --line: #e3d8cb;
  --warning: #fff2cc;
  --warning-ink: #5f4300;
  --shadow: 0 24px 70px -52px rgba(46, 39, 35, .5);
}

html[data-theme="dark"] {
  --clay: #d68566;
  --deep-clay: #e3997c;
  --sage: #93a888;
  --paper: #1c1917;
  --sand: #2a2522;
  --ink: #f5f0ea;
  --muted: #b7aaa0;
  --line: #3a3330;
  --warning: #3c3219;
  --warning-ink: #f2d98e;
  --shadow: 0 24px 70px -52px rgba(0, 0, 0, .95);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  transition: background .25s ease, color .25s ease;
}
a { color: var(--deep-clay); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; border-radius: 6px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 14px;
  transform: translateY(-160%);
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-family: "Baloo 2", sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .004em;
  line-height: 1;
  text-decoration: none;
}
.wordmark span { color: var(--clay); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .lang-link {
  min-width: 44px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font: 700 14px/1 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 54px) 42px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.13; }
h1 { max-width: 13ch; font-size: clamp(42px, 7vw, 74px); text-wrap: balance; }
.intro { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.meta { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }

.summary-grid {
  max-width: 1052px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 54px) 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.summary-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--sand) 65%, var(--paper));
}
.summary-card .number { color: var(--clay); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.summary-card h2 { margin-top: 22px; font-size: 21px; }
.summary-card p { margin: 9px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.publication-blocker {
  max-width: 1052px;
  margin: 0 auto 44px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--warning-ink) 28%, transparent);
  border-radius: 18px;
  background: var(--warning);
  color: var(--warning-ink);
  font-size: 15px;
}
.publication-blocker strong { display: block; margin-bottom: 4px; }

.legal-shell {
  max-width: 1052px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 54px) 100px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--paper) 84%, var(--sand));
  box-shadow: var(--shadow);
}
.toc strong { display: block; margin-bottom: 12px; font-size: 14px; letter-spacing: .04em; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: legal; }
.toc li { counter-increment: legal; }
.toc a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}
.toc a::before { content: counter(legal, decimal-leading-zero); color: var(--clay); font-size: 11px; font-weight: 800; padding-top: 2px; }
.toc a:hover { color: var(--ink); }

.legal-content { min-width: 0; }
.legal-content section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { font-size: clamp(27px, 4vw, 38px); text-wrap: balance; }
.legal-content h3 { margin-top: 28px; font-size: 20px; }
.legal-content p { margin: 15px 0 0; }
.legal-content ul, .legal-content ol { margin: 15px 0 0; padding-left: 24px; }
.legal-content li + li { margin-top: 8px; }
.legal-content .lede { color: var(--muted); font-size: 18px; }
.legal-content .note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--sage);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--sage) 10%, transparent);
}
.data-table { width: 100%; margin-top: 22px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.data-table th, .data-table td { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: var(--sand); font-size: 13px; letter-spacing: .02em; }
.data-table tr > *:first-child { border-left: 1px solid var(--line); }
.data-table thead tr:first-child > * { border-top: 1px solid var(--line); }
.data-table thead tr:first-child > *:first-child { border-top-left-radius: 14px; }
.data-table thead tr:first-child > *:last-child { border-top-right-radius: 14px; }
.data-table tbody tr:last-child > *:first-child { border-bottom-left-radius: 14px; }
.data-table tbody tr:last-child > *:last-child { border-bottom-right-radius: 14px; }
.contact-card { padding: 24px; border-radius: 22px; background: var(--clay); color: #fffaf6; }
.contact-card a { color: inherit; font-weight: 750; }
.contact-card p:first-child { margin-top: 0; }
.legal-placeholder { font-weight: 800; background: var(--warning); color: var(--warning-ink); padding: 1px 5px; border-radius: 5px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px 40px;
  max-width: 1052px;
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 54px) 58px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a { color: var(--ink); text-decoration: none; }

@media (max-width: 820px) {
  .summary-grid { grid-template-columns: 1fr; }
  .legal-shell { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { padding-inline: 16px; }
  .hero { padding-top: 44px; }
  .publication-blocker { margin-inline: 20px; }
  .toc ol { columns: 1; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .data-table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--clay); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .site-footer { flex-direction: column; }
}

@media print {
  .site-header, .toc, .skip-link { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .hero, .legal-shell { max-width: none; padding: 20px 0; display: block; }
  .summary-grid { display: none; }
  .legal-content section { break-inside: avoid; }
  a { color: inherit; }
}

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