:root {
  --bg-main: #050510;
  --bg-secondary: #070818;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(200, 160, 255, 0.14);
  --text-main: #ffffff;
  --text-soft: rgba(235, 228, 255, 0.82);
  --text-muted: rgba(209, 196, 233, 0.58);
  --cyan: #00d2ff;
  --purple: #9d50bb;
  --magenta: #ff4fd8;
  --green: #00d2ff;
  --gradient-omni: linear-gradient(90deg, #00d2ff 0%, #9d50bb 52%, #ff4fd8 100%);
  --orange: #f59e0b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 80%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text-main);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 210, 255, 0.1), transparent 30%),
    radial-gradient(circle at 86% 6%, rgba(255, 79, 216, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-secondary), var(--bg-main) 34%, #030208 100%);
}

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

.legal-shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.legal-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-a,
.brand-b {
  display: inline-block;
  background: none;
}

.brand-a {
  color: #00d2ff;
  text-shadow: 0 0 14px rgba(0, 210, 255, 0.45);
}

.brand-b {
  color: #ff4fd8;
  text-shadow: 0 0 14px rgba(255, 79, 216, 0.4);
}

.back-link {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text-main);
}

.legal-hero {
  padding: 28px 0 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.62;
}

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

.notice,
.section-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.notice {
  margin: 18px 0 26px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(0, 210, 255, 0.06), rgba(255, 79, 216, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.notice strong {
  display: block;
  margin-bottom: 8px;
}

.notice p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.58;
}

.legal-main {
  display: grid;
  gap: 16px;
}

.section-card {
  padding: 22px 22px 20px;
}

.section-card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.section-card h3 {
  margin: 18px 0 10px;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text-main);
}

.section-card h3:first-of-type {
  margin-top: 0;
}

.section-card p,
.section-card li {
  color: var(--text-soft);
  line-height: 1.62;
}

.section-card p {
  margin: 0 0 12px;
}

.section-card p:last-child {
  margin-bottom: 0;
}

.section-card ul {
  margin: 0;
  padding-left: 20px;
}

.section-card li + li {
  margin-top: 8px;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-footer {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

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

  .legal-header {
    padding: 14px 16px;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .section-card,
  .notice {
    padding: 18px;
  }
}
