:root {
  color-scheme: light;
  --bg: #f3f6ef;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .9);
  --text: #20261e;
  --muted: #687064;
  --olive: #6f7d55;
  --olive-deep: #4b5938;
  --pastel: #dce8d2;
  --line: rgba(69, 82, 57, .15);
  --shadow: 0 24px 70px rgba(56, 67, 46, .12);
  --glass-edge: rgba(255, 255, 255, .86);
  --glass-shadow: rgba(56, 72, 43, .17);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10130f;
  --surface: rgba(28, 34, 26, .74);
  --surface-strong: rgba(31, 38, 28, .92);
  --text: #f0f4eb;
  --muted: #adb8a5;
  --olive: #a8bb83;
  --olive-deep: #c7d8a5;
  --pastel: #293423;
  --line: rgba(212, 226, 197, .14);
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
  --glass-edge: rgba(231, 240, 220, .22);
  --glass-shadow: rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 6%, color-mix(in srgb, var(--pastel) 82%, transparent), transparent 32rem),
    radial-gradient(circle at 94% 72%, color-mix(in srgb, var(--pastel) 58%, transparent), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  transition: background .35s ease, color .35s ease;
}

header, main, footer { position: relative; z-index: 1; }
a { color: inherit; }
button { font: inherit; }
.shell { width: min(960px, calc(100% - 40px)); margin: 0 auto; }

.page-spotlight {
  position: fixed;
  z-index: 0;
  left: 0;
  top: 0;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--olive) 23%, transparent) 0%, color-mix(in srgb, var(--pastel) 38%, transparent) 34%, transparent 70%);
  filter: blur(18px);
  transform: translate3d(-800px, -800px, 0);
  transition: opacity .45s ease;
  will-change: transform, opacity;
}
.page-spotlight.is-visible { opacity: 1; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: -.03em; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 9px 24px rgba(61,75,45,.18);
}
.brand-mark img { width: 88%; height: 88%; display: block; object-fit: contain; }
html[data-theme="dark"] .brand-mark img { filter: invert(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.back-link, .icon-button {
  border: 1px solid var(--glass-edge);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 28px var(--glass-shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.back-link { min-height: 44px; padding: 0 17px; border-radius: 999px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 730; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.back-link:hover, .icon-button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--olive) 55%, transparent); }
.sun { display: none; }
html[data-theme="dark"] .sun { display: block; }
html[data-theme="dark"] .moon { display: none; }

main { min-height: calc(100vh - 150px); padding: clamp(52px, 8vw, 88px) 0 90px; }
.legal-head { margin-bottom: 32px; }
.eyebrow { color: var(--olive-deep); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 14px 0 14px; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.07em; }
.intro { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.legal-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.legal-section + .legal-section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 13px; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; letter-spacing: -.035em; }
h3 { margin: 22px 0 8px; font-size: 1.05rem; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 12px; }
address { font-style: normal; }
.contact-block { display: grid; gap: 2px; color: var(--text); }
.contact-block strong { font-size: 1.07rem; }
.text-link { color: var(--olive-deep); font-weight: 720; text-underline-offset: 3px; }
.legal-list { margin: 10px 0 0; padding-left: 1.25rem; }
.legal-list li + li { margin-top: 7px; }
.muted, .status { color: var(--muted); }
.status { margin-top: 28px; font-size: .92rem; }

footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .92rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-underline-offset: 4px; }

@media (max-width: 680px) {
  .shell { width: min(100% - 26px, 960px); }
  .brand > span:last-child { display: none; }
  .back-link { padding: 0 14px; }
  .legal-card { border-radius: 25px; }
  .footer-inner { padding: 24px 0; align-items: flex-start; flex-direction: column; }
}

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