:root {
  color-scheme: dark;
  --bg: #06111d;
  --panel: #0b1b2a;
  --panel-soft: #102538;
  --text: #eef7fb;
  --muted: #a9bfcc;
  --line: rgba(171, 215, 228, 0.18);
  --accent: #60d9d2;
  --accent-strong: #27bdb5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(39, 189, 181, 0.12), transparent 34rem),
    linear-gradient(180deg, #06111d 0%, #081522 100%);
}

a {
  color: var(--accent);
}

a:hover,
a:focus-visible {
  color: #9ff3ef;
}

.legal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 29, 0.92);
}

.legal-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.legal-main {
  padding: 64px 0 80px;
}

.legal-hero {
  max-width: 780px;
  margin-bottom: 34px;
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.legal-summary {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  color: #bfd1db;
  font-size: 0.9rem;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 37, 56, 0.88), rgba(11, 27, 42, 0.9));
  box-shadow: var(--shadow);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

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

.legal-section p {
  margin: 0;
}

.legal-section p + p,
.legal-section ul + p {
  margin-top: 12px;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.legal-notice {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent-strong);
  border-radius: 12px;
  background: rgba(39, 189, 181, 0.08);
  color: #cce2e9;
  line-height: 1.65;
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

@media (max-width: 680px) {
  .legal-header-inner {
    min-height: 68px;
  }

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

  .legal-section {
    padding: 22px;
    border-radius: 16px;
  }

  .legal-back span {
    display: none;
  }
}
