/* Casa Miller legal pages */
.cm-legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 118px) 0 clamp(52px, 7vw, 84px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(102, 221, 245, .18), transparent 34%),
    linear-gradient(135deg, #092f49 0%, #0d4669 52%, #0d5677 100%);
}

.cm-legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.cm-legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.cm-legal-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 700;
}

.cm-legal-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.cm-legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #dff8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cm-legal-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.052em;
}

.cm-legal-hero h1 span {
  color: #75e5f6;
}

.cm-legal-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.cm-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cm-legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(5, 29, 46, .24);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
}

.cm-legal-section {
  padding: clamp(54px, 7vw, 88px) 0;
  background: #f5f8fb;
}

.cm-legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.cm-legal-document {
  min-width: 0;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid #dce6ed;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(18, 51, 73, .08);
}

.cm-legal-intro {
  margin-bottom: 34px;
  padding: 20px 22px;
  border-left: 4px solid #1a8baa;
  border-radius: 0 14px 14px 0;
  background: #eef9fc;
  color: #244b60;
  line-height: 1.75;
}

.cm-legal-block {
  scroll-margin-top: 110px;
  padding: 0 0 32px;
  margin: 0 0 32px;
  border-bottom: 1px solid #e3ebf0;
}

.cm-legal-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.cm-legal-block h2 {
  margin: 0 0 16px;
  color: #0d3e5b;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.cm-legal-block h3 {
  margin: 24px 0 10px;
  color: #173f55;
  font-size: 17px;
}

.cm-legal-block p,
.cm-legal-block li {
  color: #536b79;
  font-size: 15px;
  line-height: 1.8;
}

.cm-legal-block p {
  margin: 0 0 14px;
}

.cm-legal-block ul,
.cm-legal-block ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.cm-legal-block li + li {
  margin-top: 8px;
}

.cm-legal-block a {
  color: #0e7191;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cm-legal-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid #dfe8ee;
  border-radius: 14px;
}

.cm-legal-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: #fff;
}

.cm-legal-table th,
.cm-legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e6edf2;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
}

.cm-legal-table th {
  background: #eff6f9;
  color: #123f59;
  font-weight: 800;
}

.cm-legal-table td {
  color: #536b79;
}

.cm-legal-table tr:last-child td {
  border-bottom: 0;
}

.cm-legal-callout {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cde2eb;
  border-radius: 14px;
  background: #f3fafc;
}

.cm-legal-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #0d4866;
}

.cm-legal-sidebar {
  position: sticky;
  top: 98px;
  padding: 20px;
  border: 1px solid #dce6ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18, 51, 73, .07);
}

.cm-legal-sidebar h3 {
  margin: 0 0 14px;
  color: #123f59;
  font-size: 15px;
}

.cm-legal-toc {
  display: grid;
  gap: 4px;
}

.cm-legal-toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: #5c717e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.cm-legal-toc a:hover {
  transform: translateX(2px);
  background: #eef7fa;
  color: #0d6f8e;
}

.cm-legal-contact-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 13px;
  background: #0e3a5b;
  color: #fff;
}

.cm-legal-contact-card strong,
.cm-legal-contact-card span,
.cm-legal-contact-card a {
  display: block;
}

.cm-legal-contact-card strong {
  margin-bottom: 5px;
}

.cm-legal-contact-card span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.5;
}

.cm-legal-contact-card a {
  margin-top: 10px;
  color: #8beafa;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cm-legal-bottom-cta {
  padding: 54px 0;
  background: #fff;
}

.cm-legal-bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 22px;
  background: linear-gradient(135deg, #0e3a5b, #0e5777);
  color: #fff;
}

.cm-legal-bottom-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 36px);
}

.cm-legal-bottom-cta p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

@media (max-width: 960px) {
  .cm-legal-layout {
    grid-template-columns: 1fr;
  }

  .cm-legal-sidebar {
    position: static;
    order: -1;
  }

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

@media (max-width: 640px) {
  .cm-legal-hero {
    padding: 54px 0 44px;
  }

  .cm-legal-hero h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .cm-legal-section {
    padding: 34px 0 48px;
  }

  .cm-legal-document {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .cm-legal-sidebar {
    padding: 16px;
    border-radius: 15px;
  }

  .cm-legal-toc {
    grid-template-columns: 1fr;
  }

  .cm-legal-bottom-cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .cm-legal-bottom-cta-inner .cm-btn {
    width: 100%;
  }
}


/* ==========================================================================
   COOKIE POLICY PAGE — MOVED FROM TEMPLATE
   ========================================================================== */
/* =========================================================
     COOKIE POLICY PAGE
     Isolated layout fixes
     ========================================================= */

  .cm-cookie-policy-page {
    width: 100%;
    min-width: 0;
  }

  .cm-cookie-policy-page *,
  .cm-cookie-policy-page *::before,
  .cm-cookie-policy-page *::after {
    box-sizing: border-box;
  }

  /* =========================================================
     HERO
     ========================================================= */

  .cm-cookie-policy-page .cm-legal-hero {
    width: 100%;
  }

  .cm-cookie-policy-page .cm-legal-hero-inner {
    width: 100%;
  }

  /* =========================================================
     MAIN LAYOUT
     ========================================================= */

  .cm-cookie-policy-page .cm-cookie-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;

    width: 100%;
    max-width: 1280px;

    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 40px;

    align-items: start;
  }

  /* =========================================================
     ASIDE NAVIGATION
     ========================================================= */

  .cm-cookie-policy-page .cm-cookie-nav {
    position: sticky;
    top: 110px;

    width: 100%;
    min-width: 0;

    padding: 22px;

    background: #ffffff;

    border: 1px solid rgba(14, 58, 91, 0.11);
    border-radius: 18px;

    box-shadow:
      0 10px 30px rgba(14, 58, 91, 0.05);

    overflow: hidden;
  }

  .cm-cookie-policy-page .cm-cookie-nav > strong {
    display: block;

    margin-bottom: 14px;

    color: #0e3a5b;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;

    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .cm-cookie-policy-page .cm-cookie-nav a {
    display: block;

    width: 100%;

    padding: 9px 10px;
    margin: 2px 0;

    color: #526a7a;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    text-decoration: none;

    border-radius: 10px;

    transition:
      background-color 0.18s ease,
      color 0.18s ease,
      transform 0.18s ease;
  }

  .cm-cookie-policy-page .cm-cookie-nav a:hover {
    color: #0e3a5b;
    background: #f1f7fa;
    transform: translateX(2px);
  }

  /* =========================================================
     ARTICLE CONTENT
     ========================================================= */

  .cm-cookie-policy-page .cm-cookie-content {
    display: block;

    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0;
    padding: 0;
  }

  .cm-cookie-policy-page .cm-cookie-content > section {
    width: 100%;
    min-width: 0;

    margin: 0 0 32px;
    padding: 32px 34px;

    background: #ffffff;

    border: 1px solid rgba(14, 58, 91, 0.10);
    border-radius: 20px;

    box-shadow:
      0 8px 30px rgba(14, 58, 91, 0.045);

    scroll-margin-top: 120px;
  }

  .cm-cookie-policy-page .cm-cookie-content > section:last-child {
    margin-bottom: 0;
  }

  .cm-cookie-policy-page .cm-cookie-content h2 {
    margin-top: 7px;
    margin-bottom: 14px;

    color: #0e3a5b;

    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.16;
  }

  .cm-cookie-policy-page .cm-cookie-content p {
    max-width: 940px;

    margin-top: 0;
    margin-bottom: 16px;

    color: #526a7a;

    font-size: 15px;
    line-height: 1.8;
  }

  .cm-cookie-policy-page .cm-cookie-content p:last-child {
    margin-bottom: 0;
  }

  .cm-cookie-policy-page .cm-cookie-content a {
    color: #0e3a5b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .cm-cookie-policy-page .cm-cookie-content code {
    color: #0e3a5b;
    font-weight: 700;
  }

  /* =========================================================
     TABLES
     ========================================================= */

  .cm-cookie-policy-page .cm-cookie-table-wrap {
    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    margin-top: 22px;

    border: 1px solid rgba(14, 58, 91, 0.12);
    border-radius: 16px;

    background: #ffffff;
  }

  .cm-cookie-policy-page .cm-cookie-table {
    width: 100%;
    min-width: 720px;

    border-collapse: collapse;

    background: #ffffff;
  }

  .cm-cookie-policy-page .cm-cookie-table th,
  .cm-cookie-policy-page .cm-cookie-table td {
    padding: 14px 16px;

    text-align: left;
    vertical-align: top;

    border-bottom: 1px solid rgba(14, 58, 91, 0.09);
  }

  .cm-cookie-policy-page .cm-cookie-table th {
    color: #0e3a5b;
    background: #f4f8fb;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    white-space: nowrap;
  }

  .cm-cookie-policy-page .cm-cookie-table td {
    color: #526a7a;

    font-size: 13px;
    line-height: 1.6;
  }

  .cm-cookie-policy-page .cm-cookie-table td:first-child {
    white-space: nowrap;
  }

  .cm-cookie-policy-page .cm-cookie-table code {
    color: #0e3a5b;
    font-weight: 800;
  }

  .cm-cookie-policy-page .cm-cookie-table tr:last-child td {
    border-bottom: 0;
  }

  /* =========================================================
     COOKIE SETTINGS CARD
     ========================================================= */

  .cm-cookie-policy-page .cm-cookie-settings-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    width: 100%;

    padding: 22px 24px;
    margin-top: 24px;

    background: #eef8fb;

    border: 1px solid rgba(14, 58, 91, 0.12);
    border-radius: 16px;
  }

  .cm-cookie-policy-page .cm-cookie-settings-card > div {
    min-width: 0;
  }

  .cm-cookie-policy-page .cm-cookie-settings-card strong {
    display: block;

    color: #0e3a5b;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
  }

  .cm-cookie-policy-page .cm-cookie-settings-card p {
    margin: 6px 0 0;
  }

  .cm-cookie-policy-page .cm-cookie-settings-card .cm-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* =========================================================
     TABLET
     ========================================================= */

  @media (max-width: 1024px) {
    .cm-cookie-policy-page .cm-cookie-layout {
      grid-template-columns: 210px minmax(0, 1fr);
      gap: 28px;
    }

    .cm-cookie-policy-page .cm-cookie-content > section {
      padding: 28px;
    }
  }

  /* =========================================================
     MOBILE / TABLET PORTRAIT
     ========================================================= */

  @media (max-width: 820px) {
    .cm-cookie-policy-page .cm-cookie-layout {
      display: block;
      width: 100%;
    }

    .cm-cookie-policy-page .cm-cookie-nav {
      position: relative;
      top: auto;

      display: flex;
      gap: 8px;

      width: 100%;

      margin-bottom: 24px;
      padding: 14px;

      overflow-x: auto;
      overflow-y: hidden;

      white-space: nowrap;

      scrollbar-width: none;
    }

    .cm-cookie-policy-page .cm-cookie-nav::-webkit-scrollbar {
      display: none;
    }

    .cm-cookie-policy-page .cm-cookie-nav > strong {
      display: none;
    }

    .cm-cookie-policy-page .cm-cookie-nav a {
      display: inline-flex;
      align-items: center;

      width: auto;
      flex: 0 0 auto;

      margin: 0;
      padding: 9px 13px;

      background: #f4f8fb;

      border: 1px solid rgba(14, 58, 91, 0.08);

      font-size: 13px;
      white-space: nowrap;
    }

    .cm-cookie-policy-page .cm-cookie-nav a:hover {
      transform: none;
    }

    .cm-cookie-policy-page .cm-cookie-content {
      width: 100%;
    }

    .cm-cookie-policy-page .cm-cookie-content > section {
      width: 100%;

      margin-bottom: 20px;
      padding: 24px;

      border-radius: 18px;

      scroll-margin-top: 90px;
    }
  }

  /* =========================================================
     SMALL MOBILE
     ========================================================= */

  @media (max-width: 640px) {
    .cm-cookie-policy-page .cm-cookie-content > section {
      padding: 21px 18px;
    }

    .cm-cookie-policy-page .cm-cookie-content h2 {
      font-size: 25px;
    }

    .cm-cookie-policy-page .cm-cookie-content p {
      font-size: 14px;
      line-height: 1.75;
    }

    .cm-cookie-policy-page .cm-cookie-settings-card {
      align-items: stretch;
      flex-direction: column;

      gap: 16px;

      padding: 18px;
    }

    .cm-cookie-policy-page .cm-cookie-settings-card .cm-btn {
      width: 100%;
    }

    .cm-cookie-policy-page .cm-cookie-table-wrap {
      margin-left: 0;
      margin-right: 0;
    }

    .cm-cookie-policy-page .cm-cookie-table th,
    .cm-cookie-policy-page .cm-cookie-table td {
      padding: 12px 14px;
    }
  }

/* ==========================================================================
   LEGAL PAGES — PREMIUM PUBLIC POLISH
   ========================================================================== */
.cm-legal-hero {
  padding: 50px 0 42px;
  background:
    radial-gradient(circle at 84% 18%, rgba(142,217,255,.14), transparent 30%),
    linear-gradient(135deg,#082d47 0%,#0b4668 56%,#10698e 100%);
}

.cm-legal-hero::after {
  opacity: .18;
  background-size: 52px 52px;
}

.cm-legal-hero-inner {
  max-width: 820px;
}

.cm-legal-breadcrumb {
  margin-bottom: 16px;
  gap: 7px;
  font-size: 11px;
  font-weight: 560;
}

.cm-legal-kicker {
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 13px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .075em;
}

.cm-legal-hero h1 {
  max-width: 700px;
  font-size: clamp(34px,4.6vw,54px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.045em;
}

.cm-legal-hero h1 span {
  color: #8ed9ff;
}

.cm-legal-hero p {
  max-width: 700px;
  margin-top: 15px;
  font-size: 14.5px;
  line-height: 1.65;
}

.cm-legal-meta {
  margin-top: 18px;
  gap: 7px;
}

.cm-legal-meta span {
  min-height: 27px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 550;
  border-radius: 999px;
}

.cm-legal-section {
  padding: 48px 0 64px;
}

.cm-legal-layout {
  grid-template-columns: minmax(0,1fr) 245px;
  gap: 26px;
  align-items: start;
}

.cm-legal-document {
  min-width: 0;
}

.cm-legal-intro {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(14,58,91,.10);
  border-radius: 14px;
  background: #f7fbfd;
  color: #4f6879;
  font-size: 14px;
  line-height: 1.7;
}

.cm-legal-block {
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(14,58,91,.10);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(8,40,63,.035);
  scroll-margin-top: 96px;
}

.cm-legal-block h2 {
  margin: 0 0 12px;
  font-size: clamp(22px,2.4vw,29px);
  line-height: 1.15;
  font-weight: 620;
  letter-spacing: -.03em;
}

.cm-legal-block h3 {
  font-size: 16px;
  font-weight: 620;
}

.cm-legal-block p,
.cm-legal-block li {
  color: #516a7b;
  font-size: 13.5px;
  line-height: 1.72;
}

.cm-legal-sidebar {
  position: sticky;
  top: 92px;
}

.cm-legal-toc,
.cm-legal-contact-card {
  border: 1px solid rgba(14,58,91,.10);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(8,40,63,.04);
}

.cm-legal-toc {
  padding: 14px;
}

.cm-legal-toc strong {
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .07em;
}

.cm-legal-toc a {
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 520;
}

.cm-legal-contact-card {
  margin-top: 12px;
  padding: 15px;
}

.cm-legal-table-wrap {
  border-radius: 12px;
  border-color: rgba(14,58,91,.10);
}

.cm-legal-table th {
  font-size: 10px;
  font-weight: 680;
}

.cm-legal-table td {
  font-size: 12.5px;
  line-height: 1.55;
}

.cm-legal-callout {
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
}

.cm-legal-bottom-cta {
  padding: 0 0 62px;
}

.cm-legal-bottom-cta-inner {
  padding: 24px 28px;
  border-radius: 16px;
}

/* Cookie policy inherits the same visual scale */
.cm-cookie-policy-page .cm-cookie-layout {
  grid-template-columns: 220px minmax(0,1fr);
  gap: 26px;
  max-width: 1080px;
  padding-top: 0;
}

.cm-cookie-policy-page .cm-cookie-nav {
  top: 92px;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(8,40,63,.04);
}

.cm-cookie-policy-page .cm-cookie-nav > strong {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .07em;
}

.cm-cookie-policy-page .cm-cookie-nav a {
  padding: 7px 9px;
  margin: 1px 0;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 520;
}

.cm-cookie-policy-page .cm-cookie-content > section {
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(8,40,63,.035);
  scroll-margin-top: 96px;
}

.cm-cookie-policy-page .cm-cookie-content h2 {
  margin: 6px 0 12px;
  font-size: clamp(22px,2.4vw,29px);
  font-weight: 620;
  letter-spacing: -.03em;
}

.cm-cookie-policy-page .cm-cookie-content p {
  margin-bottom: 13px;
  font-size: 13.5px;
  line-height: 1.72;
}

.cm-cookie-policy-page .cm-cookie-settings-card {
  padding: 16px 18px;
  border-radius: 12px;
}

.cm-cookie-policy-page .cm-cookie-settings-card strong {
  font-size: 14px;
  font-weight: 620;
}

.cm-cookie-policy-page .cm-cookie-table th {
  font-size: 10px;
  font-weight: 680;
}

.cm-cookie-policy-page .cm-cookie-table td {
  font-size: 12px;
}

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

  .cm-legal-sidebar {
    position: static;
    order: -1;
  }

  .cm-legal-toc {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cm-legal-toc::-webkit-scrollbar { display: none; }

  .cm-legal-toc strong { display: none; }

  .cm-legal-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #f5f9fb;
  }

  .cm-cookie-policy-page .cm-cookie-layout {
    display: block;
  }
}

@media (max-width: 640px) {
  .cm-legal-hero { padding: 36px 0 34px; }
  .cm-legal-section { padding: 34px 0 48px; }
  .cm-legal-block { padding: 19px 17px; }
  .cm-legal-bottom-cta-inner { padding: 21px 18px; }

  .cm-cookie-policy-page .cm-cookie-content > section {
    padding: 19px 17px;
  }
}


/* ==========================================================================
   FINAL MOBILE OVERRIDES — LEGAL / COOKIE
   ========================================================================== */
@media (max-width: 480px) {
  .cm-legal-hero {
    padding: 31px 0 30px;
  }

  .cm-legal-breadcrumb {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .cm-legal-kicker {
    min-height: 24px;
    font-size: 8.5px;
  }

  .cm-legal-hero h1 {
    font-size: 31px;
  }

  .cm-legal-hero p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .cm-legal-meta {
    gap: 5px;
    margin-top: 14px;
  }

  .cm-legal-meta span {
    min-height: 25px;
    font-size: 9px;
  }

  .cm-legal-section {
    padding: 30px 0 42px;
  }

  .cm-legal-layout {
    gap: 14px;
  }

  .cm-legal-toc {
    margin: 0 -2px;
    padding: 8px;
    border-radius: 12px;
  }

  .cm-legal-toc a {
    padding: 7px 9px;
    font-size: 10.5px;
  }

  .cm-legal-intro,
  .cm-legal-block,
  .cm-cookie-policy-page .cm-cookie-content > section {
    padding: 16px 15px;
    border-radius: 13px;
  }

  .cm-legal-block h2,
  .cm-cookie-policy-page .cm-cookie-content h2 {
    font-size: 21px;
  }

  .cm-legal-block p,
  .cm-legal-block li,
  .cm-cookie-policy-page .cm-cookie-content p {
    font-size: 12.5px;
    line-height: 1.65;
  }

  .cm-legal-table-wrap,
  .cm-cookie-policy-page .cm-cookie-table-wrap {
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
  }

  .cm-legal-table th,
  .cm-legal-table td,
  .cm-cookie-policy-page .cm-cookie-table th,
  .cm-cookie-policy-page .cm-cookie-table td {
    padding: 10px 11px;
  }

  .cm-cookie-policy-page .cm-cookie-nav {
    margin-bottom: 14px;
    padding: 8px;
    border-radius: 12px;
  }

  .cm-cookie-policy-page .cm-cookie-nav a {
    padding: 7px 9px;
    font-size: 10.5px;
  }

  .cm-cookie-policy-page .cm-cookie-settings-card {
    padding: 15px;
  }

  .cm-legal-bottom-cta {
    padding-bottom: 42px;
  }

  .cm-legal-bottom-cta-inner {
    padding: 18px 16px;
  }

  .cm-legal-bottom-cta-inner .cm-btn {
    width: 100%;
    justify-content: center;
  }
}
