:root {
  --ink: #17233b;
  --muted: #667189;
  --canvas: #f3f6fb;
  --surface: #ffffff;
  --line: #dfe5ef;
  --blue: #3457d5;
  --blue-soft: #e9efff;
  --teal: #16877a;
}

body {
  color: var(--ink);
  background: var(--canvas);
}

.reading-progress {
  background: linear-gradient(90deg, var(--blue), #6684ef, var(--teal));
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(36, 50, 79, 0.04);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #6d52ce);
  box-shadow: 0 8px 19px rgba(52, 87, 213, 0.23);
}

.language-control label {
  color: var(--muted);
}

.language-select {
  border: 1px solid #cfd7e5;
  color: var(--ink);
  background-color: #fff;
}

.hero-wrap {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(
      circle at 85% 18%,
      rgba(52, 87, 213, 0.1),
      transparent 25rem
    ),
    linear-gradient(180deg, #fff, #f8faff);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 70px;
  padding: 70px 0 58px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 68px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.hero-subtitle {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.policy-note {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #794d17;
  background: #fff3d9;
  font-size: 12px;
  font-weight: 680;
}

.hero-meta {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 34px rgba(36, 50, 79, 0.08);
}

.meta-row {
  display: flex;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.meta-row:last-child {
  border-bottom: 0;
}

.meta-label {
  color: var(--muted);
}

.meta-value {
  font-weight: 730;
  text-align: right;
}

.reader-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 250px;
  gap: 46px;
  padding: 54px 0 88px;
  align-items: start;
}

.toc-panel,
.summary-panel {
  position: sticky;
  top: 100px;
}

.toc-panel {
  max-height: calc(100vh - 124px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.toc-heading {
  margin: 0 0 16px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-list {
  flex-direction: column;
}

.toc-list a {
  position: relative;
  padding: 9px 12px 9px 24px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  transition: color 150ms ease, background 150ms ease;
}

.toc-list a::before {
  position: absolute;
  top: 50%;
  left: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c5cedd;
  transform: translateY(-50%);
  content: "";
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.toc-list a.is-active::before {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(52, 87, 213, 0.12);
}

.policy-document {
  min-width: 0;
}

.policy-section {
  position: relative;
  padding: 0 0 42px 30px;
  border-left: 1px solid #d9e0ec;
}

.policy-section + .policy-section {
  padding-top: 44px;
}

.policy-section::before {
  position: absolute;
  top: 9px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px var(--canvas);
  content: "";
}

.policy-section + .policy-section::before {
  top: 53px;
}

.policy-section h2 {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.28;
}

.section-number {
  min-width: 38px;
  height: 26px;
  margin-top: 2px;
  border-radius: 7px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 850;
}

.policy-section p,
.policy-section li {
  color: #59657c;
  font-size: 15.5px;
}

.policy-section p {
  margin: 19px 0 0;
}

.policy-section ul {
  padding: 18px 20px 18px 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.policy-section li + li {
  margin-top: 7px;
}

.summary-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 50, 79, 0.06);
}

.summary-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 19px;
  font-weight: 850;
}

.summary-panel h2,
.summary-panel p {
  margin: 0;
}

.summary-panel h2 {
  font-size: 17px;
}

.summary-panel p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.summary-panel hr {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--line);
}

.contact-label,
.contact-hint {
  display: block;
}

.contact-label {
  font-size: 12px;
  font-weight: 760;
}

.contact-hint {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.summary-panel a {
  display: block;
  margin-top: 13px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.mobile-toc {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-inner {
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.noscript-notice {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid #e8c981;
  border-radius: 12px;
  color: #70470f;
  background: #fff6dd;
  font-size: 14px;
  line-height: 1.7;
}

.back-to-top {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 13px 30px rgba(52, 87, 213, 0.28);
}

@media (max-width: 1080px) {
  .reader-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .summary-panel {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
  }

  .summary-icon,
  .summary-panel hr {
    margin: 0;
  }

  .summary-panel hr {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 52px;
  }

  .reader-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 30px;
  }

  .toc-panel {
    display: none;
  }

  .mobile-toc {
    display: block;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
  }

  .mobile-toc .toc-heading {
    margin-left: 7px;
  }

  .mobile-toc .toc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-panel {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .page-shell,
  .site-footer-inner {
    width: min(100% - 28px, 1240px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 57px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .mobile-toc .toc-list {
    grid-template-columns: 1fr;
  }

  .policy-section {
    padding-left: 20px;
  }

  .policy-section h2 {
    gap: 10px;
    font-size: 24px;
  }

  .policy-section p,
  .policy-section li {
    font-size: 15px;
  }

  .summary-panel {
    display: block;
  }

  .summary-icon {
    margin-bottom: 16px;
  }

  .summary-panel hr {
    display: block;
    margin: 20px 0;
  }
}
