:root {
  --ink: #22231d;
  --ink-soft: #515247;
  --muted: #777567;
  --olive: #6f7f43;
  --olive-dark: #4f5d30;
  --cream: #f7f2e7;
  --cream-deep: #ece2d2;
  --line: #ddd7ca;
  --white: #fff;
  --container: 1160px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: var(--olive) var(--cream);
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--cream); }
html::-webkit-scrollbar-thumb { border: 2px solid var(--cream); border-radius: 999px; background: var(--olive); }
html::-webkit-scrollbar-thumb:hover { background: var(--olive-dark); }
body { min-width: 320px; min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.65; }
body.nav-open { overflow: hidden; }
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(105, 115, 74, .38); outline-offset: 4px; border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(37, 37, 31, .09); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand, .footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; }
.brand-wordmark { font-size: 1.25rem; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { padding: 8px 0; color: var(--ink-soft); font-size: .94rem; font-weight: 680; }
.nav-link:hover, .nav-link-active { color: var(--olive-dark); }
.language-menu { position: relative; }
.language-menu summary { display: flex; gap: 7px; align-items: center; padding: 8px 0; color: var(--ink-soft); font-size: .94rem; font-weight: 680; cursor: pointer; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: "▾"; color: var(--olive-dark); font-size: .72rem; transition: transform .18s ease; }
.language-menu[open] summary::after { transform: rotate(180deg); }
.language-options { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; min-width: 174px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 18px 45px rgba(34, 35, 29, .14); }
.language-option { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
a.language-option:hover { color: var(--olive-dark); background: var(--cream); }
.language-link-active { color: var(--ink); background: var(--cream); font-weight: 760; }
.nav-toggle { display: none; align-items: center; gap: 10px; padding: 8px 0; border: 0; color: var(--ink); background: none; font-weight: 700; cursor: pointer; }
.nav-toggle-icon { width: 22px; display: grid; gap: 5px; }
.nav-toggle-icon span { height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }

.content-page-main { padding: 72px 0 92px; }
.content-page-shell { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.content-page-card { width: 100%; padding: clamp(34px, 6vw, 72px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.content-page-card h1 { max-width: 17ch; margin: 0 0 34px; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; }
.content-page-meta { margin: -18px 0 30px; color: var(--muted); font-size: .9rem; }
.content-prose { max-width: 800px; }
.content-prose h2 { margin: 38px 0 12px; color: var(--ink); font-size: 1.22rem; line-height: 1.3; }
.content-prose p, .content-prose li { color: var(--ink-soft); }
.content-prose p { margin: 0; }
.content-prose p + p { margin-top: 12px; }
.content-prose ul { margin: 12px 0 0; padding-left: 22px; }
.content-prose li + li { margin-top: 7px; }
.legal-prose a { color: var(--olive-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-prose .meta { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.legal-prose section:first-of-type h2 { margin-top: 0; }
.legal-prose ol { margin: 12px 0 0; padding-left: 22px; }
.document-source { margin: 0 0 34px; padding: 20px; border: 1px solid #cbd3ad; border-radius: 14px; background: #f3f6e9; }
.document-source p { margin: 0; }
.document-translation-note { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.document-download { display: inline-flex; margin-top: 16px; padding: 10px 15px; border-radius: 10px; color: #fff !important; background: var(--olive-dark); font-weight: 720; text-decoration: none !important; }
.document-download:hover { background: var(--olive); }
.document-history { margin-top: 18px; border-top: 1px solid #d6dcc1; padding-top: 14px; }
.document-history summary { color: var(--olive-dark); font-weight: 720; cursor: pointer; }
.document-history ul { margin: 12px 0 8px; padding-left: 20px; }
.document-history p { color: var(--muted); font-size: .9rem; }
.pdf-document-copy { border-top: 1px solid var(--line); padding-top: 8px; }
.document-inventory { display: grid; gap: 8px; padding-left: 20px; font-size: .9rem; }
.legal-prose code { padding: 2px 5px; border-radius: 5px; background: var(--cream); font-size: .9em; overflow-wrap: anywhere; }
.legal-prose pre { max-width: 100%; overflow-x: auto; }
.legal-prose table { width: 100%; margin-top: 18px; border-collapse: collapse; display: block; overflow-x: auto; }
.legal-prose th, .legal-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-index-intro { max-width: 680px; margin: 0 0 34px; color: var(--ink-soft); }
.legal-index-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.legal-index-list li { margin: 0; border-bottom: 1px solid var(--line); }
.legal-index-list a { display: grid; grid-template-columns: minmax(180px, .7fr) 1.3fr auto; gap: 24px; align-items: center; padding: 22px 4px; text-decoration: none; }
.legal-index-list a:hover strong { color: var(--olive-dark); }
.legal-index-list strong { color: var(--ink); font-size: 1.04rem; }
.legal-index-list span { color: var(--ink-soft); }
.legal-index-list a::after { content: "→"; color: var(--olive-dark); font-size: 1.2rem; }
.content-page-lines { margin-top: 20px !important; color: var(--ink) !important; font-weight: 650; }

.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 0 20px; }
.faq-item summary { position: relative; padding: 18px 34px 18px 0; cursor: pointer; list-style: none; font-weight: 720; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 50%; right: 2px; color: var(--olive-dark); font-size: 1.25rem; transform: translateY(-50%); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); }

.site-footer { flex-shrink: 0; padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; }
.footer-logo { color: var(--ink); font-size: 1.25rem; }
.footer-logo-mark { width: 38px; height: 38px; }
.footer-description, .footer-credit, .footer-copyright, .footer-block p { color: var(--ink-soft); }
.footer-description { max-width: 270px; margin: 18px 0 0; }
.footer-credit, .footer-copyright { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.footer-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.footer-block h2 { margin: 0 0 16px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-block p { margin: 8px 0; font-size: .88rem; }
.footer-block a:hover, .legal-inline-link:hover { color: var(--olive-dark); text-decoration: underline; }

@media (max-width: 768px) {
  .container, .content-page-shell { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 12px 16px 22px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 14px 24px rgba(37, 37, 31, .08); }
  .nav-open .main-nav { display: grid; }
  .nav-open .nav-toggle-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .nav-toggle-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-link { padding: 12px 0; }
  .language-menu summary { padding: 12px 0; }
  .language-options { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; box-shadow: none; }
  .content-page-main { padding: 46px 0 64px; }
  .content-page-card { padding: 34px 28px; }
  .legal-index-list a { grid-template-columns: 1fr auto; gap: 6px 18px; }
  .legal-index-list span { grid-column: 1; }
  .legal-index-list a::after { grid-column: 2; grid-row: 1 / span 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 520px) {
  .container, .content-page-shell { width: calc(100% - 24px); }
  .brand-mark { width: 32px; height: 32px; }
  .nav-toggle-label { display: none; }
  .content-page-main { padding: 28px 0 48px; }
  .content-page-card { padding: 28px 20px; border-radius: 18px; }
  .content-page-card h1 { margin-bottom: 26px; font-size: 2.45rem; }
  .footer-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
