:root {
  color: #17211d;
  background: #f7f6f1;
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(47, 107, 85, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 85, 0.045) 1px, transparent 1px),
    #f7f6f1;
  background-size: 32px 32px;
}

a {
  color: #2f6b55;
  text-decoration-color: rgba(47, 107, 85, 0.35);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid #2f6b55;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  color: #f7f6f1;
  background: #17211d;
  transform: translateY(-180%);
}

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 22px;
  border-bottom: 1px solid rgba(23, 33, 29, 0.16);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  fill: #dce8e0;
  stroke: #2f6b55;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand span {
  display: grid;
  line-height: 1.25;
}

.brand strong {
  letter-spacing: 0.08em;
}

.brand small,
.language-link {
  color: #726f67;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 790px);
  gap: clamp(48px, 8vw, 124px);
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0 120px;
}

.policy-aside {
  align-self: start;
  position: sticky;
  top: 32px;
  padding-top: 10px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #2f6b55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  color: #17211d;
  font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 17em;
  margin: 30px 0 38px;
  color: #4d534f;
  font-size: 1.02rem;
}

.policy-meta {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid rgba(23, 33, 29, 0.16);
  border-bottom: 1px solid rgba(23, 33, 29, 0.16);
}

.policy-meta div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
}

.policy-meta dt {
  color: #726f67;
  font-size: 0.78rem;
}

.policy-meta dd {
  margin: 0;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

code {
  color: #2f6b55;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.78rem;
}

.section-nav {
  display: grid;
  gap: 7px;
  margin-top: 28px;
}

.section-nav a {
  color: #4d534f;
  font-size: 0.86rem;
  text-decoration: none;
}

.section-nav a::before {
  content: "—";
  margin-right: 9px;
  color: #a0a39f;
}

.section-nav a:hover {
  color: #2f6b55;
}

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

.opening-statement,
.policy-section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
}

.opening-statement {
  margin-bottom: 72px;
  padding: 38px 44px 42px;
  background: #17211d;
  color: #e8eee9;
  box-shadow: 18px 18px 0 #dce8e0;
}

.opening-statement h2 {
  color: #f7f6f1;
}

.opening-statement .section-number {
  color: #8bb9a5;
}

.policy-section {
  padding: 44px 0 50px;
  border-top: 1px solid rgba(23, 33, 29, 0.16);
}

.section-number {
  padding-top: 0.45rem;
  color: #2f6b55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  margin: 32px 0 10px;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.8rem;
}

li::marker {
  color: #2f6b55;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 12px 0 24px;
  list-style: none;
}

.link-list li + li {
  margin-top: 0;
}

.permission-list {
  margin: 0;
}

.permission-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(23, 33, 29, 0.18);
}

.permission-list dt {
  color: #2f6b55;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.permission-list dd {
  margin: 0;
}

.limited-use {
  margin: 52px 0;
  padding: 32px 36px;
  border-left: 5px solid #2f6b55;
  background: #dce8e0;
}

.limited-use h2 {
  font-size: 1.55rem;
}

.english-policy {
  margin-left: 66px;
  padding-top: 62px;
  border-top: 4px solid #17211d;
}

.english-policy p {
  color: #414844;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid rgba(23, 33, 29, 0.16);
  color: #726f67;
  font-size: 0.78rem;
}

@media (max-width: 840px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .policy-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
    gap: 0 40px;
  }

  .policy-aside .eyebrow,
  .policy-aside h1,
  .policy-aside .lead {
    grid-column: 1;
  }

  .policy-meta {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .section-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .masthead,
  .policy-layout,
  footer {
    width: min(100% - 32px, 1220px);
  }

  .masthead {
    padding-top: 18px;
  }

  .language-link {
    font-size: 0.7rem;
  }

  .policy-layout {
    padding-top: 54px;
  }

  .policy-aside {
    display: block;
  }

  .policy-meta {
    margin-top: 30px;
  }

  .opening-statement,
  .policy-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .opening-statement {
    margin-right: 10px;
    padding: 28px 24px 30px;
    box-shadow: 10px 10px 0 #dce8e0;
  }

  .policy-section {
    padding: 36px 0 42px;
  }

  .permission-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .limited-use {
    padding: 26px 24px;
  }

  .english-policy {
    margin-left: 0;
  }

  footer {
    display: grid;
  }
}

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