:root {
  --brand: #ff6a00;
  --brand-deep: #d95000;
  --ink: #20252b;
  --muted: #636b74;
  --line: #dfe3e7;
  --line-strong: #c8ced4;
  --paper: #ffffff;
  --canvas: #f3f5f6;
  --warm: #fff6ee;
  --green: #226b52;
  --green-soft: #edf6f2;
  --header: #182028;
  --focus: #1877d2;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

a:focus-visible {
  outline: 3px solid rgba(24, 119, 210, 0.45);
  outline-offset: 3px;
}

code {
  padding: 0.1em 0.42em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f0f2f3;
  color: #39424b;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 8px 12px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--header);
  border-bottom: 3px solid var(--brand);
}

.header-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #b8c0c8;
  font-size: 10px;
  line-height: 1.3;
}

.header-link {
  flex: none;
  color: #e8edf1;
  font-size: 14px;
  text-decoration: none;
}

.header-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.policy-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #25313b;
  border-bottom: 1px solid #3c4852;
}

.policy-hero::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: -94px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(255, 106, 0, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffab71;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 670px;
  margin: 20px 0 0;
  color: #d7dde2;
  font-size: 17px;
  line-height: 1.8;
}

.meta-list {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.meta-list div {
  min-width: 148px;
  padding-left: 12px;
  border-left: 2px solid var(--brand);
}

.meta-list dt {
  color: #aeb7bf;
  font-size: 12px;
}

.meta-list dd {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.policy-layout {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 18px 0 18px 18px;
  border-left: 3px solid var(--brand);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.toc nav {
  display: grid;
  gap: 7px;
}

.toc a {
  color: #505963;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--brand-deep);
}

.policy-article {
  min-width: 0;
  padding: 0 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(29, 40, 50, 0.06);
}

.policy-article section {
  position: relative;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.policy-article section:last-child {
  border-bottom: 0;
}

.section-number {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.policy-article h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: 0;
}

.policy-article p {
  margin: 0 0 15px;
  color: #4b545e;
}

.policy-article p:last-child {
  margin-bottom: 0;
}

.policy-article ul {
  margin: 10px 0 16px;
  padding-left: 1.25em;
  color: #4b545e;
}

.policy-article li {
  margin: 7px 0;
  padding-left: 4px;
}

.policy-article li::marker {
  color: var(--brand);
}

.data-table {
  margin: 22px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.data-row > span {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  color: #4b545e;
  font-size: 14px;
  line-height: 1.65;
}

.data-row:last-child > span {
  border-bottom: 0;
}

.data-row > span:first-child {
  border-right: 1px solid var(--line);
  background: #f8f9fa;
  color: #323a43;
  font-weight: 700;
}

.data-head > span {
  background: #293640;
  color: #ffffff;
  font-weight: 700;
}

.data-head > span:first-child {
  background: #293640;
  color: #ffffff;
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  color: #355348;
  font-size: 14px;
  line-height: 1.7;
}

.notice strong {
  flex: none;
  color: var(--green);
}

.permission-list {
  margin: 18px 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.permission-list > div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.permission-list dt {
  color: #313942;
  font-weight: 700;
}

.permission-list dd {
  margin: 0;
  color: #5a626b;
  font-size: 14px;
}

.contact-section {
  background: var(--warm);
  margin: 0 -56px;
  padding-right: 56px !important;
  padding-left: 56px !important;
  border-radius: 0 0 var(--radius) var(--radius);
}

.contact-link {
  margin-top: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e7cbb8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.contact-link span {
  color: var(--muted);
  font-size: 13px;
}

.contact-link strong {
  overflow-wrap: anywhere;
  color: var(--brand-deep);
  font-size: 14px;
}

.site-footer {
  padding: 28px 0;
  color: #b9c1c8;
  background: var(--header);
}

.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-meta {
  display: grid;
  gap: 8px;
}

.footer-links,
.footer-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-inner a {
  color: #d9e0e5;
  text-decoration: none;
}

.footer-record {
  gap: 8px 12px;
  color: #c8d0d6;
}

.footer-record a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.record-icon {
  width: 18px;
  height: 20px;
  flex: none;
  object-fit: contain;
}

.record-separator {
  color: #77838c;
}

.footer-inner a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }

  .toc {
    position: static;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--paper);
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .hero-inner,
  .policy-layout,
  .footer-inner {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .header-link {
    font-size: 13px;
  }

  .hero-inner {
    padding: 40px 0 34px;
  }

  .policy-hero::after {
    right: -110px;
    bottom: -120px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .meta-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .meta-list div {
    min-width: 0;
  }

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

  .policy-article {
    padding: 0 20px;
  }

  .policy-article section {
    padding: 34px 0 32px;
  }

  .policy-article h2 {
    font-size: 22px;
  }

  .data-row {
    grid-template-columns: 1fr;
  }

  .data-row > span:first-child {
    padding-bottom: 5px;
    border-right: 0;
    border-bottom: 0;
  }

  .data-row > span:last-child {
    padding-top: 5px;
  }

  .data-head {
    display: none;
  }

  .notice,
  .permission-list > div,
  .contact-link,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: start;
  }

  .footer-record {
    align-items: flex-start;
  }

  .notice,
  .contact-link,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .permission-list > div {
    display: grid;
    gap: 3px;
  }

  .contact-section {
    margin: 0 -20px;
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .contact-link {
    width: 100%;
  }
}

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

@media print {
  .site-header,
  .toc,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .policy-hero {
    color: var(--ink);
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  .hero-summary,
  .eyebrow {
    color: var(--muted);
  }

  .policy-layout {
    display: block;
    width: 100%;
    padding: 0;
  }

  .policy-article {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
