:root {
  --paper: #f5f0e4;
  --paper-deep: #e9e0cd;
  --ink: #28342b;
  --muted: #6e766d;
  --green: #586b55;
  --green-dark: #354438;
  --green-light: #dbe3d4;
  --clay: #d37a5b;
  --line: rgba(40, 52, 43, .13);
  --white: rgba(255, 253, 247, .76);
  --shadow: 0 24px 64px rgba(47, 59, 49, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(217, 189, 148, .28), transparent 25%),
    radial-gradient(circle at 92% 8%, rgba(122, 145, 112, .17), transparent 25%),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid rgba(211, 122, 91, .35);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(40, 52, 43, .08);
  background: rgba(245, 240, 228, .88);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .06em;
}

.brand img {
  width: 38px;
  height: 38px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #536057;
  font-size: 14px;
}

.header-links a {
  text-underline-offset: 5px;
  text-decoration-color: transparent;
}

.header-links a:hover,
.header-links a[aria-current="page"] {
  color: var(--green-dark);
  text-decoration-color: var(--clay);
}

.hero {
  padding: 84px 0 62px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .15em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--clay);
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.hero-intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.version-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid rgba(40, 52, 43, .1);
  border-radius: 20px;
  background: rgba(255, 253, 247, .5);
  color: var(--muted);
  font-size: 14px;
}

.version-card strong { color: var(--ink); }

.version-card a {
  color: var(--green-dark);
  font-weight: 750;
  text-underline-offset: 4px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  padding: 58px 0 110px;
}

.toc {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 247, .45);
}

.toc strong {
  display: block;
  margin-bottom: 13px;
  font-size: 13px;
  letter-spacing: .12em;
}

.toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.toc a {
  text-decoration: none;
}

.toc a:hover { color: var(--clay); }

.legal-document {
  min-width: 0;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.notice {
  margin: 0 0 38px;
  padding: 20px 22px;
  border-left: 4px solid var(--clay);
  border-radius: 0 17px 17px 0;
  background: rgba(211, 122, 91, .08);
  line-height: 1.8;
}

.legal-section {
  scroll-margin-top: 105px;
  padding: 8px 0 30px;
}

.legal-section + .legal-section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.5;
}

p,
li {
  color: #4e5b52;
  font-size: 15px;
  line-height: 1.9;
}

p { margin: 12px 0; }

ul,
ol {
  padding-left: 23px;
}

li + li { margin-top: 8px; }

strong { color: var(--ink); }

.table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .34);
  font-size: 14px;
  line-height: 1.65;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green-dark);
  background: rgba(219, 227, 212, .45);
  font-weight: 800;
}

tr:last-child td { border-bottom: 0; }

.plain-link {
  color: var(--green-dark);
  font-weight: 750;
  text-underline-offset: 4px;
}

.contact-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: 20px;
  background: var(--green-dark);
  color: #fff8e9;
}

.contact-card p,
.contact-card strong {
  color: inherit;
}

.contact-card p { margin: 5px 0; }

.site-footer {
  padding: 48px 0 60px;
  background: #253128;
  color: #f9f2e3;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-copy {
  margin: 12px 0 0;
  color: rgba(249, 242, 227, .55);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 13px;
}

.footer-links a {
  color: rgba(249, 242, 227, .72);
  text-underline-offset: 4px;
}

.footer-links a:hover { color: #fff8e9; }

@media (max-width: 880px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }

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

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 68px; }
  .header-links a:first-child { display: none; }
  .hero { padding: 58px 0 43px; }
  .hero-intro { font-size: 15px; }
  .version-card { display: grid; gap: 8px; }
  .legal-layout { padding: 32px 0 72px; }
  .toc { padding: 18px; }
  .toc ol { grid-template-columns: 1fr; }
  .legal-document { padding: 25px 20px; border-radius: 25px; }
  .notice { padding: 17px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media print {
  body { background: #fff; }
  .site-header,
  .toc,
  .site-footer { display: none; }
  .hero { padding: 20px 0 30px; }
  .legal-layout { display: block; padding: 25px 0; }
  .legal-document { padding: 0; border: 0; box-shadow: none; }
  .legal-section { break-inside: avoid; }
}

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