:root {
  --bg: #0b0c12;
  --panel: #151722;
  --panel-soft: #1b1d29;
  --text: #f7f6fb;
  --muted: #b5b6c3;
  --line: rgba(255, 255, 255, .12);
  --violet: #7723ee;
  --magenta: #ec16d8;
  --gradient: linear-gradient(105deg, #1626ff 0%, var(--violet) 48%, var(--magenta) 100%);
  --max: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 2%, rgba(119, 35, 238, .16), transparent 28rem),
    radial-gradient(circle at 12% 34%, rgba(22, 38, 255, .08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

a { color: inherit; }

.legal-header {
  min-height: 88px;
  padding: 20px max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 18, .78);
  backdrop-filter: blur(14px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
}

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

.legal-brand span {
  padding-left: 17px;
  border-left: 1px solid rgba(255,255,255,.2);
  color: #c8c9d2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dedee7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.back-link::before { content: "←"; font-size: 18px; font-weight: 400; }
.back-link:hover { color: #fff; }

.legal-hero {
  position: relative;
  padding: 86px 24px 52px;
  overflow: hidden;
  text-align: center;
}

.legal-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(740px, 80vw);
  height: 1px;
  background: var(--gradient);
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0 0 17px;
  color: #b9a1ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1;
}

.legal-hero p:last-child {
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-intro {
  margin: 0 0 44px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(36, 39, 53, .72), rgba(21, 23, 34, .72));
  color: #dedee6;
  font-size: 17px;
  line-height: 1.72;
}

.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:first-of-type { padding-top: 0; }
.legal-section:last-child { border-bottom: 0; }

.legal-section h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.legal-section h3 {
  margin: 25px 0 10px;
  color: #f2f1f7;
  font-size: 17px;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-section p { margin: 0 0 15px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 15px 0; padding-left: 22px; }
.legal-section li + li { margin-top: 9px; }
.legal-section strong { color: #f1f0f6; }
.legal-section a { color: #c9b7ff; text-underline-offset: 3px; }
.legal-section a:hover { color: #fff; }

.legal-footer {
  padding: 38px 24px;
  border-top: 1px solid var(--line);
  background: #08090e;
  text-align: center;
}

.legal-footer img { width: 138px; margin: 0 auto 17px; display: block; }

.legal-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.legal-footer a,
.legal-footer p {
  color: #a9abb8;
  font-size: 12px;
  line-height: 1.55;
}

.legal-footer a { text-underline-offset: 3px; }
.legal-footer p { margin: 18px 0 0; }

@media (max-width: 640px) {
  .legal-header { min-height: 76px; padding: 16px 18px; }
  .legal-brand img { width: 118px; }
  .legal-brand span { display: none; }
  .back-link { font-size: 12px; }
  .legal-hero { padding: 60px 20px 40px; }
  .legal-content { width: min(100% - 36px, var(--max)); padding: 46px 0 64px; }
  .legal-intro { padding: 22px; font-size: 16px; }
  .legal-section { padding: 28px 0; }
}
