:root {
  color-scheme: dark;
  --background: #07060f;
  --warm-white: #f5f5f0;
  --muted-text: rgba(245, 245, 240, 0.62);
  --soft-border: rgba(245, 245, 240, 0.12);
  --accent: rgba(245, 245, 240, 0.58);
  --lumins-blue: #7898ff;
}

html[data-theme="light"] {
  color-scheme: light;
  --background: #f1f3ef;
  --warm-white: #0b0a12;
  --muted-text: rgba(11, 10, 18, 0.64);
  --soft-border: rgba(11, 10, 18, 0.13);
  --accent: rgba(11, 10, 18, 0.58);
  --lumins-blue: #4f6fcc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  isolation: isolate;
  color: var(--warm-white);
  background: var(--background);
  font: 400 17px/1.65 "Figtree", Arial, sans-serif;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  opacity: 0.42;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(117, 153, 255, 0.18) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(245, 245, 240, 0.18) 0 0.8px, transparent 1.2px);
  background-position: 0 0, 36px 44px;
  background-size: 92px 92px, 127px 127px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

html[data-theme="light"] body::before { opacity: 0.24; }

.legal-page-particles {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

html[data-theme="light"] .legal-page-particles { opacity: 0.62; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-skip-link {
  position: fixed;
  z-index: 5000;
  top: 12px;
  left: 50%;
  padding: 10px 14px;
  border-radius: 8px;
  color: #07060f;
  background: #f5f5f0;
  font-weight: 600;
  transform: translate(-50%, -180%);
  transition: transform 160ms ease;
}

.legal-skip-link:focus { transform: translate(-50%, 0); }

.side-menu {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: clamp(12px, 2vw, 28px);
  --tooltip-y: 7px;
  font-family: "Figtree", Arial, sans-serif;
  transform: translateY(-50%);
}

.side-menu-dock {
  display: flex;
  width: 52px;
  height: 52px;
  padding: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(245, 245, 240, 0.12);
  border-radius: 16px;
  background: rgba(11, 10, 18, 0.72);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(245, 245, 240, 0.06);
  backdrop-filter: blur(18px);
}

.side-menu-tooltip {
  position: absolute;
  top: 0;
  left: calc(100% + 14px);
  padding: 6px 11px;
  border: 1px solid rgba(245, 245, 240, 0.1);
  border-radius: 8px;
  color: rgba(245, 245, 240, 0.9);
  background: rgba(22, 20, 34, 0.92);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-5px, var(--tooltip-y));
  transition: opacity 180ms ease, transform 200ms ease;
  backdrop-filter: blur(12px);
}

.side-menu.is-tooltip-visible .side-menu-tooltip { opacity: 1; transform: translate(0, var(--tooltip-y)); }

.side-menu-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 11px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: rgba(245, 245, 240, 0.52);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease;
}

.side-menu-button:hover,
.side-menu-button:focus-visible {
  color: rgba(245, 245, 240, 0.92);
  background: rgba(245, 245, 240, 0.08);
  outline: 2px solid rgba(120, 152, 255, 0.72);
  outline-offset: -2px;
}

.side-menu-button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.side-menu-mobile-label { display: none; }
.side-menu-icon { opacity: 0; transform: translateX(-6px); transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.side-menu-strip { display: flex; width: 42px; max-height: 0; flex-direction: column; gap: 2px; overflow: hidden; opacity: 0; pointer-events: none; transition: max-height 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, margin 320ms ease; }
.side-menu.is-open .side-menu-strip { max-height: 260px; margin-top: 3px; opacity: 1; pointer-events: auto; }
.side-menu.is-open .side-menu-dock { height: auto; }
.side-menu.is-open .side-menu-icon { opacity: 1; transform: translateX(0); }

.theme-toggle {
  position: fixed;
  z-index: 90;
  top: 50%;
  right: clamp(12px, 2vw, 28px);
  display: grid;
  width: 52px;
  height: 52px;
  padding: 13px;
  place-items: center;
  border: 1px solid rgba(245, 245, 240, 0.12);
  border-radius: 16px;
  color: rgba(245, 245, 240, 0.62);
  background: rgba(11, 10, 18, 0.72);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(245, 245, 240, 0.06);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 200ms ease, background 200ms ease;
  backdrop-filter: blur(18px);
}

.theme-toggle:hover,
.theme-toggle:focus-visible { color: rgba(245, 245, 240, 0.92); background: rgba(245, 245, 240, 0.08); outline: 2px solid rgba(120, 152, 255, 0.72); outline-offset: 2px; }
.theme-toggle .theme-solar-switch { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.theme-solar-switch .theme-sun > *,
.theme-solar-switch .theme-moon { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity 220ms ease, transform 700ms ease-in-out, stroke-dashoffset 700ms ease-in-out; }
html[data-theme="light"] .theme-sun > *,
html[data-theme="dark"] .theme-moon { opacity: 1; transform: scale(1); stroke-dashoffset: 0; }

html[data-theme="light"] .side-menu-dock { border-color: rgba(11, 10, 18, 0.1); background: rgba(255, 255, 255, 0.82); box-shadow: 0 0 42px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
html[data-theme="light"] .side-menu-tooltip { color: rgba(11, 10, 18, 0.88); background: rgba(245, 244, 240, 0.96); border-color: rgba(11, 10, 18, 0.1); }
html[data-theme="light"] .side-menu-button { color: rgba(11, 10, 18, 0.48); }
html[data-theme="light"] .side-menu-button:hover,
html[data-theme="light"] .side-menu-button:focus-visible { color: rgba(11, 10, 18, 0.88); background: rgba(11, 10, 18, 0.06); }
html[data-theme="light"] .theme-toggle { border-color: rgba(11, 10, 18, 0.1); color: rgba(11, 10, 18, 0.55); background: rgba(255, 255, 255, 0.82); box-shadow: 0 0 42px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible { color: rgba(11, 10, 18, 0.88); background: rgba(11, 10, 18, 0.06); }

.legal-hero {
  width: min(100% - 48px, 1080px);
  margin: 0 auto;
  padding: clamp(110px, 14vw, 180px) 0 clamp(54px, 8vw, 92px);
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Alan Sans", Arial, sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-updated {
  margin: 28px 0 0;
  color: var(--muted-text);
  font-size: 14px;
}

.legal-language-link {
  display: inline-flex;
  margin-top: 20px;
  border-bottom: 1px solid var(--soft-border);
  color: var(--muted-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.legal-language-link:hover,
.legal-language-link:focus-visible {
  color: var(--warm-white);
  outline: 3px solid rgba(120, 152, 255, 0.54);
  outline-offset: 4px;
}

.legal-layout {
  display: grid;
  width: min(100% - 48px, 1080px);
  margin: 0 auto clamp(90px, 12vw, 150px);
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(46px, 7vw, 96px);
  align-items: start;
}

.legal-summary {
  position: sticky;
  top: 42px;
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  padding: 20px;
  background: rgba(245, 245, 240, 0.025);
}

html[data-theme="light"] .legal-summary { background: rgba(11, 10, 18, 0.025); }

.legal-summary strong {
  display: block;
  margin-bottom: 12px;
  font: 600 14px/1.2 "Alan Sans", Arial, sans-serif;
}

.legal-summary a {
  display: block;
  margin: 2px -9px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.legal-summary a:hover,
.legal-summary a:focus-visible {
  color: var(--warm-white);
  background: rgba(48, 58, 94, 0.22);
  box-shadow: inset 2px 0 #7898ff, inset 0 0 36px rgba(104, 137, 239, 0.045);
  outline: 0;
}

.legal-summary a.is-active {
  color: var(--warm-white);
  background: rgba(48, 58, 94, 0.3);
  box-shadow: inset 3px 0 #7898ff, inset 0 0 44px rgba(104, 137, 239, 0.055), 0 0 28px rgba(75, 99, 180, 0.055);
}

html[data-theme="light"] .legal-summary a:hover,
html[data-theme="light"] .legal-summary a:focus-visible {
  color: rgba(11, 10, 18, 0.9);
  background: rgba(79, 111, 204, 0.075);
  box-shadow: inset 2px 0 #4f6fcc, inset 0 0 36px rgba(79, 111, 204, 0.04);
}

html[data-theme="light"] .legal-summary a.is-active {
  color: rgba(11, 10, 18, 0.9);
  background: rgba(79, 111, 204, 0.1);
  box-shadow: inset 3px 0 #4f6fcc, inset 0 0 44px rgba(79, 111, 204, 0.045), 0 0 28px rgba(79, 111, 204, 0.045);
}

.legal-document {
  min-width: 0;
  color: var(--muted-text);
}

.legal-introduction {
  margin: 0 0 48px;
  color: var(--warm-white);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.legal-section {
  scroll-margin-top: 32px;
  border-top: 1px solid var(--soft-border);
  padding: 38px 0 10px;
}

.legal-section + .legal-section { margin-top: 22px; }

.legal-section h2 {
  margin: 0 0 22px;
  color: var(--warm-white);
  font-family: "Alan Sans", Arial, sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 30px 0 12px;
  color: var(--warm-white);
  font-family: "Alan Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.legal-section p { margin: 0 0 16px; }

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 20px;
}

.legal-section li::before {
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: rgba(245, 245, 240, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 245, 240, 0.07);
}

html[data-theme="light"] .legal-section li::before {
  background: rgba(11, 10, 18, 0.66);
  box-shadow: 0 0 0 4px rgba(11, 10, 18, 0.06);
}

.legal-identity {
  display: block;
  margin: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}

.legal-identity p { margin: 0 0 16px; }

.site-footer {
  position: relative;
  min-height: 500px;
  margin-top: -1px;
  padding: 68px 24px 24px;
  color: var(--warm-white);
  background: var(--background);
  overflow: hidden;
  isolation: isolate;
}

.site-footer::before {
  position: absolute;
  z-index: 0;
  top: 34px;
  right: 30px;
  bottom: 0;
  left: 30px;
  content: "";
  border: 1px solid rgba(245, 245, 240, 0.075);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: radial-gradient(125% 125% at 50% 10%, rgba(22, 24, 40, 0.76) 0%, rgba(15, 16, 27, 0.92) 58%, rgba(12, 13, 22, 0.96) 100%), linear-gradient(180deg, rgba(245, 245, 240, 0.018), transparent 32%);
  pointer-events: none;
}

html[data-theme="light"] .site-footer::before {
  border-color: rgba(11, 10, 18, 0.075);
  background: radial-gradient(125% 125% at 50% 10%, rgba(241, 243, 239, 0.7) 50%, rgba(79, 111, 204, 0.07) 100%), linear-gradient(180deg, rgba(11, 10, 18, 0.026), rgba(11, 10, 18, 0.006) 30%, transparent 100%);
}

.footer-particles {
  position: absolute;
  z-index: 1;
  top: 34px;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 34px);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 1180px);
  min-height: 380px;
  margin: 0 auto;
  align-content: space-between;
  gap: 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(130px, 0.55fr));
  gap: clamp(32px, 5vw, 78px);
  align-items: start;
  padding-top: 8px;
}

.footer-brand-name {
  margin: 0;
  font: 600 clamp(28px, 3vw, 42px)/1 "Alan Sans", Arial, sans-serif;
}

.footer-tagline {
  margin: 18px 0 0;
  color: rgba(245, 245, 240, 0.76);
  font: 500 clamp(18px, 1.7vw, 24px)/1.14 "Alan Sans", Arial, sans-serif;
}

html[data-theme="light"] .footer-tagline { color: rgba(11, 10, 18, 0.74); }

.footer-description {
  max-width: 430px;
  margin: 22px 0 0;
  color: rgba(245, 245, 240, 0.55);
  font-size: 16px;
  line-height: 1.58;
}

html[data-theme="light"] .footer-description,
html[data-theme="light"] .footer-links a { color: rgba(11, 10, 18, 0.54); }

.footer-column { font-style: normal; }

.footer-column-title {
  margin: 0 0 20px;
  color: rgba(245, 245, 240, 0.9);
  font: 600 16px/1 "Alan Sans", Arial, sans-serif;
}

html[data-theme="light"] .footer-column-title { color: rgba(11, 10, 18, 0.86); }

.footer-links {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  width: fit-content;
  color: rgba(245, 245, 240, 0.49);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: rgba(245, 245, 240, 0.88);
  transform: translateX(3px);
  outline: 0;
}

.footer-brand-mark {
  width: min(100%, 820px);
  height: clamp(72px, 9vw, 108px);
  margin: 0 auto -8px;
}

.footer-text-effect { display: block; width: 100%; height: 100%; cursor: pointer; user-select: none; }
.footer-text-effect text { font: 600 78px/1 "Alan Sans", Arial, sans-serif; }
.footer-text-outline-hover { opacity: 0; transition: opacity 220ms ease; }
.footer-text-effect.is-hovered .footer-text-outline-hover { opacity: 0.48; }
.footer-text-draw { animation: footerTextDraw 4.2s ease-in-out both; }

html[data-theme="light"] .footer-text-outline-hover { stroke: rgba(11, 10, 18, 0.44) !important; }
html[data-theme="light"] .footer-text-effect.is-hovered .footer-text-outline-hover { opacity: 0.54; }
html[data-theme="light"] .footer-text-draw { stroke: rgba(11, 10, 18, 0.3) !important; stroke-width: 0.42 !important; }
html[data-theme="light"] .footer-text-effect text:last-child { stroke: rgba(11, 10, 18, 0.34) !important; stroke-width: 0.38 !important; }

@keyframes footerTextDraw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(245, 245, 240, 0.075);
  padding-top: 24px;
  color: rgba(245, 245, 240, 0.42);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

html[data-theme="light"] .footer-bottom {
  border-color: rgba(11, 10, 18, 0.08);
  color: rgba(11, 10, 18, 0.44);
}

.footer-bottom-link {
  color: rgba(245, 245, 240, 0.45);
  text-decoration: none;
  transition: color 220ms ease;
}

.footer-bottom-link:hover,
.footer-bottom-link:focus-visible { color: rgba(245, 245, 240, 0.82); outline: 0; }

html[data-theme="light"] .footer-bottom-link { color: rgba(11, 10, 18, 0.48); }

@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .legal-summary {
    position: static;
    columns: 2;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .legal-hero,
  .legal-layout { width: min(100% - 36px, 1080px); }
  .legal-hero { padding-top: 84px; }
  .legal-summary { columns: 1; }

  .site-footer {
    min-height: 0;
    padding: 62px 18px calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer::before { top: 26px; right: 16px; left: 16px; border-radius: 22px 22px 0 0; }
  .footer-particles { top: 26px; height: calc(100% - 26px); }
  .footer-shell { min-height: 0; gap: 28px; }
  .footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-column { text-align: center; }
  .footer-column-title { margin-bottom: 12px; font-size: 14px; }
  .footer-description { margin-right: auto; margin-left: auto; max-width: none; font-size: 15px; line-height: 1.42; text-align: center; }
  .footer-links { justify-items: center; gap: 8px; }
  .footer-links a { justify-content: center; font-size: 12px; }
  .footer-brand-mark { height: 76px; margin: -4px auto -12px; }
  .footer-text-effect text { font-size: 72px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 8px; padding-top: 16px; text-align: center; }

  .side-menu {
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50% !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) !important;
  }

  .side-menu-dock { width: auto; height: auto; padding: 5px; flex-direction: row; gap: 0; border-radius: 999px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.34); }
  .side-menu-trigger { display: none; }
  .side-menu-strip { width: auto; max-height: none; margin: 0; flex-direction: row; gap: 2px; overflow: visible; opacity: 1; pointer-events: auto; }
  .side-menu-icon { opacity: 1; transform: none; }
  .side-menu-button { display: flex; width: 48px; height: 54px; padding: 7px 3px 5px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 999px; }
  .side-menu-button.side-menu-trigger { display: none; }
  .side-menu-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
  .side-menu-mobile-label { display: block; max-width: 100%; overflow: hidden; font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }
  .theme-toggle.in-pill { position: static; inset: auto; display: flex; width: 48px; height: 54px; padding: 7px 3px 5px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; transform: none; backdrop-filter: none; }
  .theme-toggle.in-pill .theme-solar-switch { width: 19px; height: 19px; flex: 0 0 auto; }
  html[data-theme="light"] .theme-toggle.in-pill { background: transparent; box-shadow: none; }
  .side-menu-divider { align-self: center; width: 1px; height: 34px; margin: 0 3px; background: rgba(245, 245, 240, 0.16); }
  html[data-theme="light"] .side-menu-divider { background: rgba(11, 10, 18, 0.14); }
  .side-menu-tooltip { display: none; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

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