/* ============================================================
   OBCC v2 — Modern Design System
   Mobile-first · Accessible · Performant · One stylesheet
   ============================================================ */

:root {
  --navy-950: #060d33;
  --navy-900: #08134b;
  --navy-800: #0e1c66;
  --navy-700: #173678;
  --cobalt-600: #2456d6;
  --cobalt-500: #3b6ae0;
  --cobalt-100: #dbe6ff;
  --sky-400: #7fb2ff;
  --gold-500: #c9a45c;
  --gold-400: #dbb76f;
  --ink-900: #14192b;
  --ink-700: #323a52;
  --ink-500: #5a6379;
  --ink-300: #9aa2b5;
  --line: #e4e8f2;
  --surface: #f6f7fb;
  --surface-2: #eef1f8;
  --white: #ffffff;
  --green-600: #14735f;
  --green-50: #e7f3ef;
  --red-600: #d83a3a;
  --red-50: #fdeaea;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-s: 0 2px 10px rgba(8, 19, 75, 0.06);
  --shadow-m: 0 12px 34px rgba(8, 19, 75, 0.1);
  --shadow-l: 0 26px 70px rgba(8, 19, 75, 0.16);
  --font-display: "Questrial", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--cobalt-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--cobalt-500);
  outline-offset: 3px;
  border-radius: 4px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--cobalt-600);
  color: #fff;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  padding: 0.7rem 1.1rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}

.section-tight {
  padding: clamp(40px, 6vw, 72px) 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(8, 19, 75, 0.06);
}

.nav-shell {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.header-logo:hover {
  transform: translateY(-1px) scale(1.04);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0.8rem;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.site-nav a:hover {
  color: var(--navy-900);
  background: var(--surface-2);
}

.site-nav a[aria-current="page"] {
  color: var(--cobalt-600);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cobalt-600);
}

.site-nav .nav-cta {
  margin-left: 8px;
  padding: 0.6rem 1.15rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 999px;
}

.site-nav .nav-cta:hover {
  background: var(--cobalt-600);
  color: #fff;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.1em;
  cursor: pointer;
}

.nav-toggle .burger {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.25s var(--ease),
    top 0.25s var(--ease);
}

.nav-toggle .burger::before {
  top: -5px;
}

.nav-toggle .burger::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px 20px 26px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    font-size: 15px;
    border-radius: 12px;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    background: var(--surface-2);
  }

  .site-nav .nav-cta {
    margin: 10px 0 0;
    text-align: center;
    padding: 0.9rem 1rem;
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 8px 22px rgba(8, 19, 75, 0.2);
}

.btn:hover {
  background: var(--cobalt-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(36, 86, 214, 0.3);
  text-decoration: none;
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-light {
  background: #fff;
  color: var(--navy-900);
}

.btn-light:hover {
  background: var(--gold-400);
  color: var(--navy-950);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--ink-300);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8);
}

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.1rem;
  color: var(--gold-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.display-1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.display-2 {
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink-700);
}

.muted {
  color: var(--ink-500);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 840px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--navy-950) url("../assets/images/obcc-beach-background.png")
    center 45% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    102deg,
    rgba(6, 13, 51, 0.95) 0%,
    rgba(8, 19, 75, 0.78) 45%,
    rgba(8, 19, 75, 0.28) 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(6, 13, 51, 0.55));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
  padding: clamp(90px, 12vw, 150px) 0 clamp(64px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero h1,
.hero .hero-lead,
.hero-actions,
.hero-badges {
  margin-left: 0;
  margin-right: auto;
}

.hero h1 {
  max-width: 15ch;
}

.hero .hero-lead {
  max-width: 620px;
}

.hero h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero .hero-lead {
  max-width: 620px;
  margin: 1.6rem 0 0;
  color: #dbe4ff;
  font-size: clamp(17px, 2vw, 22px);
  animation: rise 0.9s var(--ease) 0.25s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.4rem;
  animation: rise 0.9s var(--ease) 0.4s both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(38px, 6vw, 64px);
  animation: rise 0.9s var(--ease) 0.55s both;
}

.hero-badges span {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: #e8eeff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 7vw, 84px);
  background:
    radial-gradient(
      1000px 420px at 85% -10%,
      rgba(36, 86, 214, 0.16),
      transparent 60%
    ),
    linear-gradient(180deg, var(--surface) 0%, #fff 100%);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(8, 19, 75, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
  pointer-events: none;
}

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

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(38px, 5.6vw, 64px);
  letter-spacing: -0.035em;
}

.page-hero .lead {
  max-width: 680px;
  margin-top: 1.4rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.2rem;
  font-size: 13px;
  color: var(--ink-500);
}

.breadcrumb a {
  color: var(--ink-500);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--cobalt-600);
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--ink-300);
}

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}

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

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

@media (min-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--cobalt-100);
  box-shadow: var(--shadow-m);
}

.card .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border-radius: 10px;
  background: var(--cobalt-100);
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.card h3 {
  margin: 1.4rem 0 0.7rem;
  font-size: clamp(21px, 2.2vw, 26px);
}

.card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.65;
}

.card-accent {
  border-top: 3px solid var(--gold-500);
}

/* Value cards */
.value-card {
  padding: clamp(26px, 3.4vw, 36px);
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid transparent;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: var(--shadow-m);
}

.value-card h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 0.7rem;
}

.value-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 15px;
}

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

@media (min-width: 920px) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.split .sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* ---------- Bullet / check lists ---------- */
.check-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-700);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 0.72rem;
  font-weight: 700;
}

.cross-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.cross-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-700);
}

.cross-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-600);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.6rem 0 1.6rem 4.4rem;
  border-top: 1px solid var(--line);
}

.steps li:first-child {
  border-top: 0;
  padding-top: 0.4rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font: 400 2rem/1 var(--font-display);
  color: var(--cobalt-600);
  letter-spacing: -0.03em;
}

.steps li:first-child::before {
  top: 0.3rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 22px;
}

.steps p {
  margin: 0;
  color: var(--ink-500);
  max-width: 560px;
}

/* ---------- News cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 680px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.news-card:hover img {
  transform: scale(1.04);
}

.news-card .news-body {
  padding: 22px 24px 26px;
}

.news-card h3 {
  font-size: 20px;
  margin-bottom: 0.5rem;
}

.news-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14.5px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 60px);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: 400 15px/1.5 var(--font-body);
  color: var(--ink-900);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cobalt-500);
  box-shadow: 0 0 0 4px rgba(59, 106, 224, 0.14);
}

.contact-aside {
  padding: clamp(26px, 3.4vw, 36px);
  border-radius: var(--radius-m);
  background: var(--navy-900);
  color: #dbe4ff;
}

.contact-aside h2,
.contact-aside h3 {
  color: #fff;
  font-size: 20px;
  margin: 1.6rem 0 0.4rem;
}

.contact-aside h2:first-child,
.contact-aside h3:first-child {
  margin-top: 0;
}

.contact-aside p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.contact-aside a {
  color: var(--sky-400);
}

/* ---------- Comparison page ---------- */
.platform-card {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #b0b6c4, var(--red-600));
}

.platform-card-good {
  border-color: rgba(20, 115, 95, 0.3);
  background: var(--green-50);
}

.platform-card-good::before {
  background: linear-gradient(90deg, var(--green-600), #1f9d57);
}

.platform-card-bad {
  border-color: rgba(216, 58, 58, 0.28);
  background: var(--red-50);
}

.platform-card-bad::before {
  background: linear-gradient(90deg, #b0b6c4, var(--red-600));
}

.platform-tag {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-tag-bad {
  background: var(--red-600);
}

.platform-card h3 {
  margin: 1.2rem 0 1.3rem;
  font-size: clamp(24px, 3vw, 34px);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(
      700px 300px at 90% 0%,
      rgba(36, 86, 214, 0.45),
      transparent 60%
    ),
    linear-gradient(120deg, var(--navy-950), var(--navy-700));
  color: #e9efff;
  display: grid;
  gap: 26px;
  box-shadow: var(--shadow-l);
}

@media (min-width: 860px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 44px;
  }
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.cta-band p {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: #c9d6fb;
}

.cta-band .eyebrow {
  color: var(--sky-400);
  margin-bottom: 0.6rem;
}

/* ---------- Legal ---------- */
.legal h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 24px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  color: var(--ink-700);
  max-width: 76ch;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(50px, 8vw, 100px);
  background: var(--navy-950);
  color: #aab6dd;
  padding: clamp(48px, 7vw, 80px) 0 34px;
}

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

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h2 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.site-footer p {
  margin: 0 0 0.4rem;
  font-size: 14.5px;
}

.site-footer a {
  display: block;
  width: fit-content;
  padding: 0.18rem 0;
  color: #aab6dd;
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: #fff;
}

.footer-bottom {
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #7d89b5;
}
