:root {
  color-scheme: light dark;
  --ink: #15251e;
  --muted: #52645b;
  --paper: #fffdf8;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(21, 37, 30, 0.13);
  --leaf: #176b4d;
  --leaf-dark: #0e4f38;
  --coral: #d94d39;
  --cream: #f6eee1;
  --shadow: 0 20px 60px rgba(27, 56, 43, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 188, 153, 0.40), transparent 34rem),
    radial-gradient(circle at 95% 22%, rgba(155, 220, 185, 0.34), transparent 30rem),
    var(--paper);
  font: 16px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--leaf-dark); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #0b6fbd;
  outline-offset: 4px;
  border-radius: 6px;
}

.shell { width: min(100% - 32px, 960px); margin-inline: auto; }

header { padding: 24px 0 8px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 760; text-decoration: none; letter-spacing: -0.02em; }
.brand-icon { width: 40px; height: 40px; display: block; border-radius: 11px; box-shadow: 0 7px 18px rgba(72, 56, 35, 0.20); }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 650; text-decoration: none; }

main { padding: 64px 0 88px; }
.hero { max-width: 760px; margin-bottom: 46px; }
.eyebrow { margin: 0 0 13px; color: var(--coral); font-size: 0.78rem; font-weight: 780; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -0.035em; }
h1 { margin: 0 0 20px; max-width: 13ch; font-size: clamp(2.7rem, 8vw, 5.4rem); }
h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { margin: 0 0 8px; font-size: 1.08rem; }
.lead { max-width: 66ch; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.27rem); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card, .content-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}
.card { min-height: 240px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.card .icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 16px; color: var(--leaf-dark); background: #e2f0e8; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0 0 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: auto; padding: 10px 17px; border-radius: 15px; color: white; background: var(--leaf-dark); font-weight: 720; text-decoration: none; }
.button:hover { background: var(--leaf); }

.content-card { padding: clamp(22px, 5vw, 48px); }
.language-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.language-jump a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); font-size: .88rem; font-weight: 680; text-decoration: none; }
.policy-section + .policy-section { margin-top: 64px; padding-top: 54px; border-top: 1px solid var(--line); }
.policy-section h2 { margin-top: 38px; }
.policy-section h3 { margin-top: 28px; }
.policy-section p, .policy-section li { max-width: 74ch; color: var(--muted); }
.policy-section strong { color: var(--ink); }
.policy-section ul { padding-left: 1.2rem; }
.updated { color: var(--muted); font-size: .9rem; }
.notice { margin: 26px 0; padding: 18px 20px; border-left: 4px solid var(--coral); border-radius: 4px 16px 16px 4px; background: rgba(246, 238, 225, .88); }

details { padding: 20px 0; border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--ink); font-weight: 720; }
details p { margin: 12px 0 0; }

footer { padding: 24px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-row p { margin: 0; }

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 960px); }
  .nav { align-items: flex-start; }
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  main { padding-top: 42px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 210px; }
  h1 { font-size: clamp(2.55rem, 15vw, 4.2rem); }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f6f3;
    --muted: #b8c4bd;
    --paper: #101713;
    --surface: rgba(27, 39, 33, .82);
    --line: rgba(235, 243, 238, .14);
    --leaf-dark: #8fd4b0;
    --cream: #29231e;
    --shadow: 0 20px 60px rgba(0,0,0,.25);
  }
  body { background: radial-gradient(circle at 12% 0%, rgba(130, 55, 42, .32), transparent 34rem), radial-gradient(circle at 95% 22%, rgba(31, 104, 73, .28), transparent 30rem), var(--paper); }
  .language-jump a { background: rgba(255,255,255,.06); }
  .notice { background: rgba(67, 49, 39, .72); }
  .card .icon { color: #a8dfc2; background: #18392b; }
}
