:root {
  color-scheme: dark;
  --bg: #050307;
  --surface: rgba(14, 9, 18, 0.9);
  --text: #f8f5fb;
  --muted: #b9afc2;
  --violet: #d946ef;
  --acid: #e7ff1f;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(217, 70, 239, 0.17), transparent 30%),
    radial-gradient(circle at 92% 22%, rgba(231, 255, 31, 0.1), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--acid);
  text-underline-offset: 4px;
}

a:hover {
  color: #fff;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-brand img {
  display: block;
  width: 112px;
  height: auto;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.92rem;
}

.legal-nav a {
  color: var(--muted);
}

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

.legal-hero {
  padding: 0 0 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--acid);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

h3 {
  margin-bottom: 6px;
}

.legal-lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.legal-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-section {
  margin-top: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.legal-section li + li {
  margin-top: 10px;
}

.scope-list,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.scope-list article,
.feature-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.scope-list code {
  overflow-wrap: anywhere;
  color: var(--acid);
}

.notice {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--violet);
  background: rgba(217, 70, 239, 0.08);
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.action-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(231, 255, 31, 0.55);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.action-links a:first-child {
  border-color: rgba(217, 70, 239, 0.85);
  background: rgba(217, 70, 239, 0.12);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

@media (max-width: 700px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    justify-content: flex-start;
  }

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

  .scope-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
