/*
Theme Name: Oral First Website
Theme URI: https://oralfirst.co.za/
Author: Oral First
Description: A custom one-page WordPress theme for Oral First, converted from the static HTML prototype.
Version: 1.0.0
License: Private
Text Domain: oral-first
*/

:root {
      --teal: #0CA9A6;
      --teal-2: #6BC9C7;
      --teal-dark: #063F46;
      --deep: #092F35;
      --slate: #5B5C5D;
      --soft: #E9FAF8;
      --soft-2: #F6FBFA;
      --sand: #F5F0E6;
      --ink: #10262A;
      --muted: #667174;
      --gold: #D3B16D;
      --white: #FFFFFF;
      --shadow: 0 24px 70px rgba(6, 63, 70, .16);
      --shadow-soft: 0 18px 45px rgba(6, 63, 70, .10);
      --radius-xl: 34px;
      --radius-lg: 24px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: linear-gradient(180deg, #fff 0%, var(--soft-2) 40%, #fff 100%);
      line-height: 1.55;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }

    .announcement {
      background: var(--deep);
      color: rgba(255,255,255,.88);
      font-size: .85rem;
      letter-spacing: .02em;
      text-align: center;
      padding: .7rem 1rem;
    }
    .announcement strong { color: #fff; }

    .nav-wrap {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(18px);
      background: rgba(255,255,255,.86);
      border-bottom: 1px solid rgba(12, 169, 166, .13);
    }
    nav {
      max-width: var(--max);
      margin: 0 auto;
      padding: .95rem 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.25rem;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: .75rem;
      min-width: 180px;
    }
    .brand img { width: 150px; height: auto; display: block; }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.15rem;
      color: var(--muted);
      font-weight: 650;
      font-size: .92rem;
    }
    .nav-links a { position: relative; }
    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: -.35rem;
      height: 2px;
      background: var(--teal);
      transition: right .25s ease;
    }
    .nav-links a:hover::after { right: 0; }

    .menu-toggle {
      display: none;
      width: 46px;
      height: 46px;
      border: 1px solid rgba(12,169,166,.24);
      border-radius: 14px;
      background: rgba(255,255,255,.92);
      box-shadow: 0 12px 28px rgba(8,56,64,.08);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      padding: 0;
      z-index: 1001;
    }
    .menu-toggle span {
      width: 22px;
      height: 2px;
      border-radius: 999px;
      background: var(--deep);
      transition: transform .22s ease, opacity .22s ease;
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .cta-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .55rem;
      border-radius: 999px;
      padding: .85rem 1.15rem;
      border: 1px solid transparent;
      font-weight: 800;
      font-size: .94rem;
      line-height: 1;
      cursor: pointer;
      transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
      min-height: 44px;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary {
      color: white;
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      box-shadow: 0 16px 36px rgba(12,169,166,.28);
    }
    .btn-primary:hover { box-shadow: 0 20px 46px rgba(12,169,166,.34); }
    .btn-ghost {
      border-color: rgba(12,169,166,.25);
      color: var(--teal-dark);
      background: rgba(255,255,255,.72);
    }
    .btn-dark {
      color: white;
      background: var(--deep);
      border-color: rgba(255,255,255,.10);
    }

    .hero {
      position: relative;
      overflow: hidden;
      padding: 4.6rem 1.25rem 5rem;
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: -35% -15% auto auto;
      width: 62vw;
      height: 62vw;
      min-width: 520px;
      min-height: 520px;
      background: radial-gradient(circle, rgba(12,169,166,.30) 0 18%, rgba(107,201,199,.16) 18% 38%, rgba(12,169,166,.08) 38% 54%, transparent 55%);
      border-radius: 50%;
      pointer-events: none;
    }
    .hero-grid {
      position: relative;
      max-width: var(--max);
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr);
      gap: 3.5rem;
      align-items: center;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      padding: .43rem .75rem;
      border-radius: 999px;
      background: rgba(12,169,166,.10);
      color: var(--teal-dark);
      font-weight: 850;
      font-size: .82rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 1.1rem;
    }
    .eyebrow::before {
      content: "";
      width: .58rem;
      height: .58rem;
      border-radius: 50%;
      background: var(--teal);
      box-shadow: 0 0 0 6px rgba(12,169,166,.12);
    }
    h1, h2, h3, p { margin-top: 0; }
    h1 {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(3rem, 7vw, 6.65rem);
      letter-spacing: -.06em;
      line-height: .92;
      margin-bottom: 1.15rem;
      color: var(--deep);
    }
    .lifesmile { color: var(--teal); font-style: italic; white-space: nowrap; }
    .lead {
      font-size: clamp(1.08rem, 2vw, 1.35rem);
      color: #3F5559;
      max-width: 680px;
      margin-bottom: 1.6rem;
    }
    .hero-proof {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: .85rem;
      margin: 1.8rem 0 0;
      max-width: 720px;
    }
    .proof-card {
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(12,169,166,.16);
      border-radius: 20px;
      padding: 1rem;
      box-shadow: var(--shadow-soft);
    }
    .proof-card .num {
      color: var(--deep);
      font-size: 1.7rem;
      line-height: 1;
      font-weight: 950;
      letter-spacing: -.04em;
    }
    .proof-card .label {
      margin-top: .45rem;
      color: var(--muted);
      font-weight: 700;
      font-size: .82rem;
    }
    .hero-media {
      position: relative;
      min-height: 575px;
    }
    .photo-stack {
      position: relative;
      height: 575px;
    }
    .photo-main, .photo-small, .impact-badge {
      position: absolute;
      border-radius: var(--radius-xl);
      overflow: hidden;
      box-shadow: var(--shadow);
      background: white;
    }
    .photo-main {
      inset: 0 0 105px 60px;
      border: 10px solid white;
    }
    .photo-main img { width: 100%; height: 100%; object-fit: cover; }
    .photo-small {
      left: 0;
      bottom: 0;
      width: 45%;
      border: 8px solid white;
    }
    .photo-small img { aspect-ratio: 1 / 1.08; width: 100%; object-fit: cover; }
    .impact-badge {
      right: 18px;
      bottom: 30px;
      width: min(275px, 56%);
      padding: 1.25rem;
      background: var(--deep);
      color: white;
      border: 1px solid rgba(255,255,255,.15);
    }
    .impact-badge strong {
      display: block;
      font-size: 2rem;
      letter-spacing: -.04em;
      line-height: 1;
    }
    .impact-badge span { color: rgba(255,255,255,.76); display:block; margin-top:.4rem; }
    .orb {
      position: absolute;
      width: 150px;
      height: 150px;
      border-radius: 50%;
      right: -20px;
      top: -22px;
      background: radial-gradient(circle at 32% 30%, #fff, rgba(255,255,255,.35) 18%, var(--teal-2) 19%, var(--teal) 58%, var(--teal-dark));
      box-shadow: 0 28px 65px rgba(12,169,166,.3);
      opacity: .92;
    }

    .section { padding: 5.4rem 1.25rem; position: relative; }
    .section-tight { padding: 3.3rem 1.25rem; }
    .container { max-width: var(--max); margin: 0 auto; }
    .section-head {
      display: grid;
      grid-template-columns: minmax(0, .85fr) minmax(280px, .55fr);
      gap: 2.4rem;
      align-items: end;
      margin-bottom: 2.2rem;
    }
    .kicker {
      color: var(--teal);
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: .8rem;
      margin-bottom: .55rem;
    }
    h2 {
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2.2rem, 4vw, 4.15rem);
      line-height: .98;
      letter-spacing: -.055em;
      color: var(--deep);
      margin-bottom: .8rem;
    }
    .section-head p, .section-copy { color: var(--muted); font-size: 1.04rem; }

    .logo-strip {
      padding: 1.25rem;
      border-top: 1px solid rgba(12,169,166,.13);
      border-bottom: 1px solid rgba(12,169,166,.13);
      background: white;
    }
    .logo-strip-inner {
      max-width: var(--max);
      margin: 0 auto;
      display: flex;
      gap: 1rem;
      align-items: center;
      justify-content: space-between;
      color: var(--muted);
      font-weight: 800;
      flex-wrap: wrap;
    }
    .logo-strip .dot { width: 5px; height: 5px; background: var(--teal); border-radius: 50%; opacity: .65; }

    .problem-solution {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.1rem;
    }
    .split-card {
      border-radius: var(--radius-xl);
      padding: 2rem;
      min-height: 410px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      position: relative;
    }
    .split-card.problem {
      background: linear-gradient(150deg, #fff, var(--soft));
      border: 1px solid rgba(12,169,166,.18);
      box-shadow: var(--shadow-soft);
    }
    .split-card.solution {
      background: linear-gradient(150deg, var(--deep), #0D5960 62%, var(--teal));
      color: white;
      box-shadow: var(--shadow);
    }
    .split-card h3 {
      font-size: clamp(1.65rem, 3vw, 2.6rem);
      line-height: 1.02;
      letter-spacing: -.04em;
      margin-bottom: 1rem;
    }
    .split-card p { color: inherit; opacity: .85; font-size: 1.02rem; }
    .split-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
    .split-list li { display: flex; gap: .7rem; align-items: flex-start; color: inherit; opacity: .86; font-weight: 650; }
    .tick {
      width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px;
      display: inline-flex; align-items: center; justify-content: center;
      background: rgba(12,169,166,.14); color: var(--teal-dark); font-weight: 950; font-size: .84rem;
    }
    .solution .tick { background: rgba(255,255,255,.18); color: white; }
    .split-image { margin-top: 1.5rem; border-radius: 26px; overflow: hidden; border: 7px solid rgba(255,255,255,.8); }
    .split-image img { width: 100%; height: 260px; object-fit: cover; }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    .feature-card {
      padding: 1.55rem;
      border-radius: 26px;
      background: white;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(12,169,166,.12);
      min-height: 240px;
    }
    .icon {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(12,169,166,.14), rgba(107,201,199,.22));
      color: var(--teal-dark);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      font-size: 1.35rem;
    }
    .feature-card h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .45rem; }
    .feature-card p { color: var(--muted); margin-bottom: 0; }

    .journey {
      background: linear-gradient(180deg, var(--deep), #0A4147);
      color: white;
      overflow: hidden;
    }
    .journey h2, .journey .kicker { color: white; }
    .journey .kicker { color: var(--teal-2); }
    .journey .section-head p { color: rgba(255,255,255,.72); }
    .steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: .95rem;
      position: relative;
    }
    .step {
      border-radius: 26px;
      padding: 1.45rem;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      backdrop-filter: blur(15px);
      min-height: 245px;
    }
    .step-number {
      font-family: Georgia, serif;
      width: 54px; height: 54px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: white;
      color: var(--teal-dark);
      font-weight: 900;
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }
    .step h3 { font-size: 1.18rem; margin-bottom: .55rem; }
    .step p { color: rgba(255,255,255,.72); margin-bottom: 0; }

    .clinic-showcase {
      display: grid;
      grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
      gap: 1.2rem;
      align-items: stretch;
    }
    .showcase-copy {
      border-radius: var(--radius-xl);
      background: var(--soft);
      padding: 2rem;
      border: 1px solid rgba(12,169,166,.15);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .showcase-copy p { color: var(--muted); }
    .mini-metrics { display: grid; gap: .75rem; margin-top: 1rem; }
    .mini-metric {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      padding: .9rem 1rem;
      background: rgba(255,255,255,.78);
      border-radius: 18px;
      color: var(--teal-dark);
      font-weight: 850;
    }
    .image-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 1rem;
      min-height: 560px;
    }
    .image-grid figure {
      margin: 0;
      border-radius: 28px;
      overflow: hidden;
      position: relative;
      box-shadow: var(--shadow-soft);
      background: #ddd;
    }
    .image-grid figure:first-child { grid-row: span 2; }
    .image-grid img { width: 100%; height: 100%; object-fit: cover; }
    figcaption {
      position: absolute;
      left: .8rem; bottom: .8rem; right: .8rem;
      padding: .7rem .85rem;
      border-radius: 999px;
      color: white;
      font-weight: 850;
      font-size: .83rem;
      background: rgba(6,63,70,.76);
      backdrop-filter: blur(10px);
    }

    .impact-panel {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 1.2rem;
      align-items: stretch;
    }
    .impact-image {
      border-radius: var(--radius-xl);
      overflow: hidden;
      box-shadow: var(--shadow);
      min-height: 520px;
    }
    .impact-image img { width: 100%; height: 100%; object-fit: cover; }
    .impact-copy {
      border-radius: var(--radius-xl);
      background: white;
      padding: 2rem;
      border: 1px solid rgba(12,169,166,.14);
      box-shadow: var(--shadow-soft);
    }
    .impact-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: .8rem;
      margin-top: 1.4rem;
    }
    .impact-tile {
      padding: 1.15rem;
      border-radius: 22px;
      background: linear-gradient(180deg, var(--soft), #fff);
      border: 1px solid rgba(12,169,166,.12);
    }
    .impact-tile strong {
      display: block;
      color: var(--deep);
      font-size: 1.45rem;
      line-height: 1.05;
      letter-spacing: -.04em;
    }
    .impact-tile span { color: var(--muted); font-weight: 650; font-size: .93rem; display: block; margin-top: .35rem; }

    .partner {
      background: linear-gradient(135deg, var(--deep), var(--teal-dark));
      color: white;
    }
    .partner h2, .partner .kicker { color: white; }
    .partner .kicker { color: var(--teal-2); }
    .partner p { color: rgba(255,255,255,.76); }
    .partner-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-top: 2rem; }
    .partner-card {
      border-radius: 26px;
      padding: 1.55rem;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      min-height: 250px;
    }
    .partner-card h3 { color: white; font-size: 1.25rem; }
    .partner-card p { margin-bottom: 1.1rem; }
    .partner-card a { color: white; font-weight: 900; }

    .contact-panel {
      border-radius: 38px;
      overflow: hidden;
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      background: white;
      box-shadow: var(--shadow);
      border: 1px solid rgba(12,169,166,.12);
    }
    .contact-side {
      padding: 2.2rem;
      background: var(--soft);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 560px;
    }
    .contact-side img { border-radius: 26px; margin-top: 1rem; }
    .form {
      padding: 2.2rem;
      display: grid;
      gap: .9rem;
    }
    label { font-weight: 850; color: var(--deep); font-size: .9rem; }
    input, select, textarea {
      width: 100%;
      border: 1px solid rgba(12,169,166,.18);
      border-radius: 18px;
      padding: .95rem 1rem;
      font: inherit;
      background: #fff;
      color: var(--ink);
      outline: none;
    }
    input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(12,169,166,.13); }
    textarea { min-height: 135px; resize: vertical; }
    .two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
    .fineprint { color: var(--muted); font-size: .82rem; margin: .35rem 0 0; }

    footer {
      padding: 2.6rem 1.25rem;
      background: var(--deep);
      color: rgba(255,255,255,.78);
    }
    .footer-inner {
      max-width: var(--max);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      align-items: center;
    }
    footer img { width: 155px; background: white; padding: .35rem .5rem; border-radius: 12px; }
    .footer-links { display: flex; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; font-weight: 800; }

    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.is-visible { opacity: 1; transform: none; }

    @media (max-width: 980px) {
      nav { position: relative; }
      .menu-toggle { display: inline-flex; margin-left: auto; }
      .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + .65rem);
        left: 1rem;
        right: 1rem;
        padding: .8rem;
        border: 1px solid rgba(12,169,166,.18);
        border-radius: 22px;
        background: rgba(255,255,255,.98);
        box-shadow: 0 26px 80px rgba(8,56,64,.18);
        backdrop-filter: blur(18px);
        z-index: 1000;
      }
      .nav-links.is-open { display: grid; gap: .25rem; }
      .nav-links a {
        padding: .95rem 1rem;
        border-radius: 16px;
        color: var(--deep);
      }
      .nav-links a:hover { background: rgba(12,169,166,.08); }
      .nav-links a::after { display: none; }
      .hero-grid, .section-head, .clinic-showcase, .impact-panel, .contact-panel { grid-template-columns: 1fr; }
      .hero-media { min-height: 520px; }
      .photo-stack { height: 520px; max-width: 620px; margin: 0 auto; }
      .problem-solution, .feature-grid, .partner-grid, .steps { grid-template-columns: 1fr 1fr; }
      .image-grid { min-height: 520px; }
    }
    @media (max-width: 680px) {
      .announcement { font-size: .78rem; }
      nav { padding: .75rem 1rem; }
      .brand img { width: 132px; }
      nav .cta-row { display: none; }
      .nav-wrap .btn-ghost { display: none; }
      .hero { padding-top: 3.4rem; }
      .hero-grid { gap: 2rem; }
      .hero-proof { grid-template-columns: 1fr; }
      .photo-main { inset: 0 0 120px 0; }
      .photo-small { width: 48%; }
      .impact-badge { width: 62%; right: 0; }
      .orb { width: 100px; height: 100px; }
      .section { padding: 4rem 1rem; }
      .section-tight { padding: 2.3rem 1rem; }
      .problem-solution, .feature-grid, .steps, .image-grid, .impact-grid, .partner-grid, .two, .footer-inner { grid-template-columns: 1fr; }
      .image-grid figure:first-child { grid-row: auto; }
      .image-grid { min-height: auto; }
      .image-grid figure { min-height: 280px; }
      .contact-side { min-height: auto; }
      .footer-links { justify-content: flex-start; }
      h1 { font-size: clamp(2.75rem, 16vw, 4rem); }
    }

/* Contact form status and spam-trap field */
.form-alert {
  border-radius: 18px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 14px 16px;
}
.form-alert-success {
  background: rgba(9, 154, 141, 0.12);
  border: 1px solid rgba(9, 154, 141, 0.32);
  color: #045b54;
}
.form-alert-error {
  background: rgba(191, 57, 57, 0.1);
  border: 1px solid rgba(191, 57, 57, 0.25);
  color: #8f1f1f;
}
.website-field {
  left: -9999px;
  opacity: 0;
  position: absolute;
  top: auto;
}

.form-status-line {
  min-height: 24px;
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.form-status-line .success {
  color: #045b54;
}

.form-status-line .error {
  color: #8f1f1f;
}

.form .fineprint {
  margin-top: 6px;
}



/* Oral First video section - clean responsive fix */
#video.video-section {
  background: #f7fbfa;
}

#video .video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

#video .video-copy {
  width: 100%;
  max-width: none;
}

#video .video-copy h2 {
  margin: 10px 0 18px;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.95;
  color: #07363b;
}

#video .video-copy p {
  max-width: 620px;
  color: #385b5d;
  font-size: 1.05rem;
  line-height: 1.7;
}

#video .of-video-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(17, 160, 153, 0.14), rgba(7, 54, 59, 0.08));
  border: 1px solid rgba(17, 160, 153, 0.22);
  box-shadow: 0 24px 60px rgba(7, 54, 59, 0.12);
}

#video .of-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(7, 54, 59, 0.12);
}

/* 16:9 responsive iframe fallback */
#video .of-video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

#video .of-video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  #video .video-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    justify-items: stretch !important;
  }

  #video .video-copy,
  #video .of-video-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  #video .of-video-card {
    margin: 0 auto !important;
    padding: 8px;
    border-radius: 20px;
  }

  #video .of-video-frame {
    border-radius: 14px;
  }
}
/* ------------------------------------------------------------
   Oral First Terms & Conditions page — premium responsive layout
------------------------------------------------------------ */
.terms-page {
  background:
    radial-gradient(circle at 14% 6%, rgba(12,169,166,.13), transparent 32%),
    linear-gradient(180deg, #f6fbfa 0%, #ffffff 44%, #f7fbfa 100%);
  color: var(--ink);
  min-height: 100vh;
}

.terms-nav-wrap .btn-primary {
  padding-inline: 1rem;
}

.terms-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.8rem, 6vw, 6.4rem) 1.25rem clamp(2.6rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, #063f46 0%, #092f35 52%, #0ca9a6 190%);
  color: #fff;
  isolation: isolate;
}

.terms-hero-bg {
  position: absolute;
  inset: auto -12% -48% auto;
  width: min(640px, 70vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(211,177,109,.55) 0 17%, transparent 18%),
    radial-gradient(circle, rgba(107,201,199,.22) 0 38%, transparent 39%),
    radial-gradient(circle, rgba(255,255,255,.09) 0 58%, transparent 59%);
  opacity: .9;
  z-index: -1;
}

.terms-hero::before,
.terms-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.terms-hero::before {
  width: 340px;
  height: 340px;
  left: -120px;
  top: -110px;
  background: rgba(107,201,199,.13);
}

.terms-hero::after {
  width: 160px;
  height: 160px;
  right: 17%;
  top: 15%;
  border: 1px solid rgba(255,255,255,.19);
}

.terms-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .55fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}

.terms-hero h1 {
  margin: .5rem 0 .85rem;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: .9;
  letter-spacing: -.065em;
  color: #fff;
}

.terms-lead {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.68;
}

.terms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.6rem;
}

.terms-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.09);
}

.terms-hero-card {
  padding: clamp(1.2rem, 3vw, 1.85rem);
  border-radius: 32px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 28px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}

.terms-stamp {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  margin-bottom: 1.1rem;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 950;
  letter-spacing: -.04em;
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

.terms-hero-card h2 {
  margin: 0 0 .65rem;
  font-size: 1.45rem;
  color: #fff;
}

.terms-hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .58rem;
}

.terms-hero-card li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(255,255,255,.84);
  font-weight: 750;
}

.terms-hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-2);
}

.terms-hero-card p {
  margin: 1rem 0 0;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
}

.terms-summary {
  position: relative;
  z-index: 2;
  margin-top: -2.3rem;
  padding: 0 1.25rem 2.8rem;
}

.terms-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.terms-summary-card {
  min-height: 190px;
  padding: 1.25rem;
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(12,169,166,.14);
  box-shadow: var(--shadow-soft);
}

.summary-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(12,169,166,.14), rgba(211,177,109,.20));
  color: var(--teal-dark);
  font-weight: 950;
  font-size: .86rem;
}

.terms-summary-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  color: var(--deep);
}

.terms-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.58;
}

.terms-content-section {
  padding: 1rem 1.25rem 4.2rem;
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: clamp(1.3rem, 3vw, 2.25rem);
  align-items: start;
}

.terms-toc {
  position: sticky;
  top: 104px;
}

.terms-toc-inner {
  padding: 1.05rem;
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(12,169,166,.14);
  box-shadow: 0 18px 42px rgba(6,63,70,.08);
}

.toc-label {
  margin: 0 0 .9rem;
  padding: 0 0 .7rem;
  border-bottom: 1px solid rgba(12,169,166,.12);
  color: var(--deep);
  font-weight: 950;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.terms-toc a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: #507073;
  font-size: .92rem;
  font-weight: 760;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.terms-toc a:hover {
  color: var(--teal-dark);
  background: rgba(12,169,166,.09);
  transform: translateX(3px);
}

.terms-document {
  display: grid;
  gap: 1rem;
}

.terms-document-intro {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 32px;
  background: linear-gradient(135deg, #fff 0%, #f1fbfa 100%);
  border: 1px solid rgba(12,169,166,.16);
  box-shadow: var(--shadow-soft);
}

.legal-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .42rem .75rem;
  margin-bottom: .85rem;
  background: rgba(211,177,109,.18);
  color: #7a6025;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.terms-document-intro h2 {
  margin: 0 0 .55rem;
  color: var(--deep);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.terms-document-intro p {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.terms-section-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(7,54,59,.08);
  box-shadow: 0 14px 38px rgba(6,63,70,.06);
  scroll-margin-top: 118px;
}

.section-number {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: sticky;
  top: 110px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(12,169,166,.22);
}

.section-copy h3 {
  margin: .25rem 0 .75rem;
  color: var(--deep);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.section-copy p {
  margin: 0 0 .9rem;
  color: #435e61;
  font-size: 1rem;
  line-height: 1.76;
}

.section-copy p:last-child,
.section-copy ul:last-child {
  margin-bottom: 0;
}

.terms-callout {
  margin: 1.05rem 0 1rem;
  padding: 1rem 1.05rem;
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(211,177,109,.14), rgba(12,169,166,.06));
  color: #324e51;
  font-weight: 750;
  line-height: 1.62;
}

.terms-list {
  margin: .25rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .6rem;
}

.terms-list li {
  position: relative;
  padding: .8rem .85rem .8rem 2.65rem;
  border-radius: 18px;
  background: #f7fbfa;
  border: 1px solid rgba(12,169,166,.10);
  color: #435e61;
  line-height: 1.58;
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: .95rem;
  top: 1.14rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(12,169,166,.10);
}

.terms-copyright {
  margin-top: 1.25rem !important;
  color: var(--deep) !important;
  font-weight: 900;
}

.terms-bottom-cta {
  padding: 0 1.25rem 4rem;
}

.terms-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 34px;
  background:
    radial-gradient(circle at 94% 12%, rgba(211,177,109,.28), transparent 26%),
    linear-gradient(135deg, var(--deep), var(--teal-dark));
  color: #fff;
  box-shadow: var(--shadow);
}

.terms-cta-card h2 {
  margin: .25rem 0 .4rem;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.terms-cta-card p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.simple-page-content {
  padding: 2rem;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.simple-page-content h1 {
  margin-top: 0;
  color: var(--deep);
}

@media (max-width: 1040px) {
  .terms-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-layout {
    grid-template-columns: 1fr;
  }

  .terms-toc {
    position: relative;
    top: auto;
    z-index: 3;
  }

  .terms-toc-inner {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    padding: .72rem;
    border-radius: 20px;
    scrollbar-width: thin;
  }

  .toc-label {
    display: none;
  }

  .terms-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #f7fbfa;
  }
}

@media (max-width: 760px) {
  .terms-hero {
    padding: 2.8rem 1rem 3.2rem;
  }

  .terms-hero-inner {
    grid-template-columns: 1fr;
  }

  .terms-hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.5rem);
  }

  .terms-hero-actions,
  .terms-cta-card,
  .terms-bottom-cta .btn,
  .terms-hero-actions .btn {
    width: 100%;
  }

  .terms-hero-actions .btn,
  .terms-bottom-cta .btn {
    justify-content: center;
  }

  .terms-summary {
    margin-top: -1.4rem;
    padding-inline: 1rem;
  }

  .terms-summary-grid {
    grid-template-columns: 1fr;
  }

  .terms-summary-card {
    min-height: auto;
  }

  .terms-content-section,
  .terms-bottom-cta {
    padding-inline: 1rem;
  }

  .terms-section-card {
    grid-template-columns: 1fr;
    gap: .75rem;
    border-radius: 24px;
    padding: 1.05rem;
  }

  .section-number {
    position: relative;
    top: auto;
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .section-copy p,
  .terms-list li {
    font-size: .95rem;
  }

  .terms-document-intro {
    border-radius: 24px;
    padding: 1.15rem;
  }

  .terms-cta-card {
    flex-direction: column;
    align-items: stretch;
    border-radius: 26px;
  }

  .terms-page .nav-wrap nav .cta-row {
    display: none;
  }
}

/* ------------------------------------------------------------
   Mobile refinement for Terms & Conditions page
   Fixes cramped hero, oversized cards, horizontal overflow and
   makes the legal content read cleanly on phones.
------------------------------------------------------------ */
.terms-page,
.terms-page * {
  box-sizing: border-box;
}

.terms-page {
  overflow-x: hidden;
}

.terms-document,
.terms-section-card,
.section-copy,
.section-copy p,
.terms-list li,
.terms-callout {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 760px) {
  .terms-page .announcement {
    padding: .6rem 1rem;
    font-size: .72rem;
    line-height: 1.35;
  }

  .terms-nav-wrap {
    position: sticky;
    top: 0;
  }

  .terms-nav-wrap nav {
    padding: .65rem .9rem;
    gap: .65rem;
  }

  .terms-nav-wrap .brand {
    min-width: 0;
  }

  .terms-nav-wrap .brand img {
    width: 118px;
    border-radius: 12px;
  }

  .terms-page .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    flex: 0 0 42px;
  }

  .terms-hero {
    padding: 2.05rem 1rem 2.45rem;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .terms-hero-bg,
  .terms-hero::before,
  .terms-hero::after {
    opacity: .45;
  }

  .terms-hero-inner {
    display: block;
  }

  .terms-hero .eyebrow {
    margin-bottom: .85rem;
    padding: .38rem .65rem;
    font-size: .68rem;
    letter-spacing: .07em;
  }

  .terms-hero h1 {
    max-width: 12ch;
    margin: .15rem 0 .75rem;
    font-size: clamp(2.2rem, 13vw, 3.35rem);
    line-height: .98;
    letter-spacing: -.045em;
  }

  .terms-lead {
    font-size: .98rem;
    line-height: 1.56;
    color: rgba(255,255,255,.86);
  }

  .terms-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
    margin-top: 1.15rem;
  }

  .terms-hero-actions .btn {
    min-height: 46px;
    padding: .85rem 1rem;
  }

  .terms-hero-card {
    display: none;
  }

  .terms-summary {
    margin-top: 0;
    padding: 1rem 1rem .85rem;
  }

  .terms-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .terms-summary-card {
    min-height: auto;
    padding: .78rem;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(6,63,70,.07);
  }

  .summary-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    margin-bottom: .55rem;
    font-size: .72rem;
  }

  .terms-summary-card h3 {
    margin-bottom: 0;
    font-size: .9rem;
    line-height: 1.18;
  }

  .terms-summary-card p {
    display: none;
  }

  .terms-content-section {
    padding: .7rem .85rem 2.6rem;
  }

  .terms-layout {
    display: block;
  }

  .terms-toc {
    position: relative;
    top: auto;
    margin: 0 0 .9rem;
  }

  .terms-toc-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    overflow: visible;
    padding: .75rem;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(6,63,70,.07);
  }

  .terms-toc a {
    display: flex;
    justify-content: center;
    min-height: 38px;
    padding: .58rem .55rem;
    border-radius: 999px;
    background: #f2fbfa;
    border: 1px solid rgba(12,169,166,.10);
    color: var(--deep);
    font-size: .78rem;
    font-weight: 850;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .terms-toc a:hover {
    transform: none;
  }

  .terms-document {
    gap: .78rem;
  }

  .terms-document-intro {
    padding: 1rem;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(6,63,70,.07);
  }

  .legal-chip {
    margin-bottom: .7rem;
    font-size: .68rem;
    padding: .36rem .6rem;
  }

  .terms-document-intro h2 {
    font-size: clamp(1.45rem, 8vw, 2.05rem);
    line-height: 1.05;
    letter-spacing: -.035em;
  }

  .terms-document-intro p {
    font-size: .95rem;
    line-height: 1.58;
  }

  .terms-section-card {
    display: block;
    padding: 1rem;
    border-radius: 22px;
    border-left: 5px solid var(--teal);
    box-shadow: 0 10px 26px rgba(6,63,70,.055);
    scroll-margin-top: 92px;
  }

  .section-number {
    position: relative;
    top: auto;
    width: 36px;
    height: 36px;
    margin-bottom: .65rem;
    border-radius: 13px;
    font-size: .86rem;
    box-shadow: 0 10px 22px rgba(12,169,166,.18);
  }

  .section-copy h3 {
    margin: 0 0 .65rem;
    font-size: 1.14rem;
    line-height: 1.18;
    letter-spacing: -.02em;
  }

  .section-copy p {
    margin-bottom: .75rem;
    font-size: .93rem;
    line-height: 1.62;
  }

  .terms-callout {
    margin: .85rem 0;
    padding: .82rem .9rem;
    border-left-width: 3px;
    border-radius: 16px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .terms-list {
    gap: .48rem;
  }

  .terms-list li {
    padding: .7rem .72rem .7rem 2.15rem;
    border-radius: 15px;
    font-size: .9rem;
    line-height: 1.48;
  }

  .terms-list li::before {
    left: .8rem;
    top: 1rem;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 4px rgba(12,169,166,.10);
  }

  .terms-bottom-cta {
    padding: 0 .85rem 2.8rem;
  }

  .terms-cta-card {
    padding: 1.05rem;
    border-radius: 22px;
    gap: .9rem;
  }

  .terms-cta-card .eyebrow {
    margin-bottom: .65rem;
    font-size: .68rem;
  }

  .terms-cta-card h2 {
    font-size: 1.45rem;
    line-height: 1.06;
  }

  .terms-cta-card p {
    font-size: .94rem;
    line-height: 1.48;
  }

  .terms-cta-card .btn {
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 420px) {
  .terms-summary-grid,
  .terms-toc-inner {
    grid-template-columns: 1fr;
  }

  .terms-summary-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: .55rem;
    align-items: center;
  }

  .summary-icon {
    margin: 0;
  }

  .terms-hero h1 {
    font-size: clamp(2.1rem, 12vw, 2.85rem);
  }

  .terms-content-section,
  .terms-bottom-cta {
    padding-inline: .72rem;
  }
}


/* TERMS MOBILE VISIBILITY FIX */
/* Legal content must remain visible even if scroll-reveal JavaScript is delayed,
   cached, blocked, or unsupported on a mobile browser. */
.terms-page .terms-document,
.terms-page .terms-document *,
.terms-page .terms-summary-card,
.terms-page .terms-toc,
.terms-page .terms-cta-card {
  visibility: visible;
}

.terms-page .terms-document.reveal,
.terms-page .terms-document .reveal,
.terms-page .terms-summary-card.reveal,
.terms-page .terms-toc.reveal,
.terms-page .terms-cta-card.reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .terms-page .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .terms-content-section {
    display: block !important;
    min-height: auto !important;
  }

  .terms-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: .85rem !important;
  }

  .terms-toc {
    order: 1;
  }

  .terms-document {
    order: 2;
    display: grid !important;
    gap: .85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .terms-section-card,
  .terms-document-intro {
    display: block !important;
    width: 100% !important;
  }
}



/* Force Oral First header logo size */
.nav-wrap .brand img,
.site-header .brand img,
.terms-nav-wrap .brand img,
.brand img {
  width: 210px !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
}

.nav-wrap .brand,
.site-header .brand,
.terms-nav-wrap .brand,
.brand {
  min-width: 210px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .nav-wrap .brand img,
  .site-header .brand img,
  .terms-nav-wrap .brand img,
  .brand img {
    width: 175px !important;
  }

  .nav-wrap .brand,
  .site-header .brand,
  .terms-nav-wrap .brand,
  .brand {
    min-width: 175px !important;
  }
}

/* Reduce header top and bottom padding */
.nav-wrap nav,
.site-header nav,
.terms-nav-wrap nav {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* Keep mobile header compact too */
@media (max-width: 768px) {
  .nav-wrap nav,
  .site-header nav,
  .terms-nav-wrap nav {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
}

/* Footer: menu above logo and everything centered */
footer {
  text-align: center !important;
}

.footer-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.25rem !important;
}

/* Put menu first */
.footer-links {
  order: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

/* Put logo/text block below menu */
.footer-inner > *:not(.footer-links) {
  order: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* Center logo */
footer img {
  margin: 0 auto 1rem !important;
}

/* Make footer paragraphs neat */
footer p,
footer div {
  text-align: center;
}

/* Mobile spacing */
@media (max-width: 680px) {
  footer {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .footer-links {
    gap: .75rem !important;
    font-size: .9rem !important;
  }

  footer img {
    width: 145px !important;
  }
}


/* Center copyright / registration section */
.of-reg {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: center;
}

.of-reg-container {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.of-reg p {
  margin: 0;
  text-align: center;
}


/* Terms page footer: menu above logo and center everything */
.of-legal-footer {
  text-align: center !important;
}

.of-legal-footer-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.25rem !important;
}

/* Menu first */
.of-legal-footer-links {
  order: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  width: 100% !important;
  text-align: center !important;
}

/* Logo and business details below menu */
.of-legal-footer-inner > div:first-child {
  order: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

/* Center logo */
.of-legal-footer img {
  margin: 0 auto 1rem !important;
}

/* Center all footer text */
.of-legal-footer p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile tidy-up */
@media (max-width: 680px) {
  .of-legal-footer {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .of-legal-footer-links {
    gap: .75rem !important;
    font-size: .9rem !important;
    line-height: 1.5 !important;
  }

  .of-legal-footer img {
    width: 145px !important;
  }
}