:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #68727d;
  --line: #dfe4e8;
  --soft: #f5f7f8;
  --brand: #d92d20;
  --brand-dark: #a91f17;
  --accent: #087e6b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #056554; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 10px max(22px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.language-switcher button {
  min-width: 64px;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.language-switcher button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(24, 33, 43, .12);
  font-weight: 650;
}

.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 22px 88px;
}

.legal-nav {
  position: sticky;
  top: 106px;
  align-self: start;
}

.legal-nav strong {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 7px 0 7px 13px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.legal-nav a:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.legal-article { min-width: 0; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 760;
}

.summary {
  max-width: 680px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 17px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 44px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

section { scroll-margin-top: 90px; }

h2 {
  margin: 42px 0 12px;
  font-size: 21px;
  line-height: 1.45;
}

p { margin: 10px 0; }

ul { margin: 10px 0; padding-left: 22px; }
li { margin: 7px 0; }

.notice {
  margin: 26px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: #f1f8f6;
  color: #244b44;
}

.contact {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px 36px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.site-footer a { margin: 0 8px; }

[data-language-panel][hidden] { display: none !important; }

@media (max-width: 760px) {
  .site-header { padding: 10px 16px; }
  .brand span:last-child { display: none; }
  .language-switcher button { min-width: 52px; padding: 6px 8px; }
  .legal-shell { display: block; padding: 34px 20px 64px; }
  .legal-nav { display: none; }
  h1 { font-size: 30px; }
  .summary { font-size: 15px; }
  h2 { margin-top: 34px; font-size: 19px; }
}

@media print {
  .site-header, .legal-nav, .site-footer { display: none; }
  .legal-shell { display: block; max-width: none; padding: 0; }
  [data-language-panel][hidden] { display: none !important; }
}
