:root {
  color-scheme: light;
  --paper: #fffdf7;
  --ink: #17211d;
  --muted: #5c6862;
  --line: #d9e0dc;
  --leaf: #0f766e;
  --leaf-dark: #0b514c;
  --clay: #b85c38;
  --mist: #eef6f3;
  --sun: #f7d47b;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
}

a {
  color: var(--leaf-dark);
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 22px 0;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.14);
}

.brand strong {
  display: block;
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand span span {
  display: block;
  color: var(--muted);
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  line-height: 1.3;
}

.language-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.language-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
}

.language-nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--leaf-dark);
}

.policy-shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: end;
  padding: 58px 0 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 14px;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
}

.effective-date {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  padding: 5px 10px;
  border: 1px solid rgba(184, 92, 56, 0.35);
  border-radius: 6px;
  color: var(--clay);
  background: rgba(247, 212, 123, 0.25);
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.84rem;
  line-height: 1.3;
}

.trust-panel {
  border-left: 3px solid var(--leaf);
  padding: 18px 0 18px 18px;
  background: linear-gradient(90deg, var(--mist), rgba(238, 246, 243, 0));
}

.trust-panel strong {
  display: block;
  margin-bottom: 6px;
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
}

.policy {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  padding-top: 44px;
}

.toc {
  position: sticky;
  top: 18px;
  align-self: start;
  padding-top: 4px;
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--clay);
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

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

.policy-content section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.policy-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.policy-content h2 {
  margin: 0 0 14px;
  font-size: 1.34rem;
  line-height: 1.3;
}

.policy-content p {
  margin: 0 0 14px;
}

.policy-content p:last-child,
.policy-content ul:last-child {
  margin-bottom: 0;
}

.policy-content ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
}

.policy-content li {
  margin: 5px 0;
}

.callout {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 92, 56, 0.32);
  border-radius: 8px;
  color: #6f341f;
  background: #fff3df;
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.92rem;
}

.site-footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  html {
    font-size: 16px;
  }

  .site-header {
    width: min(100% - 28px, var(--max));
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-shell,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 0 34px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .policy {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--line);
  }
}

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

  .policy-shell {
    width: 100%;
    margin: 0;
  }

  .hero,
  .policy {
    display: block;
    padding: 0;
    border: 0;
  }

  .policy-content section {
    break-inside: avoid;
  }
}
