:root {
  --bg: #f8fcff;
  --text: #0a0a0a;
  --muted: #505050;
  --cyan: #01cffe;
  --cyan-text: #02d0ff;
  --blue-label: #01aeea;
  --blue-num: #12b5f5;
  --blue-pill: #02bafc;
  --blue-border: #0260fd;
  --navy: #01224a;
  --navy-2: #021f42;
  --testi-bg: #d7f7ff;
  --footer-blue: #0b6fb8;
  --line: #e2e6ea;
  --container: 1840px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1200px) { .container { padding: 0 40px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(0, 40, 80, 0.06), 0 6px 20px rgba(0, 60, 120, 0.05);
}
.site-header .container {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 64px; height: 64px; }
.brand-name { font-size: 24px; line-height: 1.1; color: #0a0a0a; }
.brand-name b { display: block; font-weight: 700; }
.brand-name span { display: block; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 62px; }
.nav ul { display: flex; align-items: center; gap: 62px; }
.nav a {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.active { color: #222; border-bottom-color: #222; }
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: #222;
  cursor: pointer;
  user-select: none;
  background: none;
  border: 0;
  font-family: inherit;
}
.lang .flag {
  width: 22px; height: 22px; border-radius: 50%; background: #d9d9d9;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; overflow: hidden;
}
.lang svg { width: 14px; height: 14px; transition: transform .2s; }
.lang[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Flags as inline SVG backgrounds (emoji flags don't render on Windows) */
.flag[data-f] { background-size: cover; background-position: center; background-repeat: no-repeat; }
.flag[data-f="en"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23C8102E' stroke-width='2'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E"); }
.flag[data-f="ms"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Crect width='28' height='14' fill='%23fff'/%3E%3Cpath d='M0 .5h28M0 2.5h28M0 4.5h28M0 6.5h28M0 8.5h28M0 10.5h28M0 12.5h28' stroke='%23CC0001' stroke-width='1'/%3E%3Crect width='14' height='8' fill='%23010066'/%3E%3Ccircle cx='6' cy='4' r='2.6' fill='%23FFCC00'/%3E%3Ccircle cx='7' cy='4' r='2.2' fill='%23010066'/%3E%3Cpath d='M9.6 1.6l.6 1.6 1.7.1-1.3 1 .5 1.6-1.5-.9-1.5.9.5-1.6-1.3-1 1.7-.1z' fill='%23FFCC00'/%3E%3C/svg%3E"); }
.flag[data-f="zh"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23DE2910'/%3E%3Cpath d='M5 3l1.2 3.6h3.8l-3.1 2.2 1.2 3.6L5 10.2 1.9 12.4l1.2-3.6L0 6.6h3.8z' fill='%23FFDE00'/%3E%3C/svg%3E"); }
.lang-wrap { position: relative; }
.nav .lang-menu {
  display: block;
  position: absolute;
  top: calc(100% + 12px); right: 0;
  min-width: 190px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 40, 80, 0.16);
  padding: 8px;
  z-index: 60;
}
.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: #222;
  cursor: pointer;
  white-space: nowrap;
}
.nav .lang-menu[hidden] { display: none; }
.lang-menu li .flag { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; }
.lang-menu li:hover { background: #eaf7ff; }
.lang-menu li[aria-selected="true"] { color: var(--blue-label); font-weight: 600; }

.nav-close, .nav-backdrop, .nav-head, .nav-foot { display: none; }
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { width: 24px; height: 2px; background: #222; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Banner image at natural ratio; the white strip overlaps its bottom ~100px
   and hangs below it over the plain page background (as in the Figma). */
.hero { position: relative; background: var(--bg); }
.hero-banner img { width: 100%; height: auto; }
.hero-banner img.sm { display: none; }

.strip {
  position: relative;
  z-index: 2;
  width: calc(100% - 80px);
  max-width: 1845px;
  margin: -102px auto 0;
  background: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 80, 140, 0.06);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.news-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--cyan);
  border-radius: 24px;
  padding: 12px 24px 12px 22px;
  min-height: 143px;
  color: var(--navy);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(1, 207, 254, 0.35); }
.news-card img {
  width: 160px; height: 117px;
  flex: 0 0 160px;
  object-fit: cover;
  border-radius: 8px;
}
.news-card .cat { font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--navy); }
.news-card .desc {
  font-size: 17px; font-weight: 500; line-height: 1.35;
  color: var(--navy-2);
  margin: 8px 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .date { font-size: 18px; font-weight: 700; color: #fff; }

/* Slider dots (mobile only) */
.strip-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.strip-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0; padding: 0;
  background: #bfeaff;
  cursor: pointer;
  transition: width .25s, background .25s;
}
.strip-dots button.active { width: 22px; background: var(--cyan); }

/* ---------- Motorsports News ---------- */
.news {
  padding-top: 6px;
}
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 752px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue-label);
}
.news h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 4px 0 28px;
  color: #000;
}
.top-story img {
  width: 100%; height: 400px;
  object-fit: cover;
  border-radius: 16px;
}
.top-story .meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px;
}
.pill {
  display: inline-block;
  background: var(--blue-pill);
  color: #fff;
  font-size: 16px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 20px;
  line-height: 1;
}
.top-story .meta .sep { width: 1px; height: 28px; background: #c9ced3; margin: 0 4px; }
.top-story .meta .date { font-size: 17px; font-weight: 500; color: #4a4a4a; }
.top-story h3 {
  font-size: 22px; font-weight: 700; line-height: 1.3;
  margin-top: 18px;
  color: #000;
  max-width: 700px;
}
.top-story h3 a:hover { color: var(--blue-label); }

.list-box {
  margin-top: 7px;
  border: 2px solid var(--blue-border);
  border-radius: 28px;
  padding: 24px 32px 14px;
  background: var(--bg);
}
.list-box .view-all {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cyan-text);
  padding: 4px 4px 12px;
}
.list-box .view-all svg { width: 20px; height: 20px; }
.list-box .view-all:hover { color: var(--blue-label); }
.list-box li { border-bottom: 1px solid #e6e8ea; }
.list-box li:last-child { border-bottom: 0; }
.list-box li a {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 6px;
  padding: 24px 6px 20px;
}
.list-box li a:hover .t { color: var(--blue-label); }
.list-box .n { font-size: 24px; font-weight: 700; color: var(--blue-num); line-height: 1; }
.list-box .t { font-size: 17px; font-weight: 700; line-height: 1.35; color: #000; max-width: 660px; }
.list-box .d { grid-column: 2; font-size: 15px; font-weight: 500; color: #555; margin-top: 10px; }

/* ---------- Testimonials ---------- */
.testimonials {
  margin-top: 50px;
  background: var(--testi-bg);
  border-radius: 28px;
  padding: 48px 125px 64px;
}
.testimonials h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 100px;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}
.testi-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 70px 30px 36px;
  text-align: center;
  min-height: 282px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testi-card .avatar {
  position: absolute;
  top: -56px; left: 50%;
  transform: translateX(-50%);
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.testi-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.testi-card p { font-size: 18px; line-height: 1.3; color: #111; }
.testi-card .stars { margin-top: auto; padding-top: 26px; font-size: 22px; letter-spacing: 4px; color: #000; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 32px; }
.footer-top {
  border-top: 1px solid var(--line);
  padding-top: 70px;
  display: flex;
  gap: 40px;
}
.footer-brand { flex: 0 0 821px; max-width: 821px; }
.footer-brand .brand img { width: 68px; height: 68px; }
.footer-brand .brand-name { font-size: 28px; }
.footer-brand .desc { font-size: 20px; line-height: 1.25; color: #111; margin-top: 26px; max-width: 480px; }
.footer-brand .tag {
  margin-top: 24px;
  font-size: 20px; font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  color: #0c6db5;
  max-width: 480px;
}
.footer-cols {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-col h4 {
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--footer-blue);
  margin-bottom: 22px;
}
.footer-col li { font-size: 17px; line-height: 25px; color: #111; }
.footer-col a:hover { color: var(--footer-blue); }
.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 50px 0 42px;
  font-size: 16px;
  color: #111;
}

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip { width: calc(100% - 40px); }
  .news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .testimonials { padding-left: 60px; padding-right: 60px; }
  .testi-grid { gap: 40px; }
  .footer-brand { flex-basis: 45%; }
}
@media (max-width: 1100px) {
  .site-header .container { height: 80px; }
  .nav ul, .nav { gap: 32px; }
  .nav a { font-size: 15px; }
  .news-grid { grid-template-columns: 1fr; }
  .top-story img { height: auto; aspect-ratio: 752 / 400; }
  .testi-grid { grid-template-columns: 1fr; gap: 80px; }
  .testi-card { max-width: 560px; margin: 0 auto; }
  .footer-top { flex-direction: column; gap: 48px; }
  .footer-brand { flex-basis: auto; max-width: none; }
}
@media (max-width: 760px) {
  :root { --container: 100%; }
  .container { padding: 0 16px; }

  /* header */
  .site-header .container { height: 64px; }
  .brand { gap: 10px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 16px; }
  .menu-btn { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #fff;
    box-shadow: -16px 0 40px rgba(0, 40, 80, 0.18);
    display: flex;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 70;
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 12px 14px 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-head .brand { gap: 10px; }
  .nav-head .brand img { width: 40px; height: 40px; }
  .nav-head .brand-name { font-size: 15px; }
  .nav-close {
    display: block;
    position: relative;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #f1f7fb;
    border: 0; background: none; cursor: pointer;
    color: #222; font-size: 0;
  }
  .nav-close::before, .nav-close::after {
    content: ''; position: absolute; left: 13px; top: 21px;
    width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  }
  .nav ul { padding: 12px 12px 4px; }
  .nav li + li { margin-top: 4px; }
  .nav-close::before { transform: rotate(45deg); }
  .nav-close::after { transform: rotate(-45deg); }
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(1, 34, 74, 0.45);
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
    z-index: 65;
  }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  body.nav-locked { overflow: hidden; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    font-size: 16px; font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #222;
    border-radius: 12px;
    border-bottom: 0;
  }
  .nav ul a::after {
    content: ''; width: 8px; height: 8px;
    border-right: 2px solid #b8c4ce; border-top: 2px solid #b8c4ce;
    transform: rotate(45deg);
    flex: 0 0 auto;
  }
  .nav ul a:hover { color: #222; border-bottom-color: transparent; background: #f4f9fd; }
  .nav ul a.active { background: #eaf7ff; color: var(--blue-label); border-bottom-color: transparent; }
  .nav ul a.active::after { border-color: var(--blue-label); }
  .nav-head .brand { padding: 0; border: 0; text-transform: none; letter-spacing: 0; color: #0a0a0a; font-size: 15px; }
  .nav .lang-wrap {
    margin: auto 12px 0;
    padding: 16px 0 12px;
    border-top: 1px solid var(--line);
  }
  .nav .lang-wrap::before {
    content: 'Language';
    display: block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: #8a96a3;
    margin: 0 4px 8px;
  }
  .lang {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 15px; font-weight: 600;
    border: 1px solid #dfe6ec;
    border-radius: 12px;
    background: #fff;
  }
  .lang > span:nth-child(2) { flex: 1; text-align: left; }
  .lang[aria-expanded="true"] { border-color: var(--cyan); }
  .nav .lang-menu {
    position: static;
    box-shadow: none;
    min-width: 0;
    margin-top: 6px;
    padding: 6px;
    border: 1px solid #dfe6ec;
    border-radius: 12px;
    background: #fff;
  }
  .nav-foot {
    padding: 12px 24px 20px;
    font-size: 12px; color: #8a96a3;
  }

  /* hero: whole banner visible, strip overlaps its bottom edge slightly */
  .hero-banner img.lg { display: none; }
  .hero-banner img.sm { display: block; }
  .strip {
    width: auto;
    margin: -18px 12px 0;
    border-radius: 18px;
    padding: 12px;
  }
  .strip-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .strip-grid::-webkit-scrollbar { display: none; }
  .strip-dots { display: flex; }
  .news-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    min-height: 0;
    border-radius: 18px;
  }
  .news-card img { width: 108px; height: 80px; flex-basis: 108px; }
  .news-card .cat { font-size: 16px; }
  .news-card .desc { font-size: 13px; margin: 4px 0 6px; }
  .news-card .date { font-size: 13px; }

  /* news */
  .news { padding-top: 22px; }
  .eyebrow { font-size: 13px; }
  .news h2 { font-size: 28px; margin: 4px 0 18px; }
  .news-grid { gap: 24px; }
  .top-story img { border-radius: 12px; }
  .top-story .meta { margin-top: 16px; gap: 10px; }
  .pill { font-size: 13px; padding: 6px 12px; }
  .top-story .meta .sep { height: 22px; }
  .top-story .meta .date { font-size: 14px; }
  .top-story h3 { font-size: 18px; margin-top: 12px; }
  .list-box { border-radius: 18px; padding: 14px 16px 6px; margin-top: 0; }
  .list-box .view-all { font-size: 14px; padding: 4px 2px 8px; }
  .list-box li a { grid-template-columns: 36px 1fr; padding: 16px 2px 14px; }
  .list-box .n { font-size: 20px; }
  .list-box .t { font-size: 15px; }
  .list-box .d { font-size: 13px; margin-top: 6px; }

  /* testimonials */
  .testimonials {
    margin-top: 32px;
    border-radius: 18px;
    padding: 28px 16px 36px;
  }
  .testimonials h2 { font-size: 22px; margin-bottom: 72px; }
  .testi-grid { gap: 72px; }
  .testi-card { border-radius: 18px; padding: 58px 20px 26px; min-height: 0; }
  .testi-card .avatar { width: 92px; height: 92px; top: -46px; }
  .testi-card h3 { font-size: 19px; margin-bottom: 10px; }
  .testi-card p { font-size: 15px; }
  .testi-card .stars { padding-top: 18px; font-size: 18px; }

  /* footer */
  .site-footer { margin-top: 28px; }
  .footer-top { padding-top: 32px; gap: 32px; }
  .footer-brand .brand img { width: 48px; height: 48px; }
  .footer-brand .brand-name { font-size: 20px; }
  .footer-brand .desc { font-size: 15px; margin-top: 18px; }
  .footer-brand .tag { font-size: 14px; margin-top: 16px; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 12px; }
  .footer-col li { font-size: 15px; line-height: 24px; }
  .footer-bottom { margin-top: 32px; padding: 22px 0 28px; font-size: 13px; }
}

/* ---------- Inner pages (About Us / Contact Us) ---------- */
.page-hero {
  background: linear-gradient(120deg, #cfeafc 0%, #e6f5fe 55%, #f3fafe 100%);
  padding: 64px 0 72px;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 6px 0 18px;
  color: #000;
}
.page-hero .lead {
  font-size: 20px;
  line-height: 1.5;
  color: #111;
  max-width: 900px;
}
.page-body { padding-top: 56px; padding-bottom: 24px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.info-card {
  background: #fff;
  border: 2px solid var(--blue-border);
  border-radius: 24px;
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.info-card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--cyan);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.info-card .icon svg { width: 28px; height: 28px; }
.info-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: #000; }
.info-card p { font-size: 17px; line-height: 1.55; color: #222; }
.info-card.live { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.info-card.live .icon { background: #fff; }
.info-card.live h3 { color: var(--navy); }
.info-card.live p { color: var(--navy-2); }
.info-card .status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 10px;
}
.info-card .status::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: #17d15c; box-shadow: 0 0 0 4px rgba(23, 209, 92, 0.25);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: auto;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--blue-pill);
  color: #fff;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.info-card p + .btn { margin-top: 24px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(2, 186, 252, 0.35); }
.btn.dark { background: var(--navy); }
.btn.dark:hover { box-shadow: 0 10px 22px rgba(1, 34, 74, 0.3); }
.commit-band {
  margin-top: 32px;
  background: var(--testi-bg);
  border-radius: 28px;
  padding: 44px 48px;
  display: flex; align-items: center; gap: 36px;
}
.commit-band img { width: 88px; height: 88px; flex: 0 0 88px; }
.commit-band p { font-size: 19px; line-height: 1.5; color: #111; }

@media (max-width: 1100px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-grid .info-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .page-hero { padding: 32px 0 36px; }
  .page-hero h1 { font-size: 32px; margin: 4px 0 12px; }
  .page-hero .lead { font-size: 16px; }
  .page-body { padding-top: 28px; padding-bottom: 8px; }
  .info-grid, .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-grid .info-card:last-child { grid-column: auto; }
  .info-card { border-radius: 18px; padding: 24px 20px 26px; }
  .info-card .icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; }
  .info-card h3 { font-size: 19px; }
  .info-card p { font-size: 15px; }
  .commit-band { margin-top: 16px; border-radius: 18px; padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .commit-band img { width: 56px; height: 56px; flex-basis: 56px; }
  .commit-band p { font-size: 15px; }
}

/* ---------- Terms & Conditions page ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.toc-wrap { position: sticky; top: 116px; }
.toc {
  border: 2px solid var(--blue-border);
  border-radius: 24px;
  background: #fff;
  padding: 18px 20px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}
.toc summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--blue-label);
  display: flex; align-items: center; justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ''; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s; margin-right: 4px;
}
.toc[open] summary::after { transform: rotate(-135deg); }
.toc nav { margin-top: 12px; }
.toc-group {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #777; margin: 14px 0 6px;
}
.toc-group:first-child { margin-top: 4px; }
.toc a {
  display: block;
  font-size: 14px; line-height: 1.35;
  color: #333;
  padding: 6px 8px;
  border-radius: 8px;
}
.toc a:hover { background: #eaf7ff; color: var(--blue-label); }
.toc a.active { background: #eaf7ff; color: var(--blue-label); font-weight: 700; }

.legal {
  background: #fff;
  border: 2px solid var(--blue-border);
  border-radius: 24px;
  padding: 40px 48px 48px;
  color: #222;
}
.legal section { scroll-margin-top: 116px; }
.legal-note {
  background: var(--testi-bg);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--navy);
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 24px; font-weight: 800; color: #000;
  margin: 40px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal h2.legal-title {
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.legal .legal-note + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 18px; font-weight: 700; color: #000; margin: 26px 0 10px; }
.legal h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 18px 0 8px; }
.legal p { font-size: 16px; line-height: 1.65; margin: 0 0 12px; }
.legal ul { list-style: disc; padding-left: 24px; margin: 0 0 14px; }
.legal li { font-size: 16px; line-height: 1.6; margin: 6px 0; }
.legal .num { color: var(--blue-num); font-weight: 700; margin-right: 6px; }
.legal a { color: var(--blue-label); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal a:hover { color: var(--blue-border); }

@media (max-width: 1100px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc-wrap { position: static; }
  .toc { max-height: none; }
  .toc nav { columns: 2; column-gap: 20px; }
  .toc-group { break-after: avoid; }
  .toc a { break-inside: avoid; }
  .legal { padding: 28px 28px 32px; }
  .legal section { scroll-margin-top: 96px; }
}
@media (max-width: 760px) {
  .toc { border-radius: 18px; padding: 14px 16px; }
  .toc nav { columns: 1; }
  .legal { border-radius: 18px; padding: 20px 16px 24px; }
  .legal section { scroll-margin-top: 76px; }
  .legal h2 { font-size: 20px; margin: 28px 0 10px; padding-top: 20px; }
  .legal h2.legal-title { font-size: 22px; }
  .legal h3 { font-size: 17px; }
  .legal p, .legal li { font-size: 15px; }
  .legal ul { padding-left: 20px; }
}

/* ---------- Scrollbars (brand-styled, thin, rounded) ---------- */
/* Standard properties for Firefox only: Chrome ignores ::-webkit-scrollbar styling when these are set */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #9edfff #f8fcff; }
  .toc { scrollbar-width: thin; scrollbar-color: #bfeaff transparent; }
}
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: #f8fcff; }
html::-webkit-scrollbar-thumb { background: #9edfff; border-radius: 999px; border: 2px solid #f8fcff; }
html::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
html::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

.toc { scrollbar-gutter: stable; padding-right: 10px; }
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.toc::-webkit-scrollbar-thumb { background: #bfeaff; border-radius: 999px; }
.toc::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
.toc::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
