:root {
  --purple-deep: #341268;
  --purple: #5b2a9d;
  --purple-light: #8b5cf6;
  --orange: #ff6a00;
  --orange-light: #ffb703;
  --red: #ef3b3b;
  --green: #1fa464;
  --green-dark: #167a4b;
  --teal: #0fa3a3;
  --teal-dark: #0b7a7a;
  --pink: #ff3d81;
  --navy: #0c1830;
  --navy-light: #16233f;
  --ink: #171a2b;
  --muted: #656c85;
  --bg: #f6f5fb;
  --white: #ffffff;
  --border: rgba(23, 26, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

a {
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn span {
  font-size: 1.1em;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--navy), var(--purple-deep));
  border-bottom: 3px solid var(--orange);
}

.topbar-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

.brand img {
  display: block;
  height: 38px;
  width: auto;
}

.mobile-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 22px;
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: #fff;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.btn-outline {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  padding: 10px 18px;
}

.btn-register {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 10px 18px;
  box-shadow: 0 10px 24px rgba(239, 59, 59, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- Rainbow zone + hero panel ---------- */
.rainbow-zone {
  position: relative;
  padding: 36px 16px 0;
  background: repeating-linear-gradient(
    125deg,
    var(--purple) 0 70px,
    var(--pink) 70px 140px,
    var(--orange) 140px 210px,
    var(--orange-light) 210px 280px,
    var(--green) 280px 350px,
    var(--teal) 350px 420px
  );
}

.hero-panel {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  background: var(--white);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 40px 90px rgba(20, 10, 50, 0.35);
  overflow: hidden;
}

.rainbow-zone.legal {
  padding-bottom: 44px;
}

.rainbow-zone.legal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 24, 0.4);
}

.rainbow-zone.legal .legal-hero {
  position: relative;
  z-index: 1;
}

.hero-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: stretch;
}

.hero-panel-col {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
}

.hero-col-purple {
  background: linear-gradient(155deg, var(--purple-deep), var(--purple));
  color: #fff;
}

.hero-col-purple h1 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.2;
  font-weight: 800;
}

.hero-col-purple p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 0.92rem;
}

.btn-cta {
  align-self: flex-start;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #ff6a3d);
  box-shadow: 0 14px 28px rgba(239, 59, 59, 0.4);
}

.hero-col-image {
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-col-navy {
  background: linear-gradient(135deg, rgb(1, 0, 16), rgb(32, 1, 32));
}

.hero-col-red {
  background: linear-gradient(135deg, rgb(253, 87, 2), rgb(206, 13, 24));
}

.hero-col-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.hero-col-image:hover img {
  transform: scale(1.03);
}

/* ---------- Latest games ---------- */
.latest-games {
  background: var(--navy);
  padding: 24px 28px 18px;
}

.latest-games-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.eyebrow-light {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.view-all {
  color: var(--orange-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.car-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
}

.car-btn:hover {
  background: rgba(255,255,255,0.16);
}

.car-track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.car-track::-webkit-scrollbar {
  display: none;
}

.game-tile,
.feat-card,
.live-card,
.bonus-extra-card {
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-tile:hover,
.feat-card:hover,
.live-card:hover,
.bonus-extra-card:hover {
  transform: translateY(-3px);
}

.game-tile {
  border-radius: 16px;
  aspect-ratio: 3 / 1;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.game-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Winners ticker ---------- */
.winners-ticker {
  background: linear-gradient(90deg, var(--purple-deep), var(--navy-light));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  overflow: hidden;
}

.ticker-label {
  flex: none;
  background: var(--orange);
  color: #2b1400;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker-track span {
  color: #fdf7ea;
  font-size: 0.85rem;
  font-weight: 500;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Overview box ---------- */
.overview-section {
  width: min(1100px, calc(100% - 32px));
  margin: 40px auto 0;
}

.overview-box {
  background: var(--white);
  border-left: 5px solid var(--orange);
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 20px 45px rgba(23, 26, 43, 0.06);
}

.overview-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ---------- Section heading helpers ---------- */
.section-title {
  text-align: center;
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 680px;
  line-height: 1.7;
}

/* ---------- Why choose ---------- */
.why-section {
  width: min(1200px, calc(100% - 32px));
  margin: 56px auto 0;
}

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

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(23, 26, 43, 0.05);
}

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}

.why-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

/* ---------- Promo duo ---------- */
.promo-zone {
  position: relative;
  padding: 34px 16px;
  background: repeating-linear-gradient(
    125deg,
    var(--purple-light) 0 60px,
    var(--pink) 60px 120px,
    var(--orange-light) 120px 180px,
    var(--teal) 180px 240px
  );
  opacity: 1;
}

.promo-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.86;
}

.promo-duo {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.promo-card {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 20px 45px rgba(23, 26, 43, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(23, 26, 43, 0.24);
}

.promo-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}

.bonus-extra-grid {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bonus-extra-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(23, 26, 43, 0.05);
}

.bonus-extra-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  background: var(--navy);
}

/* ---------- Featured games band ---------- */
.featured-band {
  position: relative;
  background: linear-gradient(160deg, var(--purple-deep), #1c0f3d);
  padding: 60px 16px 70px;
  margin-top: 10px;
}

.cloud-top::before,
.cloud-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 34px;
  background-image: radial-gradient(circle at 17px 17px, var(--bg) 17px, transparent 18px);
  background-size: 34px 34px;
  background-repeat: repeat-x;
}

.cloud-top::before {
  top: -1px;
}

.cloud-bottom::after {
  bottom: -1px;
}

.featured-heading {
  text-align: center;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 auto 32px;
}

.featured-heading span {
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

.feat-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feat-card {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.feat-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2172 / 724;
  object-fit: contain;
}

.feat-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hotpicks-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  max-width: 680px;
  margin: -18px auto 32px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.subsection-heading {
  text-align: center;
  color: #fff;
  font-size: 1.3rem;
  margin: 52px 0 24px;
}

.livetable-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.live-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.live-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2804 / 561;
  object-fit: contain;
  background: var(--navy);
}

/* ---------- Guide grid ---------- */
.guide-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 20px 45px rgba(23, 26, 43, 0.06);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.guide-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.guide-card p,
.guide-card li {
  color: var(--muted);
  line-height: 1.7;
}

.guide-card ul,
.guide-card ol {
  margin: 12px 0 0;
  padding-left: 18px;
}

.guide-card ol li {
  margin-bottom: 8px;
}

/* ---------- App features ---------- */
.appfeature-section {
  width: min(1200px, calc(100% - 32px));
  margin: 64px auto 0;
}

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

.appfeature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(23, 26, 43, 0.05);
}

.appfeature-icon {
  font-size: 1.4rem;
}

.appfeature-card h3 {
  margin: 10px 0 6px;
  font-size: 0.92rem;
  font-family: 'Poppins', sans-serif;
}

.appfeature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* ---------- Homepage narrative ---------- */
.narrative-section {
  width: min(920px, calc(100% - 32px));
  margin: 64px auto 0;
}

.narrative-block + .narrative-block {
  margin-top: 28px;
}

.narrative-block h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.narrative-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Brand band ---------- */
.brand-band {
  width: min(920px, calc(100% - 32px));
  margin: 70px auto 0;
  text-align: center;
}

.brand-word {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: 0.02em;
}

.brand-word span {
  color: #c94a00;
}

.brand-tag {
  margin: 8px 0 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.brand-copy {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.8;
}

.trust-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust-row span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(23, 26, 43, 0.05);
}

.drives-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.drive-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(23, 26, 43, 0.05);
}

.drive-card h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--purple);
  font-family: 'Poppins', sans-serif;
}

.drive-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.brand-closing {
  margin: 28px auto 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Malaysia map ---------- */
.malaysia-section {
  width: min(620px, calc(100% - 32px));
  margin: 48px auto 0;
}

.malaysia-card {
  background: linear-gradient(160deg, var(--purple-deep), var(--navy));
  border-radius: 20px;
  padding: 26px 24px 22px;
  text-align: center;
}

.malaysia-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.malaysia-sub {
  margin: 0 auto;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  font-size: 0.78rem;
}

.map-wrap {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 18px auto 0;
}

.map-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.map-pin {
  position: absolute;
  width: 0;
  height: 0;
}

.map-pin-dot {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange-light);
  border: 2px solid #fff;
  box-shadow: 0 0 0 5px rgba(255, 183, 3, 0.28);
}

.map-pin-card {
  display: none;
}

.map-pin-card strong {
  display: block;
  color: var(--orange-light);
  font-size: 0.74rem;
  margin-bottom: 2px;
}

.map-pin--below .map-pin-card {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.map-pin--right .map-pin-card {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.map-pin--left .map-pin-card {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

.map-credit {
  margin: 12px 0 0;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
}

.map-credit a {
  color: rgba(255, 255, 255, 0.55);
}

.map-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 16px;
  text-align: left;
}

.map-legend-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 8px;
}

.map-legend-item strong {
  display: block;
  color: var(--orange-light);
  font-size: 0.62rem;
  margin-bottom: 1px;
}

.map-legend-item span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.58rem;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .map-legend {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq-section {
  width: min(900px, calc(100% - 32px));
  margin: 64px auto 0;
}

.faq-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 22px;
  box-shadow: 0 14px 30px rgba(23, 26, 43, 0.05);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange);
  flex: none;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--purple-deep), var(--navy));
  padding: 56px 16px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.05) 0 40px, transparent 40px 80px);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  margin: 0 auto 14px;
  font-size: 2rem;
  max-width: 640px;
}

.final-cta p {
  margin: 0 auto 24px;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.final-cta .btn-cta {
  margin: 0 auto 22px;
}

.final-tagline {
  font-weight: 700;
  color: var(--orange-light) !important;
  margin-bottom: 8px !important;
}

.connect-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.connect-row span {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  padding: 26px 16px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.footer-links a {
  color: rgba(43, 20, 0, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: #2b1400;
}

.copyright {
  margin: 0 0 14px;
  color: rgba(43, 20, 0, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(43, 20, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials svg {
  width: 16px;
  height: 16px;
  fill: #2b1400;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 40px 16px 0;
}

.legal-hero h1 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0 0 6px;
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  font-size: 0.85rem;
}

.legal-main {
  width: min(860px, calc(100% - 32px));
  margin: 32px auto 70px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(23, 26, 43, 0.06);
  padding: 40px clamp(20px, 5vw, 56px);
}

.legal-main h2 {
  font-size: 1.15rem;
  margin: 34px 0 12px;
}

.legal-main h2:first-of-type {
  margin-top: 0;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-main ul,
.legal-main ol {
  padding-left: 20px;
  margin: 10px 0 18px;
}

.legal-main li {
  margin-bottom: 6px;
}

.legal-main strong {
  color: var(--ink);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-row {
    grid-template-columns: 1fr;
  }

  .hero-panel-col {
    min-height: 0;
    padding: 28px;
  }

  .hero-col-image {
    padding: 0;
    min-height: 280px;
  }

  .promo-duo,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .car-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bonus-extra-grid,
  .appfeature-grid,
  .drives-grid,
  .livetable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mobile-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .topbar.nav-open .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }

  .topbar.nav-open .nav-links {
    flex-direction: column;
    gap: 14px;
  }

  .topbar.nav-open .topbar-actions {
    flex-direction: column;
  }

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

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

  .bonus-extra-grid,
  .appfeature-grid,
  .drives-grid,
  .livetable-grid {
    grid-template-columns: 1fr;
  }
}
