:root {
  color-scheme: light dark;
  --bg: #f7f9f8;
  --surface: #ffffff;
  --text: #17201d;
  --muted: #5f6d67;
  --line: #dce5e0;
  --brand: #229a8d;
  --brand-strong: #117a71;
  --focus: #68d67c;
  --max: 780px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-strong); }
a:hover { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { display: block; border-radius: 7px; }

.primary-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
  white-space: nowrap;
}

.primary-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active { color: var(--text); }

.primary-nav a.active { font-weight: 700; }

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 20px 76px;
}

.page-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 12px;
}

.language-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.language-nav a.active { color: var(--text); font-weight: 700; }

.legal-document { background: var(--surface); border: 1px solid var(--line); padding: 30px 24px 38px; }

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.effective { margin: 12px 0 28px; color: var(--muted); font-size: 13px; }

.lead {
  margin: 0 0 36px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

.legal-section { border-top: 1px solid var(--line); padding: 25px 0 3px; }
.legal-section:first-of-type { padding-top: 27px; }
.legal-section h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.35; }
.legal-section p { margin: 0 0 14px; color: var(--text); }
.legal-section ul, .legal-section ol { margin: 8px 0 15px; padding-left: 24px; }
.legal-section li { margin: 7px 0; padding-left: 4px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 34px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p { margin: 0; }

@media (max-width: 620px) {
  .header-inner { display: block; padding: 16px 16px 13px; }
  .primary-nav { margin-top: 13px; gap: 14px; }
  .page-shell { padding: 30px 14px 54px; }
  .page-tools { display: block; margin-bottom: 22px; }
  .language-nav { justify-content: flex-start; margin-top: 10px; gap: 5px 14px; }
  .legal-document { padding: 24px 18px 30px; }
  .lead { font-size: 17px; }
  .site-footer { display: block; padding: 16px 14px 28px; }
  .site-footer p + p { margin-top: 6px; }
}

@media (min-width: 621px) {
  h1 { font-size: 46px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513;
    --surface: #151c19;
    --text: #e9f1ed;
    --muted: #a4b2ac;
    --line: #2a3832;
    --brand: #68d67c;
    --brand-strong: #7be4a0;
    --focus: #b7f5bf;
  }
  .site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); }
}
