/* ============================================
   Lumivokair — World Cup 2026 Preview Hub
   Modern iOS Sport Design · Red & Purple
   ============================================ */

:root {
  --bg-primary: #14081f;
  --bg-secondary: #1d0e2e;
  --surface: #ffffff;
  --surface-dark: #261338;
  --accent: #ff3b30;            /* iOS red */
  --accent-2: #af52de;          /* iOS purple */
  --accent-3: #ff2d55;          /* iOS pink-red */
  --grad: linear-gradient(135deg, #ff3b30 0%, #ff2d55 45%, #af52de 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,59,48,0.12), rgba(175,82,222,0.12));
  --text-light: #fdfbff;
  --text-dark: #1c1126;
  --text-muted: #6e5a82;
  --border: #ece2f4;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(60, 12, 90, 0.10);
  --shadow-hover: 0 22px 48px rgba(175, 82, 222, 0.22);
  --glow-red: 0 12px 32px rgba(255, 59, 48, 0.35);
  --glow-purple: 0 12px 32px rgba(175, 82, 222, 0.35);
  --font-display: -apple-system, "SF Pro Display", BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }

::selection { background: rgba(175, 82, 222, 0.3); }

/* ---------- Keyframe Animations ---------- */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -24px) scale(1.08); }
  66% { transform: translate(-20px, 18px) scale(0.95); }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Layout ---------- */
.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.section-light { background: var(--surface); }
.section-tint { background: #faf6fd; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: linear-gradient(160deg, var(--bg-secondary) 0%, #170a26 60%, #240c2e 100%); color: var(--text-light); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 14px 0 10px;
}
.section-head p { color: var(--text-muted); font-size: 1.02rem; }
.section-head.light p { color: #c8b4dc; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(255, 59, 48, 0.10);
  padding: 7px 16px; border-radius: 999px;
}
.section-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulseRing 2.4s infinite;
}
.section-tag.tag-amber { color: var(--accent-2); background: rgba(175, 82, 222, 0.14); }
.section-tag.tag-amber::before { background: var(--accent-2); animation-name: none; box-shadow: 0 0 10px var(--accent-2); }

/* ---------- Header (frosted iOS bar) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 8, 31, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(175, 82, 222, 0.28);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad); background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text-light);
}
.brand span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: #d6c4e8; font-size: 0.9rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}
.main-nav a:hover {
  color: #fff; background: rgba(175, 82, 222, 0.22); transform: translateY(-1px);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 10px; transition: background 0.2s; }
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--text-light); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 540px at 88% -10%, rgba(175, 82, 222, 0.30), transparent 62%),
    radial-gradient(760px 460px at -5% 112%, rgba(255, 59, 48, 0.22), transparent 60%),
    linear-gradient(150deg, #14081f 0%, #1f0c33 55%, #2a0a26 100%);
  color: var(--text-light);
  padding: 110px 0 116px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none; animation: floatBlob 14s ease-in-out infinite;
}
.hero::before { width: 380px; height: 380px; top: -120px; right: 8%; background: rgba(175, 82, 222, 0.28); }
.hero::after { width: 320px; height: 320px; bottom: -130px; left: 4%; background: rgba(255, 45, 85, 0.22); animation-delay: -7s; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero-copy { animation: fadeSlideUp 0.8s ease both; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #e3b8ff; background: rgba(175, 82, 222, 0.16);
  border: 1px solid rgba(175, 82, 222, 0.35);
  padding: 8px 18px; border-radius: 999px; margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem); line-height: 1.08; margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientShift 5s ease infinite;
}
.hero-lede { color: #cdb9e0; max-width: 560px; margin-bottom: 34px; font-size: 1.04rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons (iOS pill) ---------- */
.btn {
  display: inline-block; padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, background 0.25s, color 0.25s, filter 0.25s;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--grad); background-size: 200% auto; color: #fff;
  box-shadow: var(--glow-red);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-purple); background-position: right center; }
.btn-ghost {
  border: 2px solid rgba(175, 82, 222, 0.7); color: #e3b8ff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; transform: translateY(-3px); box-shadow: var(--glow-purple); }
.btn-small { padding: 11px 22px; font-size: 0.86rem; }

/* ---------- Hero Panel (glass card) ---------- */
.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(175, 82, 222, 0.35);
  border-radius: var(--radius-xl); padding: 32px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(20, 8, 31, 0.5);
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.07) 50%, transparent 70%);
  background-size: 200% 100%; animation: shimmer 4.5s linear infinite;
  pointer-events: none;
}
.hero-panel-title { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #ff7a72; margin-bottom: 20px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stats li {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 20px 16px; text-align: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, border-color 0.3s;
}
.hero-stats li:hover { transform: translateY(-4px) scale(1.03); background: rgba(175, 82, 222, 0.16); border-color: rgba(175, 82, 222, 0.4); }
.hero-stats strong {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1; margin-bottom: 6px;
}
.hero-stats span { font-size: 0.78rem; color: #c8b4dc; font-weight: 600; }

/* ---------- Match Index ---------- */
.match-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.index-card {
  position: relative; display: block; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px; box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
}
.index-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--grad); transition: width 0.3s ease; opacity: 0.9;
}
.index-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(175, 82, 222, 0.4); }
.index-card:hover::before { width: 9px; }
.index-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.group-chip {
  background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
}
.match-no { font-size: 0.72rem; font-weight: 700; color: #a78cc0; letter-spacing: 0.1em; text-transform: uppercase; }
.index-card h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.32rem; margin-bottom: 14px; }
.index-rows { display: grid; gap: 8px; margin-bottom: 16px; }
.index-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #f8f3fc; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 0.88rem;
  transition: background 0.25s, transform 0.25s;
}
.index-card:hover .index-row { background: #f3ebfa; }
.team-name { font-weight: 700; }
.team-name small { font-weight: 600; color: #a78cc0; margin-left: 6px; }
.stat-pair { color: #7c6691; white-space: nowrap; }
.stat-pair b { color: var(--accent); }
.index-cta { font-size: 0.88rem; font-weight: 700; color: var(--accent-2); transition: letter-spacing 0.25s; }
.index-card:hover .index-cta { letter-spacing: 0.03em; color: var(--accent); }

/* Staggered reveal for grids */
.match-index-grid .reveal:nth-child(2n) { transition-delay: 0.1s; }
.group-grid .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.group-grid .reveal:nth-child(3n) { transition-delay: 0.16s; }
.host-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.host-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.guide-grid .reveal:nth-child(2n) { transition-delay: 0.1s; }

/* ---------- Title Table ---------- */
.title-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg); padding: 14px;
  border: 1px solid rgba(175, 82, 222, 0.3);
  backdrop-filter: blur(12px);
}
.title-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.title-table th {
  text-align: left; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #d49bff; padding: 14px 18px; border-bottom: 1px solid rgba(175, 82, 222, 0.3);
}
.title-table td { padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: var(--text-light); font-weight: 600; }
.title-table tbody tr:last-child td { border-bottom: none; }
.title-table tbody tr { transition: background 0.25s, transform 0.25s; }
.title-table tbody tr:hover { background: rgba(255, 59, 48, 0.10); }
.bar-cell { position: relative; display: inline-block; min-width: 150px; padding: 4px 10px; z-index: 1; }
.bar {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.45), rgba(175, 82, 222, 0.4));
  border-radius: 6px; transform-origin: left center;
  animation: barGrow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---------- Expanded Previews ---------- */
.preview-block {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 36px; margin-bottom: 30px; box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
}
.preview-block::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad); background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}
.preview-block:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: rgba(175, 82, 222, 0.35); }
.preview-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.preview-head h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.45rem; }

.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-bottom: 24px; }
.compare-team {
  background: #f8f3fc; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.compare-team:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.compare-team.lead { border-top: 4px solid var(--accent); }
.compare-team:not(.lead) { border-top: 4px solid var(--accent-2); }
.compare-team h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.compare-team ul { display: grid; gap: 8px; }
.compare-team li { display: flex; justify-content: space-between; font-size: 0.9rem; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.compare-team li:last-child { border-bottom: none; padding-bottom: 0; }
.compare-team li span { color: var(--text-muted); }
.compare-team.lead li b { color: var(--accent); }
.compare-team:not(.lead) li b { color: var(--accent-2); }
.compare-vs {
  position: relative;
  align-self: center; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: #fff; background: var(--grad); background-size: 200% auto; border-radius: 50%;
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  animation: pulseRing 2.6s infinite, gradientShift 5s ease infinite;
}
.preview-text { color: #564468; font-size: 0.98rem; }

/* ---------- Group Race ---------- */
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
}
.group-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(175, 82, 222, 0.35); }
.group-letter {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--grad); color: #fff; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.28);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.group-card:hover .group-letter { transform: rotate(-8deg) scale(1.1); }
.group-card p { font-size: 0.92rem; color: #564468; }
.group-card b { color: var(--accent); }

/* ---------- Host Cards ---------- */
.host-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.host-card {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(175, 82, 222, 0.3);
  border-radius: var(--radius-xl); padding: 30px; text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
}
.host-card::before {
  content: ""; position: absolute; top: -60%; left: -60%; width: 220%; height: 220%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(255, 59, 48, 0.12), rgba(175, 82, 222, 0.16), transparent);
  animation: spinSlow 10s linear infinite; pointer-events: none;
}
.host-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--accent); box-shadow: var(--glow-purple); }
.host-card h3 { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--text-light); margin-bottom: 6px; }
.host-group { position: relative; display: inline-block; font-size: 0.8rem; font-weight: 700; color: #e3b8ff; margin-bottom: 18px; }
.host-stats { position: relative; display: grid; gap: 10px; }
.host-stats div {
  display: flex; justify-content: space-between; background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm); padding: 11px 16px; font-size: 0.9rem;
  transition: background 0.25s;
}
.host-card:hover .host-stats div { background: rgba(255, 255, 255, 0.1); }
.host-stats span { color: #c8b4dc; }
.host-stats b { color: #ff7a72; }

/* ---------- Guide ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.guide-card {
  background: #f8f3fc; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; border-top: 4px solid var(--accent-2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-top-color 0.3s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-top-color: var(--accent); }
.guide-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; margin-bottom: 10px; }
.guide-card p { font-size: 0.92rem; color: #564468; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 14px; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item:hover, .faq-item[open] { border-color: rgba(175, 82, 222, 0.4); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 24px; font-weight: 700; font-size: 1rem;
  position: relative; transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.4rem; font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s;
}
.faq-item[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); color: var(--accent-2); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 24px 20px; color: #564468; font-size: 0.94rem; animation: fadeSlideUp 0.4s ease both; }

/* ---------- Legal Pages ---------- */
.legal-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(175, 82, 222, 0.28), transparent 60%),
    radial-gradient(560px 360px at 0% 120%, rgba(255, 59, 48, 0.18), transparent 60%),
    linear-gradient(150deg, #14081f 0%, #1f0c33 100%);
  color: var(--text-light);
  padding: 76px 0 60px;
}
.legal-hero h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; margin: 16px 0 8px; animation: fadeSlideUp 0.7s ease both; }
.legal-updated { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #e3b8ff; }

.legal-section { padding: 64px 0 88px; }
.legal-content { max-width: 820px; }
.legal-content h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 22px 0 8px; }
.legal-content p { color: #564468; font-size: 0.97rem; margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.legal-content ul li { color: #564468; font-size: 0.95rem; margin-bottom: 6px; }
.legal-content a { color: var(--accent-2); font-weight: 600; transition: color 0.2s; }
.legal-content a:hover { color: var(--accent); text-decoration: underline; }
.legal-address {
  font-style: normal; background: #f8f3fc; border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 14px 0 18px; font-size: 0.95rem; line-height: 1.8; color: #564468;
}
.legal-backlink { margin-top: 36px; }
.legal-backlink a { color: #fff; }

.legal-table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.legal-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.legal-table th {
  text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(135deg, #1f0c33, #2a0a26); color: #e3b8ff; padding: 12px 16px;
}
.legal-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: #564468; vertical-align: top; }
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table tbody tr:nth-child(even) { background: #f8f3fc; }

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  background: rgba(20, 8, 31, 0.92);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(175, 82, 222, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 -8px 40px rgba(175, 82, 222, 0.25), 0 16px 48px rgba(20, 8, 31, 0.5);
  transform: translateY(120%); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner-inner {
  width: min(1100px, 94%); margin: 0 auto; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-text { color: #d6c4e8; font-size: 0.9rem; line-height: 1.6; max-width: 720px; }
.cookie-text strong { color: var(--text-light); }
.cookie-text a { color: #e3b8ff; font-weight: 600; text-decoration: underline; transition: color 0.2s; }
.cookie-text a:hover { color: var(--accent); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, #14081f 0%, #1d0c2e 100%);
  color: #cdb9e0;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.9fr 0.9fr 1.1fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand .brand { margin-bottom: 14px; display: inline-block; }
.footer-note { font-size: 0.88rem; line-height: 1.7; }
.footer-nav h4, .footer-contact h4 {
  color: var(--text-light); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-nav a { display: block; font-size: 0.9rem; margin-bottom: 9px; transition: color 0.2s, transform 0.2s; }
.footer-nav a:hover { color: var(--accent); transform: translateX(4px); }
.footer-contact address { font-style: normal; font-size: 0.92rem; line-height: 1.8; }
.footer-contact address a { color: #e3b8ff; transition: color 0.2s; }
.footer-contact address a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; }
.footer-bottom p { font-size: 0.84rem; color: #a78cc0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { color: #a78cc0; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--accent); }

/* ---------- Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(0.98); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cookie-banner { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

@media (max-width: 1200px) {
  .container { width: min(960px, 92%); }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .match-index-grid { grid-template-columns: 1fr; }
  .match-index-grid .reveal:nth-child(2n) { transition-delay: 0s; }
  .host-grid { grid-template-columns: 1fr; }
  .host-grid .reveal { transition-delay: 0s !important; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 36px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .compare { grid-template-columns: 1fr; }
  .compare-vs { justify-self: center; }
  .preview-block { padding: 26px 22px; }
  .legal-hero { padding: 56px 0 44px; }
  .legal-section { padding: 48px 0 64px; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; padding: 18px 0 20px; gap: 14px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(20, 8, 31, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 2px solid var(--accent-2);
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a { padding: 16px 5%; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .main-nav a:hover { transform: none; background: rgba(175, 82, 222, 0.18); }
}

@media (max-width: 480px) {
  .section { padding: 52px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .group-grid { grid-template-columns: 1fr; }
  .group-grid .reveal { transition-delay: 0s !important; }
  .index-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stat-pair { white-space: normal; }
  .btn { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
  .preview-head h3 { font-size: 1.2rem; }
  .title-table-wrap { padding: 8px; }
  .cookie-actions { width: 100%; flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}