:root {
  color-scheme: light;
  --background: #f6f8f7;
  --surface: #ffffff;
  --text: #13201c;
  --muted: #5f6f68;
  --accent: #126a5b;
  --accent-hover: #0f574b;
  --accent-soft: #eef6f3;
  --border: #dde6e2;
  --shadow: 0 18px 48px rgba(19, 32, 28, 0.08);
  --radius: 8px;
  --measure: 72ch;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(18, 106, 91, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(246, 248, 247, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.section-inner,
.legal-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 720;
  text-decoration: none;
}

.brand img,
.icon-frame img {
  border-radius: 22%;
}

.brand img {
  width: 36px;
  height: 36px;
  box-shadow: 0 8px 18px rgba(19, 32, 28, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 640;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 76px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.hero h1,
.page-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero p,
.page-title p {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.7;
}

.hero-actions,
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.1;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: #c7d6d1;
  color: var(--text);
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.icon-frame {
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
}

.hero-panel h2,
.document-card h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.hero-panel p,
.document-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.meta-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  font-size: 0.92rem;
}

.meta-row span:first-child {
  color: var(--muted);
}

.meta-row span:last-child {
  color: var(--text);
  font-weight: 680;
  text-align: right;
}

.section-band {
  border-top: 1px solid var(--border);
  padding: 48px 0 72px;
}

.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.12;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.document-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.document-card a {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 720;
}

.page-title {
  padding: 56px 0 34px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  padding: 18px 0 76px;
}

.legal-article {
  max-width: var(--measure);
}

.legal-article header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.legal-article h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: 0;
  line-height: 1.04;
}

.legal-article .effective-date {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.legal-article h2 {
  margin: 2.1rem 0 0.7rem;
  font-size: 1.45rem;
  line-height: 1.24;
}

.legal-article h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.legal-article p,
.legal-article li {
  color: #25362f;
}

.legal-article ul {
  padding-left: 1.25rem;
}

.legal-article code,
.inline-code {
  border-radius: 5px;
  background: var(--accent-soft);
  color: #164f45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.08rem 0.28rem;
}

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

.toc h2 {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}

.toc ol {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

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

.notice {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner,
  .section-inner,
  .legal-layout {
    width: min(100% - 28px, 1120px);
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 48px 0 36px;
  }

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

  .hero-grid,
  .legal-layout {
    gap: 28px;
  }

  .hero h1,
  .page-title h1,
  .legal-article h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 18px 0 0;
  }
}

@media (max-width: 520px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-actions,
  .doc-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .meta-row span:last-child {
    text-align: left;
  }
}
