:root {
  color-scheme: light dark;
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --text: #14221b;
  --muted: #526158;
  --primary: #145c3d;
  --primary-strong: #0b442c;
  --accent: #d3a53e;
  --border: #dbe4df;
  --shadow: 0 20px 60px rgba(20, 63, 43, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 0%, rgba(211, 165, 62, .13), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-strong); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-strong);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.brand span:last-child { display: grid; line-height: 1.25; }
.brand small { color: var(--muted); }

.app-switcher { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.app-switcher a { min-height: 42px; padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 700; }
.app-switcher a[aria-current="page"] { background: var(--primary); color: #fff; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 48px;
  align-items: end;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 32px;
  background: linear-gradient(135deg, #0b442c 0%, #176a47 70%, #246e50 100%);
  box-shadow: var(--shadow);
  color: #fff;
}
.eyebrow { margin: 0 0 8px; color: #f0d791; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.05; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 20px 0 0; color: #e4eee8; font-size: clamp(1rem, 2vw, 1.2rem); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; color: #c9ddd2; font-size: .9rem; }
.app-details { display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); }
.app-details div { padding: 16px 18px; background: rgba(4,35,21,.25); }
.app-details dt { color: #c9ddd2; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.app-details dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 700; }

.policy-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin-block: 40px 72px; }
.toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.toc strong { display: block; margin-bottom: 12px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.toc nav { display: grid; gap: 2px; }
.toc a { padding: 7px 9px; border-radius: 8px; color: var(--muted); font-size: .88rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { background: var(--surface-soft); color: var(--primary); }

.policy-card { padding: clamp(26px, 5vw, 64px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.policy-card h2,
.policy-card h3 { scroll-margin-top: 24px; color: var(--primary-strong); line-height: 1.3; }
.policy-card h2 { margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--border); font-size: clamp(1.45rem, 3vw, 2rem); }
.policy-card h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy-card h3 { margin: 34px 0 10px; font-size: 1.15rem; }
.policy-card p { margin: 0 0 18px; color: var(--muted); }
.policy-card ul { margin: 0 0 24px; padding-left: 22px; color: var(--muted); }
.policy-card li { margin-block: 7px; padding-left: 5px; }
.policy-card li::marker { color: var(--accent); }

footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 26px 44px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { display: grid; }
  .app-switcher { width: 100%; }
  .app-switcher a { flex: 1; text-align: center; }
  .hero { padding: 28px 22px; border-radius: 22px; }
  .policy-layout { margin-top: 20px; }
  .toc nav { grid-template-columns: 1fr; }
  .policy-card { border-radius: 18px; }
  footer { display: grid; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1712;
    --surface: #14231b;
    --surface-soft: #1b3025;
    --text: #f2f7f4;
    --muted: #bed0c5;
    --primary: #80d1a8;
    --primary-strong: #b6e8ce;
    --accent: #f0cc72;
    --border: #2e4639;
    --shadow: 0 20px 60px rgba(0, 0, 0, .22);
  }
  .brand-mark, .app-switcher a[aria-current="page"] { background: #2b855b; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
