:root {
  --bg: #09070b;
  --bg-2: #130e16;
  --panel: rgba(24, 19, 29, 0.84);
  --panel-2: rgba(31, 23, 36, 0.94);
  --text: #f7f0f9;
  --muted: #b6a9bb;
  --gold: #f4d28c;
  --gold-2: #c89642;
  --pink: #ff5ca8;
  --violet: #8f63ff;
  --line: rgba(255,255,255,0.08);
  --shadow: 0 24px 90px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,92,168,0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(143,99,255,0.18), transparent 35%),
    linear-gradient(180deg, #0b0710 0%, #120c16 45%, #08070a 100%);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.page-glow { position: fixed; inset: auto; width: 38vw; height: 38vw; filter: blur(80px); opacity: 0.25; pointer-events: none; z-index: 0; }
.glow-1 { top: -8vw; left: -10vw; background: #ff5ca8; }
.glow-2 { right: -12vw; top: 10vw; background: #6b4dff; }
.topbar, .hero, .section, .footer, .download-page { position: relative; z-index: 1; }

.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; letter-spacing: 0.04em; }
.brand-mark { color: var(--gold); font-size: 24px; }
.brand-text { font-size: 18px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 18px; color: var(--muted); align-items: center; }
.nav a { padding: 8px 0; line-height: 1.2; }
.nav a:hover { color: var(--text); }

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  max-width: 700px;
}
h1 span {
  color: transparent;
  background: linear-gradient(120deg, #fff2ca 0%, #f4d28c 45%, #ff88c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead,
.feature-card p,
.download-copy p,
.lux-list li,
.download-meta,
.profile-showcase-copy span {
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  max-width: 620px;
  margin: 20px 0 28px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, #ffd7a0 100%); color: #22170a; box-shadow: 0 12px 36px rgba(244,210,140,0.24); }
.btn-secondary { background: rgba(255,255,255,0.03); color: var(--text); }

.micro-note {
  margin-top: 14px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.stat-card,
.feature-card,
.lux-panel,
.qr-card,
.download-panel,
.download-gift-card,
.download-visual-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.02);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.stat-card {
  border-radius: 22px;
  padding: 20px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.stat-card span { display: block; font-size: 22px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.stat-card small { color: var(--muted); line-height: 1.45; }

.hero-visual { display: flex; justify-content: center; }
.hero-art-card {
  position: relative;
  width: min(100%, 500px);
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.hero-art-image {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 24%, rgba(255,92,168,0.36), transparent 22%),
    radial-gradient(circle at 78% 20%, rgba(143,99,255,0.34), transparent 26%),
    radial-gradient(circle at 52% 68%, rgba(244,210,140,0.16), transparent 24%),
    linear-gradient(180deg, rgba(11,7,16,0.14) 0%, rgba(11,7,16,0.42) 100%),
    linear-gradient(135deg, #120e18 0%, #1a1322 44%, #0e0a12 100%);
}
.hero-art-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(9,7,11,0) 0%, rgba(9,7,11,0.84) 100%);
}
.hero-portrait {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 58%;
  min-height: 76%;
  border-radius: 34px 34px 26px 26px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,236,214,0.28), transparent 16%),
    radial-gradient(circle at 50% 16%, rgba(32,25,40,0.22), transparent 11%),
    radial-gradient(circle at 50% 44%, rgba(80,50,94,0.38), transparent 22%),
    linear-gradient(180deg, rgba(246,212,160,0.14) 0%, rgba(139,98,255,0.16) 48%, rgba(17,13,22,0.06) 100%),
    linear-gradient(180deg, #231825 0%, #1b121d 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 80px rgba(255,255,255,0.02), 0 24px 80px rgba(0,0,0,0.28);
}
.portrait-main::before {
  content: "";
  position: absolute;
  inset: 10% 16% 16%;
  border-radius: 999px 999px 26px 26px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,234,210,0.82), transparent 9%),
    radial-gradient(circle at 50% 20%, rgba(255,202,178,0.58), transparent 20%),
    radial-gradient(circle at 50% 12%, rgba(46,28,39,0.55), transparent 18%),
    radial-gradient(circle at 46% 44%, rgba(255,218,198,0.14), transparent 24%),
    linear-gradient(180deg, rgba(59,35,58,0.9) 0%, rgba(87,58,84,0.82) 18%, rgba(35,24,39,0.0) 19%),
    linear-gradient(180deg, #3f2a3d 0%, #6d4d65 28%, #c38c8d 46%, #7f5f70 62%, #231924 100%);
  opacity: 0.96;
}
.portrait-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f7ebf7;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-floating {
  position: absolute;
  z-index: 2;
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(17,13,22,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.hero-floating-top { top: 24px; left: 24px; }
.hero-floating-bottom { right: 24px; bottom: 146px; max-width: min(250px, calc(100% - 48px)); }
.hero-floating-label {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-floating strong { font-size: 20px; line-height: 1.1; }

.hero-badge-row {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 10px;
  max-width: 220px;
}
.hero-badge-row span {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  color: #f5ecf8;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.section { max-width: 1240px; margin: 0 auto; padding: 36px 24px 54px; }
.section-head { margin-bottom: 24px; }
.section h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.06; }

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.profile-showcase {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.profile-showcase-visual {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.profile-showcase-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,240,226,0.25), transparent 11%),
    radial-gradient(circle at 48% 22%, rgba(255,208,182,0.28), transparent 18%),
    linear-gradient(180deg, rgba(40,24,43,0.95) 0%, rgba(74,49,86,0.72) 32%, rgba(193,140,144,0.72) 58%, rgba(39,23,43,0.95) 100%);
  transform: scale(1.02);
}
.profile-showcase-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(8,7,10,0) 0%, rgba(8,7,10,0.86) 100%);
}
.profile-showcase-visual--rose::before {
  background:
    radial-gradient(circle at 55% 24%, rgba(255,233,224,0.28), transparent 10%),
    radial-gradient(circle at 48% 28%, rgba(255,197,185,0.28), transparent 18%),
    linear-gradient(180deg, rgba(62,34,50,0.95) 0%, rgba(116,66,90,0.74) 30%, rgba(219,150,155,0.76) 58%, rgba(44,23,40,0.96) 100%);
}
.profile-showcase-visual--violet::before {
  background:
    radial-gradient(circle at 48% 22%, rgba(255,241,222,0.24), transparent 10%),
    radial-gradient(circle at 50% 28%, rgba(220,194,255,0.24), transparent 18%),
    linear-gradient(180deg, rgba(45,28,64,0.96) 0%, rgba(88,62,125,0.76) 34%, rgba(124,110,193,0.72) 56%, rgba(26,18,34,0.96) 100%);
}
.profile-showcase-visual--gold::before {
  background:
    radial-gradient(circle at 52% 20%, rgba(255,238,216,0.25), transparent 9%),
    radial-gradient(circle at 48% 28%, rgba(246,208,148,0.20), transparent 18%),
    linear-gradient(180deg, rgba(56,35,25,0.96) 0%, rgba(122,88,49,0.74) 32%, rgba(198,156,101,0.70) 60%, rgba(31,20,14,0.96) 100%);
}
.profile-showcase-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f7ebf7;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-showcase-copy {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}
.profile-showcase-copy strong { font-size: 18px; }
.profile-showcase-copy span { color: var(--muted); line-height: 1.5; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.feature-card {
  border-radius: 24px;
  padding: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}
.feature-card h3 { font-size: 22px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); line-height: 1.72; margin: 0; }
.feature-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  font-size: 20px;
  font-weight: 800;
}
.feature-icon--shield { background: linear-gradient(135deg, rgba(143,99,255,0.36), rgba(61,41,89,0.9)); color: #f7f0ff; }
.feature-icon--gift { background: linear-gradient(135deg, rgba(255,92,168,0.40), rgba(88,33,61,0.92)); color: #fff3f8; }
.feature-icon--vip { background: linear-gradient(135deg, rgba(244,210,140,0.42), rgba(96,66,31,0.9)); color: #fff1cf; }

.feature-card-visual {
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}
.feature-visual-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 22%, rgba(255,92,168,0.22), transparent 16%),
    radial-gradient(circle at 80% 26%, rgba(143,99,255,0.24), transparent 22%),
    linear-gradient(180deg, rgba(16,12,22,0.32), rgba(16,12,22,0.58)),
    linear-gradient(135deg, #15101b 0%, #1f1630 50%, #0d0a13 100%);
}
.feature-phone-shell,
.download-phone-shell {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 300px;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(180deg, #18131f 0%, #0f0c14 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 38px rgba(0,0,0,0.34);
}
.feature-phone-notch,
.download-phone-notch {
  width: 38%;
  height: 14px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.feature-phone-screen,
.download-phone-screen {
  position: relative;
  width: 100%;
  height: calc(100% - 22px);
  border-radius: 24px;
  padding: 14px;
  background:
    radial-gradient(circle at top, rgba(244,210,140,0.18), transparent 24%),
    linear-gradient(180deg, #17111d 0%, #20152b 100%);
  display: grid;
  align-content: start;
  gap: 10px;
}
.screen-pill {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}
.screen-pill--small { width: 58%; }
.screen-card {
  min-height: 76px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.screen-card--accent {
  min-height: 98px;
  background: linear-gradient(135deg, rgba(255,92,168,0.24), rgba(143,99,255,0.24));
}

.luxury-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}
.lux-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.lux-list li { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); line-height: 1.5; }
.lux-panel { border-radius: 28px; padding: 24px; display: grid; gap: 14px; align-content: center; height: 100%; }
.lux-panel.deluxe { justify-items: center; text-align: center; }
.lux-emblem {
  width: min(220px, 54%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #21160c;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.16em;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.22), transparent 22%),
    linear-gradient(135deg, #f4d28c 0%, #c89642 100%);
  box-shadow: 0 22px 48px rgba(0,0,0,0.34);
}
.lux-chip {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: var(--gold);
  border: 1px solid rgba(244,210,140,0.14);
  line-height: 1.55;
  width: 100%;
  text-align: center;
}

.download-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.download-copy p { color: var(--muted); line-height: 1.72; max-width: 620px; }
.download-meta { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); align-items: center; }
.download-meta.stack { display: grid; gap: 8px; }
.download-side { display: grid; gap: 16px; }
.qr-card {
  border-radius: 30px;
  padding: 24px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.qr-head { font-size: 20px; font-weight: 700; }
.qr-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 10px;
  border-radius: 24px;
  background: #15131a;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,210,140,0.18);
}
.qr-box img { max-width: 100%; border-radius: 14px; }
.qr-url { color: var(--muted); font-size: 13px; word-break: break-word; line-height: 1.5; }
.download-gift-card {
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.download-gift-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #21160c;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #f4d28c 0%, #c89642 100%);
}
.download-gift-card strong { display: block; font-size: 16px; }
.download-gift-card span { display: block; margin-top: 4px; color: var(--muted); }

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.download-page-body { display: grid; place-items: center; }
.download-page { width: 100%; max-width: 1240px; padding: 40px 24px; position: relative; z-index: 1; }
.download-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}
.download-panel { border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.install-steps { margin: 8px 0 0; color: var(--muted); display: grid; gap: 10px; padding-left: 20px; line-height: 1.65; }
.download-visual-panel {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 360px;
  padding: 16px;
  display: block;
}
.download-visual-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,92,168,0.16), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(143,99,255,0.20), transparent 24%),
    linear-gradient(180deg, rgba(16,12,22,0.28), rgba(16,12,22,0.58)),
    linear-gradient(135deg, #15101b 0%, #1f1630 50%, #0d0a13 100%);
}
.download-phone-shell {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: min(34%, 150px);
  height: 290px;
}
.download-mini-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(18,14,24,0.86);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 300px;
}

@media (max-width: 980px) {
  .hero,
  .luxury-band,
  .download-section,
  .feature-grid,
  .profiles-grid,
  .download-layout {
    grid-template-columns: 1fr;
  }
  .hero { gap: 22px; padding-top: 24px; }
  .hero-stats { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero-art-card,
  .download-visual-panel {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    min-height: 420px;
  }
  .profile-showcase { max-width: 360px; width: 100%; margin: 0 auto; }
  .feature-card-visual { max-width: 360px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  .topbar,
  .section,
  .hero,
  .footer,
  .download-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section { padding-top: 28px; padding-bottom: 38px; }
  .eyebrow { letter-spacing: 0.16em; font-size: 11px; }
  h1 { font-size: clamp(30px, 9.5vw, 42px); line-height: 1.04; }
  .section h2 { font-size: clamp(24px, 8vw, 34px); line-height: 1.08; }
  .lead,
  .download-copy p,
  .feature-card p,
  .profile-showcase-copy span,
  .download-meta,
  .lux-list li,
  .lux-chip,
  .install-steps {
    font-size: 15px;
    line-height: 1.6;
  }
  .cta-row { width: 100%; gap: 10px; }
  .btn { width: 100%; min-height: 46px; padding: 0 16px; }
  .hero-art-card,
  .download-visual-panel {
    max-width: 300px;
    min-height: 360px;
    padding: 14px;
    border-radius: 24px;
  }
  .hero-portrait {
    right: 14px;
    width: 58%;
    min-height: 68%;
  }
  .hero-floating {
    min-width: 0;
    max-width: calc(100% - 36px);
    padding: 12px 14px;
  }
  .hero-floating strong { font-size: 18px; }
  .hero-floating-top { top: 18px; left: 18px; }
  .hero-floating-bottom { right: 18px; bottom: 116px; max-width: 170px; }
  .hero-badge-row { left: 18px; bottom: 18px; max-width: calc(100% - 180px); }
  .profile-showcase,
  .feature-card-visual { max-width: 100%; }
  .profile-showcase-visual { height: 230px; }
  .profile-showcase-copy,
  .feature-card,
  .lux-panel,
  .download-panel,
  .qr-card,
  .download-gift-card {
    padding: 16px;
    border-radius: 20px;
  }
  .feature-grid,
  .profiles-grid,
  .download-side,
  .lux-list { gap: 12px; }
  .download-meta { display: grid; gap: 6px; }
  .qr-box { width: 170px; height: 170px; }
  .lux-emblem { width: min(160px, 56%); font-size: 28px; }
  .download-phone-shell {
    top: 18px;
    right: 18px;
    width: 132px;
    height: 250px;
  }
  .download-mini-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
  .download-gift-icon { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; }
  .footer { flex-direction: column; gap: 8px; }
  .footer-links { justify-content: flex-start; }
}

.legal-page-body {
  min-height: 100vh;
}

.legal-page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 40px;
  position: relative;
  z-index: 1;
}

.legal-topbar {
  padding-left: 0;
  padding-right: 0;
}

.legal-back {
  min-height: 42px;
}

.legal-hero {
  padding: 20px 0 24px;
  max-width: 860px;
}

.legal-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-nav,
.legal-card,
.legal-mini-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.02);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.legal-nav {
  position: sticky;
  top: 20px;
  border-radius: 24px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.legal-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.legal-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(244,210,140,0.18);
}

.legal-card {
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 22px;
}

.legal-section {
  display: grid;
  gap: 10px;
}

.legal-section h2 {
  font-size: 24px;
  line-height: 1.15;
}

.legal-section p,
.legal-list li,
.legal-mini-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-mini-card {
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.legal-mini-card h3 {
  font-size: 18px;
}

.legal-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--gold);
}

@media (max-width: 980px) {
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-card {
    padding: 18px;
    border-radius: 22px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-section h2 {
    font-size: 21px;
  }
}
