:root {
  color-scheme: dark;
  --background: #080d19;
  --surface: rgba(17, 24, 39, 0.82);
  --surface-strong: #111827;
  --border: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --accent: #ff6b16;
  --accent-light: #ff9b42;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(14, 165, 233, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(147, 51, 234, 0.16), transparent 30rem),
    var(--background);
  line-height: 1.7;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 25, 0.88);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 150px;
  max-height: 48px;
  object-fit: contain;
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent-light);
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 780px);
  gap: clamp(32px, 6vw, 88px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

.legal-summary {
  align-self: start;
  position: sticky;
  top: 118px;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-summary h1 {
  max-width: 320px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.legal-summary > p {
  color: var(--muted);
  font-size: 17px;
}

.update-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.update-card span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.update-card strong {
  font-size: 14px;
}

.legal-content {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
}

.legal-content section + section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
}

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

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0 22px;
}

.legal-content li::marker {
  color: var(--accent);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover {
  border-color: rgba(255, 155, 66, 0.55);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
  }

  .legal-summary h1 {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 68px;
  }

  .brand img {
    width: 120px;
  }

  .legal-shell {
    width: min(100% - 24px, 1180px);
    padding: 40px 0;
  }

  .legal-content {
    border-radius: 20px;
  }

  .legal-actions a {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}
