:root {
  color-scheme: dark;
  --bg: #070914;
  --surface: rgba(18, 22, 39, 0.78);
  --surface-strong: rgba(25, 30, 52, 0.92);
  --text: #f7f8ff;
  --muted: #b6bdd4;
  --subtle: #818aa8;
  --primary: #8ea2ff;
  --cyan: #72e2ff;
  --violet: #8a6dff;
  --border: rgba(255, 255, 255, 0.12);
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% -8%, rgba(114, 226, 255, 0.15), transparent 30rem),
    radial-gradient(circle at 88% 2%, rgba(138, 109, 255, 0.22), transparent 34rem),
    linear-gradient(180deg, #070914 0%, #0b0d19 52%, #080a12 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 20, 0.74);
  backdrop-filter: blur(22px);
}

.nav {
  width: min(100% - 32px, 1160px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.back-link,
.button,
.footer-links a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 850;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(114, 226, 255, 0.2), rgba(138, 109, 255, 0.34)),
    #101426;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(77, 91, 210, 0.34);
  color: #ffffff;
  font-weight: 900;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 820;
  white-space: nowrap;
  background: linear-gradient(135deg, #4f7dff 0%, #7c56ff 58%, #9a6dff 100%);
  box-shadow: 0 18px 42px rgba(87, 107, 255, 0.3);
}

.legal-hero {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9e1ff;
  font-size: 13px;
  font-weight: 820;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

.subtitle {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 19px;
}

.updated {
  color: var(--subtle);
  font-size: 14px;
  font-weight: 760;
}

.legal-card {
  width: min(100% - 32px, var(--max));
  margin: 18px auto 80px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(114, 226, 255, 0.08), transparent 32%),
    radial-gradient(circle at 88% 4%, rgba(138, 109, 255, 0.12), transparent 34%),
    rgba(16, 20, 36, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.16;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 8px;
}

.note {
  padding: 16px;
  border: 1px solid rgba(142, 162, 255, 0.2);
  border-radius: 20px;
  background: rgba(142, 162, 255, 0.08);
  color: #dce3ff;
}

footer {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 14px;
}

.footer-copy {
  display: grid;
  gap: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 740;
}

footer a:hover,
.back-link:hover {
  color: #ffffff;
}

@media (max-width: 620px) {
  .nav,
  .legal-hero,
  .legal-card,
  footer {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    min-height: auto;
    padding: 16px 0;
  }

  .brand span:last-child {
    display: none;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .legal-hero {
    padding-top: 54px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
