:root {
  --bg: #070d19;
  --surface: #111b30;
  --surface-soft: #172746;
  --text: #ecf2ff;
  --muted: #9aa9ca;
  --accent: #3b82f6;
  --border: #223558;
  --max: 900px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.2), transparent 38%),
    radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.15), transparent 30%),
    var(--bg);
}

a {
  color: #c5daff;
  text-decoration: none;
}

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

.legal-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.legal-top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(34, 53, 88, 0.8);
  background: rgba(7, 13, 25, 0.88);
  backdrop-filter: blur(8px);
}

.legal-top-inner {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-link {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.45rem 0.8rem;
  color: #d7e5ff;
  background: rgba(59, 130, 246, 0.11);
}

main {
  padding: clamp(2.6rem, 6vw, 4rem) 0 3rem;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 14px 28px rgba(3, 8, 18, 0.35);
}

.legal-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.25;
}

.meta {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.summary {
  margin-top: 1rem;
  color: #d6e4ff;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.4rem 0;
}

section + section {
  margin-top: 1.25rem;
}

h2 {
  font-size: 1.13rem;
  margin-bottom: 0.4rem;
}

p {
  color: #dde8ff;
}

ul {
  margin: 0.35rem 0 0.1rem 1.15rem;
}

li {
  color: #dbe6fd;
}

footer {
  border-top: 1px solid rgba(34, 53, 88, 0.8);
  padding: 1.2rem 0 1.6rem;
}

.legal-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .legal-top-inner {
    min-height: 4.8rem;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 0.75rem 0;
  }
}
