:root {
  color-scheme: light;
  --page: #f6f3f9;
  --page-soft: #ece8f2;
  --surface: rgba(255,255,255,.48);
  --surface-strong: rgba(255,255,255,.76);
  --ink: #17131f;
  --ink-soft: rgba(23,19,31,.68);
  --muted: rgba(23,19,31,.48);
  --rule: rgba(70,47,93,.11);
  --line: rgba(255,255,255,.78);
  --purple: #7b4df4;
  --purple-deep: #5c31d8;
  --pink: #ee68c5;
  --green: #28a86b;
  --shadow: 0 28px 90px rgba(71,44,102,.14), 0 8px 32px rgba(40,25,56,.08);
  --shadow-soft: 0 16px 45px rgba(71,44,102,.09), 0 3px 14px rgba(40,25,56,.06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0b12;
  --page-soft: #15111d;
  --surface: rgba(34,28,43,.52);
  --surface-strong: rgba(43,35,54,.72);
  --ink: #f5f1fa;
  --ink-soft: rgba(245,241,250,.68);
  --muted: rgba(245,241,250,.44);
  --rule: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.13);
  --shadow: 0 28px 90px rgba(0,0,0,.36), 0 8px 32px rgba(0,0,0,.22);
  --shadow-soft: 0 16px 45px rgba(0,0,0,.26), 0 3px 14px rgba(0,0,0,.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.96), transparent 42%),
    radial-gradient(circle at 15% 18%, rgba(123,77,244,.14), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(238,104,197,.13), transparent 32%),
    linear-gradient(180deg, var(--page), var(--page-soft));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  overflow-x: hidden;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 50% 0%, rgba(94,69,138,.24), transparent 40%),
    radial-gradient(circle at 15% 18%, rgba(123,77,244,.18), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(238,104,197,.13), transparent 32%),
    linear-gradient(180deg, var(--page), var(--page-soft));
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

body::before {
  width: min(820px, 112vw);
  height: min(820px, 112vw);
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  border: clamp(18px, 3vw, 38px) solid rgba(255,255,255,.28);
  box-shadow: inset 18px 22px 70px rgba(255,255,255,.44), inset -26px -18px 76px rgba(123,77,244,.10);
  opacity: .74;
}

html[data-theme="dark"] body::before {
  border-color: rgba(255,255,255,.07);
  box-shadow: inset 18px 22px 70px rgba(255,255,255,.05), inset -26px -18px 76px rgba(123,77,244,.16);
  opacity: .62;
}

body::after {
  width: 240px;
  height: 240px;
  right: 7vw;
  top: 18vh;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.78), rgba(255,255,255,.16) 34%, rgba(123,77,244,.15) 68%, rgba(238,104,197,.10));
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset -24px -28px 64px rgba(123,77,244,.10), 0 34px 100px rgba(65,37,99,.10);
}

html[data-theme="dark"] body::after {
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.18), rgba(123,77,244,.18) 42%, rgba(238,104,197,.11) 70%, rgba(13,11,18,.10));
  border-color: rgba(255,255,255,.10);
  box-shadow: inset -24px -28px 64px rgba(123,77,244,.13), 0 34px 100px rgba(0,0,0,.24);
}

a {
  color: var(--purple-deep);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

.legal-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 0 70px;
}

.legal-top {
  position: sticky;
  z-index: 20;
  top: max(10px, env(safe-area-inset-top));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 66px;
  margin-bottom: 34px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.legal-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(122deg, rgba(255,255,255,.48), transparent 32%, transparent 70%, rgba(255,255,255,.13)),
    radial-gradient(circle at 9% 0%, rgba(255,255,255,.60), transparent 28%);
  opacity: .72;
}

.legal-brand {
  position: relative;
  z-index: 1;
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
}

.legal-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 11px 18px rgba(91,47,205,.22));
}

.legal-brand span {
  display: grid;
  gap: 3px;
}

.legal-brand b {
  font-family: Montserrat, "Avenir Next", Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.legal-back {
  position: relative;
  z-index: 1;
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 11px 24px rgba(71,44,102,.07);
  font-size: 13px;
  font-weight: 760;
}

.legal-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.legal-back:hover {
  background: rgba(255,255,255,.50);
  transform: translateY(-1px);
}

.legal-article {
  display: grid;
  gap: 16px;
}

.legal-hero,
.legal-article section,
.legal-footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.legal-hero::before,
.legal-article section::before,
.legal-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(122deg, rgba(255,255,255,.42), transparent 28%, transparent 70%, rgba(255,255,255,.14)),
    radial-gradient(circle at 9% 4%, rgba(255,255,255,.56), transparent 25%);
  opacity: .72;
  mix-blend-mode: screen;
}

.legal-hero {
  padding: clamp(28px, 5vw, 50px);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.27);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 0 5px rgba(123,77,244,.10);
}

.legal-article h1,
.legal-article h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-weight: 790;
  line-height: 1.06;
  letter-spacing: 0;
}

.legal-article h1 {
  max-width: 900px;
  font-size: clamp(38px, 5.7vw, 66px);
}

.legal-article section {
  padding: clamp(24px, 3.2vw, 34px);
}

.legal-article h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 3.4vw, 36px);
}

.legal-article p {
  position: relative;
  z-index: 1;
  margin: 12px 0;
  max-width: 880px;
  color: var(--ink-soft);
  font-size: 17px;
}

.legal-article strong {
  font-weight: 780;
  color: var(--ink);
}

.legal-article ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.legal-article li {
  position: relative;
  min-height: 28px;
  padding-left: 34px;
  color: var(--ink-soft);
  font-size: 17px;
}

.legal-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 8px 18px rgba(123,77,244,.18);
}

.legal-article li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(.45em + 5px);
  width: 6px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.legal-contact {
  font-weight: 760;
}

.legal-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.legal-footer a {
  position: relative;
  z-index: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.25);
  text-align: center;
  font-size: 13px;
  font-weight: 730;
}

.legal-footer a:hover {
  color: var(--ink);
  background: rgba(255,255,255,.45);
}

html[data-theme="dark"] .legal-top::before,
html[data-theme="dark"] .legal-hero::before,
html[data-theme="dark"] .legal-article section::before,
html[data-theme="dark"] .legal-footer::before {
  opacity: .26;
}

html[data-theme="dark"] .legal-kicker,
html[data-theme="dark"] .legal-back,
html[data-theme="dark"] .legal-footer a {
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 11px 24px rgba(0,0,0,.16);
}

html[data-theme="dark"] .legal-back:hover,
html[data-theme="dark"] .legal-footer a:hover {
  background: rgba(255,255,255,.10);
}

@media (max-width: 640px) {
  .legal-page {
    width: calc(100% - 28px);
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 46px;
  }

  .legal-top {
    min-height: 60px;
    margin-bottom: 22px;
    padding: 7px;
    border-radius: 21px;
  }

  .legal-back {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 15px;
  }

  .legal-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .legal-brand {
    justify-self: center;
  }

  .legal-brand img {
    width: 38px;
    height: 38px;
  }

  .legal-brand b {
    font-size: 9px;
    letter-spacing: .18em;
  }

  .legal-brand small {
    display: none;
  }

  .legal-hero,
  .legal-article section {
    border-radius: 24px;
  }

  .legal-hero {
    padding: 26px 20px;
  }

  .legal-kicker {
    min-height: 32px;
    margin-bottom: 15px;
    font-size: 9.5px;
  }

  .legal-article h1 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .legal-article h2 {
    font-size: 24px;
  }

  .legal-article p,
  .legal-article li {
    font-size: 15px;
  }

  .legal-footer {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
}
