:root {
  --bg: #050a08;
  --surface: #0b1511;
  --surface-2: #101d18;
  --ink: #f4f8f3;
  --ink-soft: #a5b3ac;
  --accent: #c7ff3b;
  --line: rgba(199, 255, 59, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 5%, rgba(99, 230, 208, 0.07), transparent 25%),
    radial-gradient(circle at 88% 8%, rgba(199, 255, 59, 0.08), transparent 23%),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 80px 80px, 80px 80px, auto;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #0b1208;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.legal-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 10, 8, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.back-link:hover {
  border-color: var(--line);
  color: var(--accent);
  transform: translateY(-2px);
}

.legal-hero {
  padding: clamp(70px, 9vw, 108px) 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 780px;
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.65rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 700px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.updated {
  display: inline-flex;
  margin-top: 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(199, 255, 59, 0.05);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding-bottom: 110px;
}

.legal-nav {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 20px;
  background: rgba(11, 21, 17, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.legal-nav strong {
  display: block;
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  border-top: 1px solid var(--line-soft);
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  transition: color 180ms ease, padding-left 180ms ease;
}

.legal-nav a:hover {
  padding-left: 4px;
  color: var(--accent);
}

.legal-content {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 35%),
    rgba(11, 21, 17, 0.88);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.3);
}

.legal-section {
  padding: clamp(30px, 5vw, 50px);
  scroll-margin-top: 24px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line-soft);
}

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

h2 {
  margin-bottom: 17px;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section ul {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 22px;
}

.legal-section li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(199, 255, 59, 0.3);
}

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

.legal-note {
  margin-top: 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 15px 18px;
  background: rgba(199, 255, 59, 0.045);
}

.legal-footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--accent);
}

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

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 14px 16px;
  }

  .legal-nav strong {
    display: none;
  }

  .legal-nav a {
    flex: 0 0 auto;
    border: 0;
    padding: 4px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand span {
    display: none;
  }

  .back-link {
    padding: 9px 11px;
  }

  .legal-hero {
    padding-top: 58px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
