:root {
  color-scheme: dark;
  --background: #02060c;
  --surface: #071322;
  --surface-soft: #0b1b2e;
  --line: #1d3855;
  --text: #f4f8ff;
  --muted: #a9bbd1;
  --accent: #2f6cff;
  --signal: #16c9d4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(47, 108, 255, 0.16), transparent 30%),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: #78a4ff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.legal-header img {
  display: block;
  width: min(280px, 58vw);
  height: auto;
  filter:
    brightness(1.8)
    drop-shadow(0 8px 24px rgba(22, 201, 212, 0.14));
}

.legal-header a:last-child {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-language-select select {
  min-width: 68px;
  padding: 9px 28px 9px 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
}

.legal-main {
  padding: 76px 0 90px;
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.legal-summary {
  max-width: 740px;
  margin: 24px 0 12px;
  color: var(--muted);
  font-size: 1.12rem;
}

.legal-date {
  margin: 0 0 48px;
  color: #7f94ad;
  font-size: 0.9rem;
}

.legal-section {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(11, 27, 46, 0.92), rgba(7, 19, 34, 0.94));
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

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

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

.legal-section strong {
  color: var(--text);
}

.security-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}

.security-facts article {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.security-facts span {
  color: var(--signal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.security-facts strong {
  font-size: 0.95rem;
  line-height: 1.4;
}

.security-contact {
  border-color: #316cb6;
  background: linear-gradient(145deg, rgba(13, 43, 76, 0.96), rgba(7, 25, 45, 0.96));
}

.security-contact .legal-kicker {
  margin-bottom: 8px;
}

.security-contact > a {
  display: inline-flex;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 640px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .legal-section {
    padding: 24px 22px;
  }

  .legal-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .security-facts {
    grid-template-columns: 1fr;
  }
}
