:root {
  --paper: #fffaf0;
  --paper-strong: #fff4dd;
  --pear: #8ea642;
  --pear-soft: #e9efc7;
  --leaf: #315b49;
  --blue: #537f93;
  --gold: #d9a43a;
  --rose: #c06a52;
  --ink: #2c2318;
  --muted: #6f6254;
  --line: rgba(68, 52, 33, 0.16);
  --shadow: 0 24px 70px rgba(79, 58, 32, 0.13);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    linear-gradient(125deg, rgba(220, 238, 243, 0.78), transparent 36%),
    linear-gradient(315deg, rgba(246, 201, 143, 0.42), transparent 42%),
    var(--paper);
}

a {
  color: var(--leaf);
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
}

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

.brand-mark {
  width: 120px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(70, 52, 30, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  line-height: 1.05;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  max-width: 290px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(74, 57, 34, 0.09);
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a:hover {
  color: var(--leaf);
  background: var(--pear-soft);
}

.hero {
  margin: 22px 0 22px;
  padding: clamp(30px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff8e8, #e9f1d0 58%, #dceef3);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.94;
  text-wrap: balance;
}

.intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 0 72px;
}

.toc,
.legal-content {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 52px rgba(80, 62, 37, 0.08);
}

.toc {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

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

.legal-content {
  padding: clamp(22px, 4vw, 42px);
}

.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(68, 52, 33, 0.12);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.08;
}

.legal-section h3 {
  margin: 22px 0 8px;
  font-size: 1.26rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-section p {
  margin: 0;
}

.legal-content,
.toc,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section ol + p {
  margin-top: 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.note {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(192, 106, 82, 0.22);
  border-radius: 14px;
  background: rgba(246, 201, 143, 0.22);
  color: var(--muted);
  line-height: 1.65;
}

.placeholder {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pear-soft);
  color: var(--leaf);
  font-weight: 850;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 30px 0 44px;
  color: var(--muted);
  border-top: 1px solid rgba(68, 52, 33, 0.1);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--leaf);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 22px, 1040px);
  }

  .brand-mark {
    width: 92px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 1.03rem;
  }

  .brand-text span {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .brand-text small {
    max-width: 210px;
    font-size: 0.68rem;
  }

  .hero {
    border-radius: 22px;
    padding: 26px;
  }
}
