:root {
  color-scheme: dark;
  --bg: #0b1022;
  --bg-top: #1b0f2e;
  --bg-mid: #24345b;
  --bg-bottom: #1a3d53;
  --card: rgba(13, 20, 44, 0.88);
  --line: rgba(167, 178, 217, 0.2);
  --ink: #eef3ff;
  --ink-soft: #a7b2d9;
  --cyan: #00d4ff;
  --gold: #ffd84d;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 216, 77, 0.12), transparent 24%),
    radial-gradient(circle at 90% 14%, rgba(0, 212, 255, 0.14), transparent 28%),
    linear-gradient(145deg, var(--bg-top) 0%, var(--bg) 32%, var(--bg-mid) 68%, var(--bg-bottom) 100%);
  line-height: 1.68;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

.legal-shell {
  width: min(900px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

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

.legal-brand img {
  width: 40px;
  height: 40px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.legal-back:hover,
.legal-back:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.legal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(18px);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  box-shadow: 0 0 0 4px rgba(255, 216, 77, 0.1);
}

h1,
h2 {
  margin: 0;
  font-family: "Literata", "Georgia", serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
}

h2 {
  margin-top: 32px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

p,
li {
  color: var(--ink-soft);
}

.updated {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

ul {
  padding-left: 1.25rem;
}

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

strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .legal-shell {
    width: min(900px, calc(100% - 20px));
    padding-top: 20px;
  }

  .legal-header {
    align-items: stretch;
  }

  .legal-back {
    width: 100%;
  }
}
