:root {
  color-scheme: light dark;
  --canvas: #f7f5ee;
  --surface: #fffdf8;
  --surface-strong: #f0f7f1;
  --ink: #111a29;
  --muted: #667085;
  --line: #e4e2da;
  --mint: #2da982;
  --mint-strong: #19765c;
  --mint-soft: #dff3e9;
  --gold: #f4bd45;
  --gold-soft: #fff3ce;
  --focus: #1473e6;
  --shadow: 0 18px 45px rgba(30, 46, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Yu Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--mint-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-control label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.language-control select {
  min-width: 126px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
}

.page {
  padding: 62px 0 76px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint-strong);
  font-size: 14px;
  font-weight: 750;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero__intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero__meta {
  min-width: 180px;
  padding: 18px;
  border-radius: 12px;
  background: var(--surface-strong);
}

.hero__meta-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.hero__meta-value {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 720;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 42px;
}

.page-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.page-nav a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--mint) 45%, var(--line));
  background: var(--mint-soft);
  color: var(--mint-strong);
}

.notice {
  margin: 0 0 30px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--gold-soft);
}

.notice p {
  margin: 0;
}

.legal-content {
  max-width: 780px;
}

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  border-bottom: 0;
}

h2 {
  margin: 0 0 13px;
  font-size: 24px;
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

p {
  margin: 10px 0;
}

ul,
ol {
  margin: 12px 0;
  padding-left: 1.35em;
}

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

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: var(--surface);
  opacity: 0.9;
}

.button--secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

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

@media (max-width: 720px) {
  .site-header__inner,
  .page,
  .site-footer__inner {
    width: min(100% - 28px, 960px);
  }

  .language-control label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .language-control select {
    min-width: 112px;
  }

  .page {
    padding: 40px 0 54px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero__meta {
    min-width: 0;
  }

  .page-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-nav a {
    justify-content: center;
    text-align: center;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f1715;
    --surface: #17211e;
    --surface-strong: #1b2b25;
    --ink: #f2f6f4;
    --muted: #a7b3ad;
    --line: #33423c;
    --mint: #66d6b0;
    --mint-strong: #8be2c3;
    --mint-soft: #183b30;
    --gold: #f2c45b;
    --gold-soft: #332d1f;
    --focus: #7fb8ff;
    --shadow: none;
  }
}

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