:root {
  /* Premium DARK tier palette — deep slate, high contrast */
  --bg: #0B0F1A;
  --bg-2: #111827;
  --card: #1E293B;
  --card-elev: #334155;
  --border: #334155;
  --border-strong: #475569;
  
  /* Vibrant indigo-blue accent (kept bright for contrast) */
  --accent: #3B82F6;
  --accent-dark: #1D4ED8;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-soft: #1E3A8A;
  
  /* Teal accent */
  --teal: #14B8A6;
  --teal-dark: #0F766E;
  
  /* Text — crisp on dark */
  --text: #F8FAFC;
  --text-sec: #CBD5E1;
  --text-muted: #94A3B8;
  
  /* Depth & motion */
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 25px 60px -12px rgba(0, 0, 0, 0.5), 0 10px 15px -5px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 25px -8px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* Ensure header glassmorphism works on dark */
header {
  background: rgba(11, 15, 26, 0.88);
  border-bottom-color: var(--border);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — Premium sticky nav (dark) */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 4px 16px var(--accent-glow);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 38px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-sec);
  transition: color .2s ease, transform .15s ease;
  position: relative;
}

.nav-links a:hover { 
  color: var(--accent); 
  transform: translateY(-1px);
}

.nav-links a.active { 
  color: var(--accent); 
  font-weight: 600; 
}

/* Buttons — Premium tier (dark) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .25s cubic-bezier(0.23,1,0.32,1);
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -100%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left .6s;
}

.btn-primary:hover::after {
  left: 250%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--card-elev);
  border-color: var(--accent);
  color: var(--accent);
}

/* Play Store Header */
.play-header {
  padding: 56px 0 52px;
  background: linear-gradient(180deg, #111827 0%, #0B0F1A 100%);
  border-bottom: 1px solid var(--border);
}

.play-header-content {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}

.app-icon {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.app-icon svg {
  width: 100%;
  height: 100%;
}

.app-meta {
  flex: 1;
  min-width: 260px;
}

.app-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.03em;
}

.app-dev {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  background: #10B981;
  color: #fff;
  font-size: 0.68rem;
  border-radius: 50%;
  font-weight: 800;
  margin-left: 2px;
}

.last-updated {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.app-stats {
  display: flex;
  gap: 44px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.rating {
  text-align: left;
}

.stars {
  font-size: 1.35rem;
  color: #FBBF24;
  letter-spacing: 1px;
}

.rating-text {
  font-size: 0.95rem;
  color: var(--text-sec);
  margin-top: 2px;
}

.rating-text span {
  color: var(--text-muted);
}

.stat-item {
  text-align: left;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  min-width: 160px;
}

.btn-install {
  padding: 14px 42px;
  font-size: 1.05rem;
}

.play-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-top: 8px;
}

.play-protect {
  font-size: 0.68rem;
  color: #10B981;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.safety-note {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.app-meta-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.meta-pill {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-sec);
  font-weight: 600;
}

/* How it works */
.how-section {
  padding: 64px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.55;
}

.step-text strong {
  color: var(--text);
}

/* Screenshots */
.screenshots-section {
  padding: 56px 0 68px;
  background: var(--bg);
}

.section-header {
  margin-bottom: 26px;
}

.screenshots-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  position: relative;
}

.swipe-hint {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.6;
  pointer-events: none;
}

.phone-frame {
  width: 168px;
  height: 340px;
  background: #0F172A;
  border: 12px solid #1E293B;
  border-radius: 46px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.55);
  overflow: hidden;
  transition: transform .3s cubic-bezier(0.23,1,0.32,1), 
              box-shadow .3s ease;
}

.phone-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 35px 70px -12px rgba(0,0,0,0.6);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  background: #0B0F1A;
  border-radius: 999px;
  z-index: 2;
}

.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 4px;
  background: #334155;
  border-radius: 999px;
}

/* Screenshot mockups */
.screen-mockup {
  position: absolute;
  inset: 0;
  background: #0F172A;
  color: var(--text);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  padding-top: 38px;
  z-index: 1;
  overflow: hidden;
}

.mock-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 0.58rem;
  color: #64748B;
  z-index: 3;
}

.mock-appbar {
  background: #1E293B;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.82rem;
  border-bottom: 1px solid #334155;
  z-index: 2;
}

.mock-content {
  padding: 14px 14px 0;
  flex: 1;
  overflow: hidden;
}

.mock-search {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 14px;
  color: #64748B;
  font-size: 0.7rem;
}

.mock-search.active {
  border-color: var(--accent);
  color: var(--text);
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-item {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.66rem;
  line-height: 1.35;
}

.mock-item.small {
  padding: 7px 10px;
}

.mock-item .mock-pkg {
  display: block;
  color: #64748B;
  font-size: 0.58rem;
}

.mock-item .mock-act {
  color: #CBD5E1;
  font-weight: 600;
}

.mock-launch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.mock-launch-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.mock-launch-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.mock-launch-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px var(--accent-glow);
}

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

.mock-fav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  margin-bottom: 7px;
  font-size: 0.72rem;
}

.mock-star {
  color: #FBBF24;
  margin-left: auto;
}

.mock-result {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0 4px 10px;
}

.mock-settings {
  padding: 4px 4px 0;
}

.mock-setting-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #334155;
  font-size: 0.72rem;
}

.mock-val {
  color: var(--accent);
  font-weight: 600;
}

.mock-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  text-align: center;
  font-size: 0.58rem;
  color: #475569;
  border-top: 1px solid #334155;
}

/* Also by developer */
.also-section {
  padding: 64px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.also-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all .2s ease;
}

.also-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.also-icon {
  font-size: 2.1rem;
}

.also-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.also-desc {
  font-size: 0.88rem;
  color: var(--text-sec);
}

.also-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Final CTA Banner */
.final-cta {
  padding: 72px 0;
  background: linear-gradient(180deg, #111827 0%, #0B0F1A 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-content h2 {
  font-size: 2.1rem;
  margin: 10px 0 12px;
  font-weight: 800;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-install.big {
  padding: 16px 42px;
  font-size: 1.1rem;
}

/* About Section */
.about-section {
  padding: 76px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-section .container {
  max-width: 1260px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about-card h4 {
  font-size: 1.15rem;
  margin: 0 0 16px;
  color: var(--text);
}

.about-card p {
  color: var(--text-sec);
  line-height: 1.65;
  margin: 0 0 20px;
}

.about-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 5px 13px;
  border-radius: 999px;
  font-weight: 600;
}

.whats-new .version {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.whats-new ul {
  padding-left: 18px;
  color: var(--text-sec);
  margin: 0;
}

.whats-new li {
  margin-bottom: 6px;
}

.data-safety {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.safety-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.safety-icon {
  font-size: 1.35rem;
  margin-top: 2px;
}

.safety-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.safety-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Reviews */
.review-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.review-big {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.review-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Rating breakdown bars */
.rating-bars {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.star-label {
  width: 12px;
  color: #FBBF24;
}

.bar {
  flex: 1;
  height: 5px;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #FBBF24;
  border-radius: 999px;
}

.bar-count {
  width: 38px;
  text-align: right;
  color: var(--text-muted);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar {
  width: 28px;
  height: 28px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.review-author {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.review-stars {
  color: #FBBF24;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.5;
}

/* Hero (dark) */
.hero {
  padding: 132px 0 108px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, #0B0F1A 0%, #111827 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 820px; height: 820px;
  background: radial-gradient(circle at center, rgba(59,130,246,0.08) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59,130,246,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
}

/* Floating orb accent */
.hero .container::before {
  content: '';
  position: absolute;
  top: 22%; right: 14%;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.25;
  animation: floatOrb 16s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(32px, -22px); }
  50% { transform: translate(-14px, -38px); }
  75% { transform: translate(-26px, 18px); }
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: 3.85rem;
  margin: 18px 0 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero .subtitle {
  font-size: 1.27rem;
  color: var(--text-sec);
  max-width: 640px;
  margin: 0 auto 42px;
  line-height: 1.58;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), #E0F2FE);
  color: var(--accent-dark);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

/* Version pill (dark) */
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sec);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.version-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.35);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Compatibility row */
.compat-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 26px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-sec);
}

/* Cards — Premium tier */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 34px;
  transition: transform .35s cubic-bezier(0.23,1,0.32,1), 
              box-shadow .35s cubic-bezier(0.23,1,0.32,1), 
              border-color .2s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity .25s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  opacity: 1;
}

/* Scroll-triggered reveal */
.card {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.6s cubic-bezier(0.23,1,0.32,1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:nth-child(1) { animation-delay: 80ms; }
.card:nth-child(2) { animation-delay: 160ms; }
.card:nth-child(3) { animation-delay: 240ms; }
.card:nth-child(4) { animation-delay: 320ms; }

.card h4 {
  margin: 0 0 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.card p {
  color: var(--text-sec);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.7;
}

/* Feature cards with icons (dark) */
.feature-card {
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-soft), #1E3A8A);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(0.23,1,0.32,1), 
              background .25s ease;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05) rotate(2deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

/* Trust bar — Premium (dark) */
.trust {
  display: flex;
  justify-content: center;
  gap: 72px;
  flex-wrap: wrap;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, #111827 12%, #111827 88%, transparent);
  color: var(--text-sec);
  font-size: 0.96rem;
  font-weight: 500;
}

.trust > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trust > div::before {
  content: '●';
  color: var(--teal);
  font-size: 0.5rem;
}

/* Footer — Premium (dark) */
footer {
  background: linear-gradient(180deg, #111827 0%, #0F172A 100%);
  padding: 72px 0 42px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer-col h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-sec);
  margin-bottom: 11px;
  font-size: 0.95rem;
  transition: color .15s ease, transform .15s ease;
}

.footer-col a:hover { 
  color: var(--accent); 
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 58px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  line-height: 1.6;
}

/* Section badge */
.section-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 14px;
}

/* Legal Pages */
.legal-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: 2.7rem;
  margin: 14px 0 14px;
  color: var(--text);
}

.meta-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 28px;
}

.meta-header a { color: var(--accent); }

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 48px 0;
}

.toc {
  position: sticky;
  top: 110px;
  align-self: start;
}

.toc-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc a {
  display: block;
  padding: 10px 0;
  color: var(--text-sec);
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  padding-left: 16px;
  transition: all .15s ease;
}

.toc a:hover { color: var(--text); }

.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.legal-content {
  max-width: 740px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 48px 0 16px;
  scroll-margin-top: 100px;
  color: var(--text);
}

.legal-content p {
  color: var(--text-sec);
  margin: 0 0 16px;
}

.legal-content ul {
  color: var(--text-sec);
  padding-left: 20px;
  margin: 16px 0;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.legal-content th {
  background: var(--bg-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.legal-content tr:last-child td {
  border-bottom: none;
}

.legal-content tr:last-child td {
  border-bottom: none;
}

.callout {
  background: var(--bg-2);
  border-left: 4px solid var(--accent);
  padding: 26px 28px;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.callout h4 {
  color: var(--accent);
  margin: 0 0 8px;
  font-size: 0.98rem;
}

/* Section badge (dark) */
.section-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

/* Responsive — Premium polish */
@media (max-width: 1024px) {
  .toc { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3.15rem; }
  .play-header-content { flex-direction: column; align-items: flex-start; }
  .app-actions { align-items: flex-start; margin-top: 12px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.55rem; }
  .hero { padding: 92px 0 78px; }
  .trust { gap: 36px; padding: 32px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phone-frame { width: 138px; height: 280px; }
  .screenshots-scroll { gap: 14px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.15rem; }
  .container { padding: 0 20px; }
  .card { padding: 26px 24px; }
  .app-icon { width: 92px; height: 92px; }
  .app-title { font-size: 2.05rem; }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Premium scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Screenshot scrollbar polish */
.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}
.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}


/* Activity Launcher Pro legal-page polish */
.legal-hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 24px clamp(34px, 5vw, 58px);
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(59,130,246,.16), transparent 48%),
    linear-gradient(180deg, rgba(17,24,39,.92), rgba(11,15,26,.72));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.legal-hero::after {
  content: '';
  position: absolute;
  inset: auto 12% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.42), transparent);
}

.legal-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.badge, .section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(59,130,246,.28);
  border-radius: 999px;
  background: rgba(59,130,246,.08);
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.meta-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 960px;
  margin: 0 auto;
}

.meta-header > div {
  padding: 9px 13px;
  border: 1px solid rgba(71,85,105,.55);
  border-radius: 12px;
  background: rgba(15,23,42,.56);
  color: var(--text-sec);
  font-size: .88rem;
}

.legal-layout {
  max-width: 1160px;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.toc {
  max-height: calc(100vh - 124px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(71,85,105,.5);
  border-radius: 18px;
  background: rgba(15,23,42,.68);
  box-shadow: var(--shadow-card);
  scrollbar-width: thin;
}

.toc-label {
  margin: 2px 4px 10px;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.toc a {
  display: block;
  margin: 2px 0;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-sec);
  font-size: .84rem;
  line-height: 1.35;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.toc a:hover {
  background: rgba(59,130,246,.08);
  color: var(--text);
  transform: translateX(2px);
}

.toc a.active {
  background: rgba(59,130,246,.14);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,.22);
}

.legal-content section {
  scroll-margin-top: 106px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30,41,59,.82), rgba(15,23,42,.82));
  border: 1px solid rgba(71,85,105,.55);
  box-shadow: var(--shadow-card);
}

.legal-content section:hover {
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.38);
}

.legal-content h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.legal-content p,
.legal-content li,
.legal-content td,
.legal-content th {
  font-size: 1rem;
}

.legal-content p {
  max-width: 78ch;
}

.legal-content table {
  width: 100%;
  min-width: 640px;
  margin: 20px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.legal-content th,
.legal-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: #dbeafe;
  background: rgba(59,130,246,.08);
  font-weight: 700;
}

.legal-content tr:last-child td { border-bottom: 0; }

.legal-content code {
  padding: 2px 6px;
  border: 1px solid rgba(71,85,105,.55);
  border-radius: 7px;
  background: rgba(2,6,23,.58);
  color: #bae6fd;
  overflow-wrap: anywhere;
}

.callout, .ad-callout, .local-data-callout {
  border: 1px solid rgba(59,130,246,.22);
  border-left: 3px solid var(--accent);
  background: rgba(30,58,138,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: sticky;
    top: 92px;
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px;
  }
  .toc-label {
    display: none;
  }
  .toc a {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .legal-hero {
    border-radius: 22px;
    padding-inline: 18px;
  }
  .meta-header {
    display: grid;
    grid-template-columns: 1fr;
  }
  .meta-header > div {
    text-align: left;
  }
  .legal-content section {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .legal-content p,
  .legal-content li,
  .legal-content td,
  .legal-content th {
    font-size: .96rem;
  }
  .legal-content table {
    min-width: 560px;
  }
}

@media (max-width: 480px) {
  .legal-hero h1 { font-size: 2rem; }
  .toc { top: 76px; }
}


/* =========================================================
   ACTIVITY LAUNCHER PRO — PREMIUM LEGAL UI LAYER
   ========================================================= */

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

::selection {
  background: rgba(59, 130, 246, .30);
  color: var(--text);
}

body.legal-page {
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(59,130,246,.10), transparent 60%),
    radial-gradient(800px 520px at 95% 15%, rgba(20,184,166,.06), transparent 65%),
    linear-gradient(180deg, #080d18 0%, var(--bg) 42%, #09101c 100%);
}

/* Header */
.legal-page header {
  background: rgba(7, 12, 22, .78);
  border-bottom: 1px solid rgba(148,163,184,.14);
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
}

.legal-page header.scrolled {
  background: rgba(7, 12, 22, .94);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}

.legal-page .nav {
  min-height: 74px;
}

.legal-page .logo {
  gap: 11px;
}

.legal-page .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.26), transparent 35%),
    linear-gradient(135deg, #38bdf8 0%, #2563eb 58%, #1d4ed8 100%);
  box-shadow:
    0 8px 28px rgba(37,99,235,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.legal-page .nav-links {
  gap: 28px;
}

.legal-page .nav-links a {
  position: relative;
  padding: 9px 0;
}

.legal-page .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  transition: right .22s ease;
}

.legal-page .nav-links a:hover::after,
.legal-page .nav-links a.active::after {
  right: 0;
}

/* Premium legal hero */
.legal-page .legal-hero {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 74px 54px 62px !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(135deg, rgba(30,41,59,.78), rgba(10,18,32,.88)),
    radial-gradient(500px 180px at 50% 0%, rgba(59,130,246,.15), transparent 75%);
  box-shadow:
    0 30px 80px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.legal-page .legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(96,165,250,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.legal-page .legal-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  top: -180px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.14), transparent 65%);
  pointer-events: none;
}

.legal-page .legal-hero > * {
  position: relative;
  z-index: 1;
}

.legal-page .legal-hero .badge {
  background: rgba(59,130,246,.12);
  color: #7dd3fc;
  border-color: rgba(96,165,250,.24);
  box-shadow: 0 6px 24px rgba(37,99,235,.10);
  backdrop-filter: blur(10px);
}

.legal-page .legal-hero h1 {
  max-width: 860px;
  margin: 18px auto 16px;
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -0.045em;
  text-shadow: 0 10px 40px rgba(0,0,0,.24);
}

.legal-page .meta-header {
  max-width: 1020px;
  margin: 30px auto 0;
  justify-content: center;
  gap: 10px;
}

.legal-page .meta-header > div {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.15);
  background: rgba(15,23,42,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.legal-page .meta-header strong {
  color: var(--text);
}

.legal-page .meta-header a {
  color: #7dd3fc;
  text-underline-offset: 3px;
}

/* Legal content layout */
.legal-page .legal-layout {
  max-width: 1180px;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  padding: 42px 0 86px;
}

.legal-page .toc {
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 20px;
  background: rgba(15,23,42,.48);
  box-shadow: 0 22px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
}

.legal-page .toc-label {
  margin: 2px 8px 12px;
  color: #7dd3fc;
  letter-spacing: 2px;
}

.legal-page .toc a {
  margin: 2px 0;
  padding: 9px 11px 9px 14px;
  border-left: 2px solid transparent;
  border-radius: 10px;
  font-size: .89rem;
  color: #aebed1;
}

.legal-page .toc a:hover {
  color: #f8fafc;
  background: rgba(59,130,246,.08);
}

.legal-page .toc a.active {
  color: #e0f2fe;
  background: linear-gradient(90deg, rgba(59,130,246,.16), rgba(59,130,246,.03));
  border-left-color: #38bdf8;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,.08);
}

/* Content cards */
.legal-page .legal-content {
  max-width: 860px;
}

.legal-page .legal-content section {
  position: relative;
  padding: 32px 34px;
  margin-bottom: 20px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.14) !important;
  background:
    linear-gradient(180deg, rgba(30,41,59,.84), rgba(15,23,42,.74));
  box-shadow:
    0 18px 50px rgba(0,0,0,.19),
    inset 0 1px 0 rgba(255,255,255,.025);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.legal-page .legal-content section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56,189,248,.9), rgba(59,130,246,.08));
  opacity: .25;
  transition: opacity .22s ease;
}

.legal-page .legal-content section:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.30) !important;
  box-shadow:
    0 26px 60px rgba(0,0,0,.24),
    0 0 0 1px rgba(59,130,246,.04);
}

.legal-page .legal-content section:hover::before {
  opacity: .9;
}

.legal-page .legal-content h2 {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 14px 0;
  border-bottom: 1px solid rgba(148,163,184,.12);
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  letter-spacing: -0.02em;
}

.legal-page .legal-content h2::before {
  content: attr(data-section);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 24px;
  margin-right: 10px;
  border-radius: 7px;
  color: #7dd3fc;
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(96,165,250,.16);
  font-size: .7rem;
  letter-spacing: .08em;
  vertical-align: 2px;
}

.legal-page .legal-content p,
.legal-page .legal-content li {
  color: #c9d5e4;
}

.legal-page .legal-content p {
  max-width: 74ch;
  line-height: 1.82;
}

.legal-page .legal-content a {
  color: #7dd3fc;
  text-decoration: underline;
  text-decoration-color: rgba(125,211,252,.28);
  text-underline-offset: 3px;
}

.legal-page .legal-content a:hover {
  color: #bae6fd;
  text-decoration-color: currentColor;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  max-width: 74ch;
}

.legal-page .legal-content li::marker {
  color: #60a5fa;
}

/* Callouts */
.legal-page .callout,
.legal-page .ad-callout,
.legal-page .local-data-callout {
  border: 1px solid rgba(96,165,250,.18);
  border-left: 3px solid #38bdf8;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(59,130,246,.10), rgba(15,23,42,.38));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

/* Tables */
.legal-page .legal-content table {
  border-radius: 16px;
  overflow: hidden;
  border-color: rgba(148,163,184,.16);
}

.legal-page .legal-content th,
.legal-page .legal-content td {
  padding: 12px 14px;
  border-color: rgba(148,163,184,.12);
}

/* Legal footer */
.legal-page footer {
  margin-top: 10px;
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(59,130,246,.08), transparent 70%),
    linear-gradient(180deg, #0f172a, #080d16);
}

.legal-page .footer-bottom {
  align-items: center;
}

.legal-page .footer-bottom a {
  color: #7dd3fc;
}

/* Floating back-to-top control added by JS */
.legal-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
  background: rgba(15,23,42,.82);
  color: #dbeafe;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.legal-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.legal-top:hover {
  border-color: rgba(56,189,248,.38);
  color: #7dd3fc;
}

@media (max-width: 980px) {
  .legal-page .legal-hero {
    margin-inline: 16px;
    padding: 58px 28px 46px !important;
  }

  .legal-page .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-inline: 16px;
  }

  .legal-page .toc {
    position: relative;
    top: auto;
    max-height: none;
  }

  .legal-page .toc a {
    display: inline-block;
    margin: 3px 4px 3px 0;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .legal-page .toc a.active {
    border-left-color: transparent;
    border-bottom-color: #38bdf8;
  }
}

@media (max-width: 700px) {
  .legal-page .nav {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: flex-start;
    gap: 12px;
  }

  .legal-page .nav-links {
    max-width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .legal-page .nav-links::-webkit-scrollbar {
    display: none;
  }

  .legal-page .nav .btn {
    display: none;
  }

  .legal-page .legal-hero {
    padding: 48px 18px 34px !important;
    border-radius: 22px !important;
  }

  .legal-page .legal-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }

  .legal-page .meta-header {
    justify-content: stretch;
  }

  .legal-page .meta-header > div {
    width: 100%;
    text-align: left;
  }

  .legal-page .legal-content section {
    padding: 26px 22px;
    border-radius: 18px;
  }

  .legal-page .legal-content h2::before {
    width: 30px;
    height: 22px;
    margin-right: 7px;
  }

  .legal-top {
    right: 14px;
    bottom: 14px;
  }
}

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

  .legal-page *,
  .legal-page *::before,
  .legal-page *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* =========================================================
   FINAL LEGAL UI HARDENING
   Ensures the premium legal layout survives stale/cached
   styles or partially applied earlier rules.
   ========================================================= */
html, body { min-height: 100%; }
body.legal-page {
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(59,130,246,.13), transparent 62%),
    radial-gradient(850px 520px at 95% 5%, rgba(20,184,166,.075), transparent 64%),
    #080d18 !important;
  color: #f8fafc !important;
}

.legal-page header {
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(8,13,24,.82) !important;
  border-bottom: 1px solid rgba(148,163,184,.16) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.legal-page header .container.nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: min(1200px, calc(100% - 32px)) !important;
  min-height: 72px !important;
  margin: 0 auto !important;
  padding: 12px 0 !important;
}

.legal-page .logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  color: #f8fafc !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.legal-page .logo-mark {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(135deg,#38bdf8,#2563eb 62%,#1d4ed8) !important;
  box-shadow: 0 8px 26px rgba(37,99,235,.28) !important;
}

.legal-page .nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}

.legal-page .nav-links a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  color: #cbd5e1 !important;
  font-size: .94rem !important;
  padding: 6px 2px !important;
}

.legal-page .nav-links a:hover,
.legal-page .nav-links a.active {
  color: #7dd3fc !important;
}

.legal-page main,
.legal-page .container { width: 100%; }

.legal-page > .container {
  width: min(1200px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}

.legal-page .legal-hero {
  width: 100% !important;
  margin: 28px 0 0 !important;
  padding: 62px 46px 54px !important;
  text-align: center !important;
  border-radius: 28px !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  background:
    linear-gradient(145deg, rgba(30,41,59,.78), rgba(10,18,32,.92)) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03) !important;
  overflow: hidden !important;
}

.legal-page .legal-hero h1 {
  margin: 16px auto 18px !important;
  color: #f8fafc !important;
  font-size: clamp(2.45rem, 5vw, 4.6rem) !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}

.legal-page .legal-hero .badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(96,165,250,.22) !important;
  background: rgba(59,130,246,.12) !important;
  color: #7dd3fc !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
}

.legal-page .meta-header {
  width: min(980px, 100%) !important;
  margin: 28px auto 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
}

.legal-page .meta-header > div {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(148,163,184,.15) !important;
  background: rgba(15,23,42,.56) !important;
  color: #cbd5e1 !important;
}

.legal-page .meta-header strong { color:#f8fafc !important; }

.legal-page .legal-layout {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0,1fr) !important;
  gap: 36px !important;
  align-items: start !important;
  padding: 38px 0 84px !important;
}

.legal-page .toc {
  position: sticky !important;
  top: 94px !important;
  align-self: start !important;
  max-height: calc(100vh - 116px) !important;
  overflow: auto !important;
  padding: 14px !important;
  border: 1px solid rgba(148,163,184,.14) !important;
  border-radius: 18px !important;
  background: rgba(15,23,42,.54) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.18) !important;
}

.legal-page .toc-label {
  margin: 4px 8px 10px !important;
  color: #7dd3fc !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .17em !important;
}

.legal-page .toc a {
  display: block !important;
  width: 100% !important;
  margin: 2px 0 !important;
  padding: 10px 11px !important;
  border-left: 2px solid transparent !important;
  border-radius: 10px !important;
  color: #aebed1 !important;
  font-size: .9rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.legal-page .toc a:hover,
.legal-page .toc a.active {
  color: #e0f2fe !important;
  background: rgba(59,130,246,.09) !important;
  border-left-color: #38bdf8 !important;
}

.legal-page .legal-content {
  width: 100% !important;
  max-width: 900px !important;
  min-width: 0 !important;
}

.legal-page .legal-content section {
  position: relative !important;
  margin: 0 0 18px !important;
  padding: 30px 32px !important;
  border: 1px solid rgba(148,163,184,.14) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(30,41,59,.88), rgba(15,23,42,.78)) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.022) !important;
}

.legal-page .legal-content h2 {
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(148,163,184,.12) !important;
  color: #f8fafc !important;
  font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
  line-height: 1.25 !important;
  scroll-margin-top: 100px !important;
}

.legal-page .legal-content p,
.legal-page .legal-content li {
  color: #cbd5e1 !important;
  font-size: 1rem !important;
  line-height: 1.82 !important;
}

.legal-page .legal-content p { margin: 0 0 15px !important; }

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  margin: 14px 0 16px 20px !important;
}

.legal-page .callout,
.legal-page .ad-callout,
.legal-page .local-data-callout {
  padding: 20px 22px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(96,165,250,.18) !important;
  border-left: 3px solid #38bdf8 !important;
  background: rgba(59,130,246,.075) !important;
}

.legal-page footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 34px 0 !important;
  border-top: 1px solid rgba(148,163,184,.12) !important;
  background: #0b1220 !important;
}

.legal-page footer .container,
.legal-page footer .footer-bottom {
  width: min(1200px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}

.legal-page .footer-bottom {
  color: #94a3b8 !important;
  font-size: .85rem !important;
}

@media (max-width: 980px) {
  .legal-page .legal-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .legal-page .toc {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
  }
  .legal-page .toc a {
    display: inline-flex !important;
    width: auto !important;
    margin-right: 5px !important;
    border-left: 0 !important;
    border-bottom: 2px solid transparent !important;
  }
  .legal-page .toc a:hover,
  .legal-page .toc a.active {
    border-left: 0 !important;
    border-bottom-color: #38bdf8 !important;
  }
}

@media (max-width: 720px) {
  .legal-page header .container.nav {
    width: calc(100% - 24px) !important;
    min-height: 64px !important;
  }
  .legal-page .nav-links {
    gap: 12px !important;
  }
  .legal-page .nav-links a {
    font-size: .85rem !important;
  }
  .legal-page > .container,
  .legal-page footer .container {
    width: calc(100% - 24px) !important;
  }
  .legal-page .legal-hero {
    margin-top: 16px !important;
    padding: 42px 18px 34px !important;
    border-radius: 22px !important;
  }
  .legal-page .legal-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem) !important;
  }
  .legal-page .meta-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .legal-page .meta-header > div {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .legal-page .legal-layout {
    padding-top: 24px !important;
  }
  .legal-page .legal-content section {
    padding: 24px 20px !important;
    border-radius: 17px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page *, .legal-page *::before, .legal-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
