:root {
  --mint: #1abc9c;
  --mint-soft: rgba(26, 188, 156, 0.14);
  --ink: #111;
  --muted: #666d69;
  --line: #e8ebe9;
  --cream: #f4f1e9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: #f7f8f7; color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.shell { width: min(1280px, calc(100% - 48px)); margin: auto; }
.legacy-nav, .legacy-footer { display: none !important; }

.site-nav { position: fixed; z-index: 50; top: 16px; left: 50%; width: min(560px, calc(100% - 32px)); height: 72px; transform: translateX(-50%); background: rgba(241, 243, 242, 0.94); border: 1px solid rgba(17, 17, 17, 0.06); border-radius: 28px; box-shadow: 0 10px 30px rgba(17, 35, 30, 0.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: top .25s, height .25s, background .25s, box-shadow .25s; }
.site-nav.scrolled { top: 10px; height: 66px; background: rgba(241, 243, 242, 0.9); box-shadow: 0 14px 38px rgba(17, 35, 30, 0.13); }
.site-nav .nav-inner { width: 100%; height: 100%; padding: 0 12px 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand img { display: block; width: 142px; height: auto; filter: brightness(0) saturate(100%) invert(71%) sepia(88%) saturate(4265%) hue-rotate(130deg) brightness(101%) contrast(80%); }
.nav-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; line-height: 1; text-decoration: none; transition: transform .2s, background .2s; }
.nav-btn:hover { transform: translateY(-2px); background: #2b2b2b; }
.nav-btn:focus-visible, .nav-brand:focus-visible, main a:focus-visible, footer a:focus-visible { outline: 3px solid rgba(26, 188, 156, 0.42); outline-offset: 3px; }

main { display: block; width: min(980px, calc(100% - 48px)); max-width: none; margin: 0 auto; padding: 138px 0 110px; text-align: left; }
.legal-hero { position: relative; overflow: hidden; isolation: isolate; margin-bottom: 58px; padding: clamp(44px, 7vw, 76px); border-radius: 36px; background: #111; color: #fff; box-shadow: 0 28px 70px rgba(33, 38, 36, 0.16); }
.legal-hero::before, .legal-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.legal-hero::before { width: 300px; height: 300px; left: -150px; top: -170px; background: rgba(26, 188, 156, 0.19); }
.legal-hero::after { width: 210px; height: 210px; right: -85px; bottom: -120px; border: 40px solid rgba(26, 188, 156, 0.12); }
.legal-eyebrow { margin-bottom: 18px; color: var(--mint); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
main .legal-hero h1 { max-width: none; margin: 0; color: #fff; font-size: clamp(52px, 8vw, 88px); line-height: .94; letter-spacing: -.06em; }
main .legal-hero .last-updated { margin: 22px 0 0; color: #aeb4b1; font-size: 14px; }
.legal-intro { max-width: 690px; margin: 28px 0 0; color: #d7d9d8; font-size: 19px; line-height: 1.55; }
main h2 { margin: 62px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
main .legal-hero + h2 { margin-top: 0; }
main h3 { margin: 34px 0 12px; color: #2f3733; font-size: 21px; line-height: 1.25; }
main p, main li { color: #555d59; font-size: 17px; line-height: 1.72; }
main p { margin: 0 0 18px; }
main ul { margin: 12px 0 24px; padding-left: 24px; }
main li { margin: 7px 0; padding-left: 5px; }
main li::marker { color: var(--mint); }
main .doc-link { color: #11836b; font-weight: 700; text-decoration-color: rgba(26, 188, 156, .5); text-underline-offset: 3px; }
main .doc-link:hover { color: var(--mint); }

.site-footer { display: block; background: #111; color: #fff; padding: 76px 0 38px; text-align: left; }
.site-footer .footer-top { display: grid; grid-template-columns: 1fr auto; gap: 50px; border-bottom: 1px solid #333; padding-bottom: 58px; }
.site-footer .footer-brand { display: block; width: max-content; }
.site-footer .footer-brand img { display: block; width: 150px; height: auto; filter: brightness(0) saturate(100%) invert(71%) sepia(88%) saturate(4265%) hue-rotate(130deg) brightness(101%) contrast(80%); }
.site-footer .footer-nav { position: static; width: auto; height: auto; margin: 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; gap: 30px; flex-wrap: wrap; background: transparent; border: 0; box-shadow: none; }
.site-footer .footer-nav a, .site-footer .legal-links a, .site-footer .socials a { color: #d7d9d8; text-decoration: none; }
.site-footer .footer-nav a:hover, .site-footer .legal-links a:hover, .site-footer .socials a:hover { color: var(--mint); }
.site-footer .footer-mid { display: grid; grid-template-columns: 1fr auto; gap: 60px; padding: 36px 0; }
.site-footer .trust-line { margin: 0 0 12px; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; }
.site-footer .infra { max-width: 760px; margin: 0; color: #929895; font-size: 13px; line-height: 1.5; }
.site-footer .socials, .site-footer .legal-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.site-footer .socials { gap: 12px; }
.site-footer .socials a { width: 42px; height: 42px; border: 1px solid #343836; border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.site-footer .socials a:hover { border-color: var(--mint); background: #1b1d1c; }
.site-footer .socials img { width: 19px; height: 19px; display: block; object-fit: contain; filter: brightness(0) invert(1); opacity: .84; transition: opacity .2s; }
.site-footer .socials a:hover img { opacity: 1; }
.site-footer .footer-legal { border-top: 1px solid #333; padding-top: 28px; }
.site-footer .disclosure { margin: 24px 0; color: #777d7a; font-size: 11px; line-height: 1.55; }
.site-footer .copyright { color: #9da29f; font-size: 13px; }

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 32px), 680px); }
  .site-nav { top: 10px; width: calc(100% - 24px); height: 64px; border-radius: 24px; }
  .site-nav.scrolled { top: 8px; height: 62px; }
  .site-nav .nav-inner { padding: 0 9px 0 20px; }
  .nav-btn { min-height: 44px; padding: 0 18px; }
  main { width: min(calc(100% - 32px), 760px); padding-top: 112px; }
  .site-footer .footer-top, .site-footer .footer-mid { grid-template-columns: 1fr; }
  .site-footer .footer-nav { justify-content: flex-start; }
  .site-footer .footer-mid { gap: 30px; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 28px); }
  .nav-brand img { width: 128px; }
  .nav-btn { padding: 0 15px; font-size: 13px; }
  main { width: calc(100% - 28px); padding: 96px 0 78px; }
  .legal-hero { margin-bottom: 42px; padding: 38px 24px; border-radius: 28px; }
  main .legal-hero h1 { font-size: 50px; }
  .legal-intro { font-size: 17px; }
  main h2 { margin-top: 48px; font-size: 29px; }
  main p, main li { font-size: 16px; }
  .site-footer { padding-top: 58px; }
  .site-footer .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .site-footer .footer-brand img { width: 136px; }
}

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