/* ==========================================================================
   CHT Tech — main stylesheet
   Brand colours live in :root; change them here to re-theme the whole site.
   ========================================================================== */

:root {
  --color-primary: #0b3d2e;        /* deep forest green — headings, dark sections */
  --color-primary-dark: #062a1f;   /* darkest green — hero base, footer */
  --color-accent: #15803d;         /* emerald — buttons, links, icons */
  --color-accent-dark: #166534;    /* hover state */
  --color-accent-soft: #e8f5ec;    /* pale green — icon tiles, tints */
  --color-secondary: #22c55e;      /* bright green — checkmarks, small accents */
  --color-highlight: #86efac;      /* mint — highlights on dark green */
  --color-text: #1d2a25;
  --color-muted: #5a6b63;
  --color-border: #e2e8e4;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8f5;
  --color-white: #ffffff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(6, 42, 31, 0.08);
  --shadow-hover: 0 16px 40px rgba(6, 42, 31, 0.14);
  --container: 1180px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* Let width/height attributes reserve space without forcing a fixed pixel height. */
img {
  height: auto;
}

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

a:hover {
  color: var(--color-accent-dark);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  color: var(--color-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: var(--color-white);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-outline {
  border-color: currentColor;
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
}

.btn-outline-dark {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: 40px;
}

@media (max-width: 400px) {
  .logo img { height: 34px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  font-weight: 500;
  color: var(--color-text);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-primary);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 20px 1.5rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a.active::after {
    display: none;
  }
}

/* ---------- Home hero slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 86vh, 760px);
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}

.slide.is-active .slide-bg {
  transform: scale(1);
}

/* Green overlay keeps text readable over any photo */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 42, 31, 0.94) 0%, rgba(6, 42, 31, 0.78) 45%, rgba(6, 42, 31, 0.35) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 110px;
}

.slide-content > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide.is-active .slide-content > * {
  opacity: 1;
  transform: none;
}

.slide.is-active .slide-content > :nth-child(2) { transition-delay: 0.15s; }
.slide.is-active .slide-content > :nth-child(3) { transition-delay: 0.3s; }
.slide.is-active .slide-content > :nth-child(4) { transition-delay: 0.45s; }

.slide-title {
  max-width: 760px;
  margin-bottom: 0.5em;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.slide-title .highlight {
  color: var(--color-highlight);
}

.hero-lead {
  max-width: 620px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(134, 239, 172, 0.4);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-highlight);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 3;
}

.slider-controls .container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin-right: auto;
}

.slider-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background-color 0.3s, width 0.3s;
}

.slider-dot[aria-current="true"] {
  width: 56px;
  background: var(--color-secondary);
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(6, 42, 31, 0.35);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

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

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-btn .icon-play { display: none; }
.slider-btn.is-paused .icon-play { display: block; }
.slider-btn.is-paused .icon-pause { display: none; }

@media (max-width: 640px) {
  .slider-btn { width: 40px; height: 40px; }
  .slider-dot { width: 22px; }
  .slider-dot[aria-current="true"] { width: 36px; }
  .slide::before {
    background: linear-gradient(180deg, rgba(6, 42, 31, 0.8), rgba(6, 42, 31, 0.92));
  }
}

/* Photo banner used on inner pages */
.page-hero {
  position: relative;
  padding: 120px 0 100px;
  background-color: var(--color-primary-dark);
  background-position: center;
  background-size: cover;
  color: var(--color-white);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 42, 31, 0.82), rgba(11, 61, 46, 0.9));
}

.page-hero > .container {
  position: relative;
}

.page-hero--about    { background-image: url("../img/hero/about-lagos-office-meeting.jpg"); }
.page-hero--services { background-image: url("../img/hero/services-engineer-computers.jpg"); background-position: center 25%; }
.page-hero--contact  { background-image: url("../img/hero/lagos-lagoon-skyline.jpg"); background-position: center 40%; }
.page-hero--legal    { background-image: url("../img/hero/slide-lagos-skyline.jpg"); }

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.08rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-dark .eyebrow {
  color: var(--color-highlight);
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.card p {
  color: var(--color-muted);
}

.card .card-link {
  margin-top: auto;
  font-weight: 600;
}

.card .card-link::after {
  content: " →";
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.28);
  color: var(--color-white);
  transition: transform 0.3s;
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

.card:hover .icon-box {
  transform: translateY(-2px) rotate(-4deg);
}

/* ---------- Split layout (text + visual) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.split-visual {
  position: relative;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--color-accent-soft), #f1f8e6);
}

.split-visual svg {
  width: 100%;
  height: auto;
}

.split-photo {
  position: relative;
  margin: 0 0 24px;
}

.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

.photo-badge {
  position: absolute;
  left: -20px;
  bottom: -24px;
  display: flex;
  flex-direction: column;
  max-width: 270px;
  padding: 18px 22px;
  border-left: 4px solid var(--color-secondary);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--shadow-hover);
}

.photo-badge strong {
  color: var(--color-primary);
}

.photo-badge span {
  font-size: 0.92rem;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .photo-badge {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

/* ---------- Check lists ---------- */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
}

.check-list.single {
  grid-template-columns: 1fr;
}

@media (max-width: 520px) {
  .check-list { grid-template-columns: 1fr; }
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--color-secondary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 0.75rem no-repeat;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
}

.stat-label {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Industries ---------- */
.industry-card {
  text-align: center;
  align-items: center;
}

.industry-card .icon-box {
  border-radius: 50%;
}

/* ---------- Process steps ---------- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 64px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
}

.step p {
  color: var(--color-muted);
}

/* ---------- Service detail blocks (services page) ---------- */
.service-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
}

.service-nav a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  font-weight: 500;
  color: var(--color-text);
}

.service-nav a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:nth-of-type(even) {
  background: var(--color-bg-alt);
}

.service-detail:nth-of-type(even) .split-visual {
  order: -1;
}

@media (max-width: 900px) {
  .service-detail:nth-of-type(even) .split-visual {
    order: 0;
  }
}

.service-detail .split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background:
    radial-gradient(circle at 80% 20%, rgba(134, 239, 172, 0.35), transparent 45%),
    linear-gradient(145deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
}

.service-detail .split-visual svg {
  width: 130px;
  height: 130px;
  opacity: 0.95;
}

.service-detail p {
  color: var(--color-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 72px 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.15), transparent 40%),
    linear-gradient(120deg, var(--color-accent), var(--color-primary));
  color: var(--color-white);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-inner h2 {
  margin-bottom: 0.3em;
  color: var(--color-white);
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta-band .btn-primary:hover {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
}

.contact-info h2,
.contact-info h3 {
  color: var(--color-white);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
}

.contact-item .icon-box {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--color-highlight);
}

.contact-item .icon-box svg {
  width: 22px;
  height: 22px;
}

.contact-item h3 {
  margin-bottom: 0.15em;
  font-size: 1rem;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  overflow-wrap: anywhere;
}

.contact-item a:hover {
  color: var(--color-white);
}

.form-card {
  padding: 40px 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}

@media (max-width: 520px) {
  .form-card,
  .contact-info { padding: 28px 20px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group .required {
  color: #d93025;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font: inherit;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

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

.form-group.has-error .form-control {
  border-color: #d93025;
}

.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #d93025;
}

.form-group.has-error .field-error {
  display: block;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  background: #e6f7f1;
  color: #0b6b4f;
}

.form-status.error {
  background: #fdecea;
  color: #a1271b;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  margin-bottom: 14px;
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}

.faq details p {
  margin: 0.8rem 0 0;
  color: var(--color-muted);
}

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.legal-content ul {
  margin: 0 0 1em;
  padding-left: 1.4rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-updated {
  color: var(--color-muted);
  font-style: italic;
}

/* ---------- 404 ---------- */
.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found .code {
  margin-bottom: 0.2em;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-highlight);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 72px 0 0;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer .logo {
  margin-bottom: 1rem;
}

.site-footer h4 {
  margin-bottom: 1.1rem;
  color: var(--color-white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a,
.site-footer address a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover,
.site-footer address a:hover {
  color: var(--color-white);
}

.site-footer address {
  font-style: normal;
}

.site-footer address p {
  margin-bottom: 0.6rem;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.section-compact { padding: 40px 0; }
.justify-center { justify-content: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.12rem; color: var(--color-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
