/* =========================================================
   ScanMySEO Privacy & Cookie Policies
   Shared, scoped styles for privacy_policy.html and
   cookie_policy.html
   ========================================================= */

body > main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.legal-page,
.legal-page * {
  box-sizing: border-box;
}

h1#privacy-policy-title {
    text-align: center;
}
h1#cookie-policy-title {
    text-align: center;
}
.legal-page {
  --legal-ink: #12243b;
  --legal-heading: #0b1a2e;
  --legal-copy: #43546b;
  --legal-muted: #718096;
  --legal-blue: var(--brand-primary, #1e90ff);
  --legal-cyan: var(--brand-secondary, #00bfff);
  --legal-navy: #0b1728;
  --legal-line: rgba(31, 68, 109, 0.14);
  --legal-line-strong: rgba(30, 144, 255, 0.28);
  --legal-surface: #ffffff;
  --legal-soft: #f3f7fb;
  --legal-soft-blue: #edf7ff;
  --legal-green: #167e5a;
  --legal-green-soft: #eefaf5;
  --legal-amber: #8f5b00;
  --legal-amber-soft: #fff8e8;
  --legal-red: #a43434;
  --legal-red-soft: #fff2f2;
  --legal-shadow: 0 22px 60px rgba(19, 42, 73, 0.09);
  --legal-radius: 20px;

  min-height: 100vh;
  padding: 0 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 8% 3%, rgba(30, 144, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 96% 12%, rgba(0, 191, 255, 0.075), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 42%, #f7f9fc 100%);
  color: var(--legal-copy);
  font-family: "Roboto", sans-serif;
  line-height: 1.68;
}

.legal-page a {
  color: #116fc5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.legal-page a:hover {
  color: #075aab;
}

.legal-page a:focus-visible,
.legal-page button:focus-visible,
.legal-page summary:focus-visible {
  outline: 3px solid rgba(30, 144, 255, 0.3);
  outline-offset: 3px;
  border-radius: 7px;
}

.legal-page p,
.legal-page li,
.legal-page dd,
.legal-page td,
.legal-page th {
  color: var(--legal-copy);
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  color: var(--legal-heading);
  text-align: left;
  text-transform: none;
  border: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.65rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.legal-page h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-page h3 {
  margin: 1.85rem 0 0.62rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.legal-page h4 {
  margin: 1.35rem 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.legal-page p {
  margin: 0 0 1rem;
}

.legal-page ul,
.legal-page ol {
  margin: 0.65rem 0 1.15rem;
  padding-left: 1.4rem;
}

.legal-page li {
  margin: 0.42rem 0;
  padding-left: 0.18rem;
}

.legal-page li::marker {
  color: var(--legal-blue);
  font-weight: 800;
}

.legal-page strong {
  color: #132b49;
}

.legal-page code {
  padding: 0.12rem 0.38rem;
  border: 1px solid rgba(30, 144, 255, 0.18);
  border-radius: 6px;
  background: #eef7ff;
  color: #0d4d83 !important;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

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

/* Breadcrumb ------------------------------------------------ */

.legal-breadcrumb {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 0.8rem;
}

.legal-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-breadcrumb li {
  margin: 0;
  padding: 0;
  color: var(--legal-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.legal-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.42rem;
  color: #9aa7b7;
}

.legal-breadcrumb a {
  color: #45647f;
  text-decoration: none;
}

/* Hero ------------------------------------------------------ */

.legal-hero {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.4rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(95, 210, 255, 0.22);
  border-radius: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(circle at 90% 18%, rgba(41, 207, 255, 0.2), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(30, 144, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #091527 0%, #112442 48%, #12385f 100%);
  box-shadow: 0 34px 80px rgba(11, 31, 58, 0.2);
  color: #ffffff;
}

.legal-page--privacy .legal-hero {
  background:
    radial-gradient(circle at 91% 18%, rgba(59, 216, 176, 0.18), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(30, 144, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #071827 0%, #102d46 50%, #12475a 100%);
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.legal-hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 207, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 207, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(115deg, transparent 8%, #000 58%, transparent 98%);
  opacity: 0.45;
}

.legal-hero::after {
  width: 25rem;
  height: 25rem;
  top: -15rem;
  right: -7rem;
  border: 1px solid rgba(107, 222, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(67, 200, 255, 0.025),
    0 0 0 7rem rgba(67, 200, 255, 0.018);
}

.legal-hero h1,
.legal-hero p,
.legal-hero dt,
.legal-hero dd,
.legal-hero strong {
  color: #ffffff;
}

.legal-hero__signal {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.legal-hero__signal span {
  display: block;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #65d8ff;
  box-shadow: 0 0 0 5px rgba(101, 216, 255, 0.08);
}

.legal-hero__signal span:nth-child(2) {
  opacity: 0.65;
}

.legal-hero__signal span:nth-child(3) {
  opacity: 0.35;
}

.legal-eyebrow {
  margin: 0 0 0.7rem !important;
  color: #1265a8 !important;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero .legal-eyebrow {
  color: #78ddff !important;
}

.legal-hero__lede {
  max-width: 820px;
  margin: 1.15rem 0 0 !important;
  color: #d7e8f8 !important;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  overflow: hidden;
  border: 1px solid rgba(145, 215, 255, 0.2);
  border-radius: 16px;
  background: rgba(6, 19, 35, 0.31);
  backdrop-filter: blur(10px);
}

.legal-meta > div {
  min-width: 0;
  padding: 1rem 1.1rem;
}

.legal-meta > div + div {
  border-left: 1px solid rgba(145, 215, 255, 0.16);
}

.legal-meta dt {
  margin: 0 0 0.25rem;
  color: #9ec7e7 !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 0;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* Trust summary --------------------------------------------- */

.legal-summary {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(1.4rem, 4vw, 2.6rem) auto 0;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid var(--legal-line);
  border-radius: var(--legal-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--legal-shadow);
  backdrop-filter: blur(8px);
}

.legal-summary__intro {
  max-width: 820px;
  margin-bottom: 1.3rem;
}

.legal-summary__intro p:last-child {
  margin-bottom: 0;
}

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

.legal-summary__grid article {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(36, 79, 124, 0.12);
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.legal-summary__grid h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.98rem;
}

.legal-summary__grid p {
  margin: 0;
  color: #5d6f84;
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-summary__number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 9px;
  background: #e8f5ff;
  color: #0b70c4;
  font-size: 0.68rem;
  font-weight: 900;
}

/* Related policy cards -------------------------------------- */

.legal-related {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.1rem auto 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--legal-line);
  border-radius: var(--legal-radius);
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(24, 51, 82, 0.065);
}

.legal-related__heading {
  max-width: 780px;
  margin-bottom: 1rem;
}

.legal-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.legal-related__grid a,
.legal-related__grid button {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  border: 1px solid rgba(36, 79, 124, 0.13);
  border-radius: 14px;
  background: #f7fbff;
  color: var(--legal-heading);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.legal-related__grid a:hover,
.legal-related__grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 144, 255, 0.34);
  box-shadow: 0 12px 24px rgba(20, 54, 90, 0.08);
}

.legal-related__grid span {
  margin-bottom: 0.35rem;
  color: #0b70c4;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-related__grid strong {
  font-size: 0.98rem;
}

.legal-related__grid small {
  margin-top: 0.35rem;
  color: #607287;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Contents and layout --------------------------------------- */

.legal-mobile-toc {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 1.1rem auto 0;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: #ffffff;
}

.legal-mobile-toc summary {
  padding: 1rem 1.1rem;
  color: var(--legal-heading);
  font-weight: 800;
  cursor: pointer;
}

.legal-mobile-toc nav {
  padding: 0 1.1rem 1rem;
}

.legal-mobile-toc ol {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.1rem;
}

.legal-mobile-toc a {
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(1.3rem, 4vw, 2.8rem) auto 0;
}

.legal-toc {
  position: sticky;
  top: 1.1rem;
}

.legal-toc__inner {
  max-height: calc(100vh - 2.2rem);
  overflow-y: auto;
  padding: 1rem 0.9rem;
  border: 1px solid var(--legal-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(25, 54, 86, 0.07);
  scrollbar-width: thin;
}

.legal-toc__label {
  margin: 0 0 0.65rem !important;
  color: var(--legal-heading) !important;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc li {
  margin: 0;
  padding: 0;
}

.legal-toc a {
  display: block;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  color: #50667c;
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.legal-toc a:hover {
  background: #edf7ff;
  color: #0b70c4;
}

.legal-toc__top {
  margin-top: 0.65rem;
  border-top: 1px solid var(--legal-line);
  padding-top: 0.7rem !important;
  color: #0b70c4 !important;
}

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

.legal-section {
  position: relative;
  margin: 0 0 1rem;
  padding: clamp(1.25rem, 3vw, 2.15rem);
  overflow: hidden;
  border: 1px solid var(--legal-line);
  border-radius: var(--legal-radius);
  background: var(--legal-surface);
  box-shadow: 0 14px 36px rgba(24, 52, 84, 0.055);
  scroll-margin-top: 1.2rem;
}

.legal-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--legal-blue), var(--legal-cyan));
  opacity: 0.72;
}

.legal-section__number {
  display: inline-flex;
  margin: 0 0 0.55rem !important;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(30, 144, 255, 0.17);
  border-radius: 999px;
  background: #edf7ff;
  color: #0b70c4 !important;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-section > h2 + p,
.legal-section > h2 + ul,
.legal-section > h2 + ol,
.legal-section > h2 + div,
.legal-section > h2 + table {
  margin-top: 1rem;
}

/* Callouts --------------------------------------------------- */

.legal-callout {
  margin: 1.15rem 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--legal-line-strong);
  border-radius: 14px;
  background: var(--legal-soft-blue);
}

.legal-callout p:last-child,
.legal-callout ul:last-child,
.legal-callout ol:last-child {
  margin-bottom: 0;
}

.legal-callout--trust {
  border-color: rgba(22, 126, 90, 0.22);
  background: var(--legal-green-soft);
}

.legal-callout--warning {
  border-color: rgba(143, 91, 0, 0.24);
  background: var(--legal-amber-soft);
}

.legal-callout--important {
  border-color: rgba(164, 52, 52, 0.22);
  background: var(--legal-red-soft);
}

.legal-callout__title {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--legal-heading);
  font-weight: 900;
}

.legal-right-to-object {
  margin: 1.35rem 0;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 2px solid rgba(30, 144, 255, 0.34);
  border-radius: 16px;
  background: linear-gradient(135deg, #edf7ff 0%, #f8fcff 100%);
}

.legal-right-to-object h3 {
  margin-top: 0;
  color: #075aab;
}

/* Tables ----------------------------------------------------- */

.legal-table-wrap {
  width: 100%;
  margin: 1rem 0 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.5;
}

.legal-table--wide {
  min-width: 1080px;
}

.legal-table th,
.legal-table td {
  padding: 0.82rem 0.82rem;
  border-bottom: 1px solid var(--legal-line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.legal-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ecf5fc;
  color: #173654;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

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

.legal-table tbody tr:nth-child(even) {
  background: #fafcff;
}

.legal-table td:first-child {
  color: #173654;
  font-weight: 750;
}

.legal-table .legal-badge {
  display: inline-flex;
  margin: 0.12rem 0.12rem 0.12rem 0;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: #eaf5ff;
  color: #0b70c4;
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.legal-table .legal-badge--necessary {
  background: #eefaf5;
  color: #116c4d;
}

.legal-table .legal-badge--optional {
  background: #fff7e7;
  color: #855400;
}

/* Definitions and grids ------------------------------------- */

.legal-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.legal-definitions > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--legal-line);
  border-radius: 13px;
  background: #f8fbfe;
}

.legal-definitions dt {
  margin: 0 0 0.3rem;
  color: #173654;
  font-weight: 900;
}

.legal-definitions dd {
  margin: 0;
  font-size: 0.9rem;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.legal-card-grid article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: #f8fbfe;
}

.legal-card-grid article h3 {
  margin: 0 0 0.4rem;
}

.legal-card-grid article p:last-child,
.legal-card-grid article ul:last-child {
  margin-bottom: 0;
}

/* Contact and end navigation -------------------------------- */

.legal-contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--legal-line-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, #eef8ff, #ffffff);
}

.legal-contact-card p:last-child {
  margin-bottom: 0;
}

.legal-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(30, 144, 255, 0.25);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--legal-blue), var(--legal-cyan));
  color: #ffffff !important;
  font-weight: 850;
  text-decoration: none !important;
  cursor: pointer;
}

.legal-button--secondary {
  background: #ffffff;
  color: #0b70c4 !important;
}

.legal-end-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.legal-end-nav a {
  font-weight: 800;
}

/* Responsive ------------------------------------------------ */

@media (max-width: 980px) {
  .legal-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .legal-toc {
    display: none;
  }

  .legal-mobile-toc {
    display: block;
  }
}

@media (max-width: 760px) {
  .legal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-meta > div + div {
    border-left: 0;
  }

  .legal-meta > div:nth-child(even) {
    border-left: 1px solid rgba(145, 215, 255, 0.16);
  }

  .legal-meta > div:nth-child(n + 3) {
    border-top: 1px solid rgba(145, 215, 255, 0.16);
  }

  .legal-definitions,
  .legal-card-grid,
  .legal-contact-card {
    grid-template-columns: 1fr;
  }

  .legal-contact-card .legal-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .legal-breadcrumb,
  .legal-hero,
  .legal-summary,
  .legal-related,
  .legal-mobile-toc,
  .legal-layout {
    width: min(100% - 1rem, 1180px);
  }

  .legal-hero {
    padding: 2rem 1rem;
    border-radius: 18px;
  }

  .legal-summary,
  .legal-related,
  .legal-section {
    padding: 1rem;
    border-radius: 15px;
  }

  .legal-summary__grid,
  .legal-related__grid {
    grid-template-columns: 1fr;
  }

  .legal-mobile-toc ol {
    columns: 1;
  }

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

  .legal-meta > div:nth-child(even) {
    border-left: 0;
  }

  .legal-meta > div + div,
  .legal-meta > div:nth-child(n + 3) {
    border-top: 1px solid rgba(145, 215, 255, 0.16);
  }

  .legal-end-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

/* Print ------------------------------------------------------ */

@media print {
  @page {
    margin: 16mm;
  }

  body > header,
  body > footer,
  .cookie-banner,
  .legal-breadcrumb,
  .legal-summary,
  .legal-related,
  .legal-mobile-toc,
  .legal-toc,
  .legal-end-nav {
    display: none !important;
  }

  body > main,
  .legal-page,
  .legal-layout,
  .legal-document {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }

  .legal-hero {
    width: 100% !important;
    margin: 0 0 10mm !important;
    padding: 0 0 8mm !important;
    border: 0 !important;
    border-bottom: 2px solid #000000 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #000000 !important;
  }

  .legal-hero::before,
  .legal-hero::after,
  .legal-hero__signal {
    display: none !important;
  }

  .legal-hero h1,
  .legal-hero .legal-eyebrow,
  .legal-hero__lede,
  .legal-meta dt,
  .legal-meta dd {
    color: #000000 !important;
  }

  .legal-meta {
    margin-top: 5mm;
    border: 1px solid #999999;
    background: #ffffff !important;
    backdrop-filter: none;
  }

  .legal-section {
    break-inside: auto;
    margin: 0 0 6mm;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff !important;
    box-shadow: none;
  }

  .legal-section::before {
    display: none;
  }

  .legal-section h2,
  .legal-section h3,
  .legal-section h4 {
    break-after: avoid;
    color: #000000 !important;
  }

  .legal-section p,
  .legal-section li,
  .legal-section dd,
  .legal-section strong,
  .legal-section td,
  .legal-section th {
    color: #000000 !important;
  }

  .legal-section__number {
    padding: 0;
    border: 0;
    background: transparent;
    color: #000000 !important;
  }

  .legal-callout,
  .legal-right-to-object,
  .legal-contact-card {
    break-inside: avoid;
    border: 1px solid #999999 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .legal-table-wrap {
    overflow: visible;
    border-color: #999999;
  }

  .legal-table {
    min-width: 0;
    font-size: 7.5pt;
  }

  .legal-table th {
    position: static;
    background: #eeeeee !important;
  }

  .legal-page a {
    color: #000000 !important;
    text-decoration: underline;
  }

  .legal-page a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.72em;
    font-weight: normal;
    overflow-wrap: anywhere;
  }
}


/* Privacy-policy compatibility and shared trust components -------- */

.legal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.legal-button--ghost {
  border-color: rgba(30, 144, 255, 0.25);
  background: #ffffff;
  color: #0b70c4 !important;
  box-shadow: none;
}

.legal-button--ghost:hover,
.legal-button--ghost:focus-visible {
  background: #edf7ff;
}

.legal-hero .legal-button--ghost {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.legal-hero .legal-button--ghost:hover,
.legal-hero .legal-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.legal-clause {
  position: relative;
  margin: 0 0 1rem;
  padding: clamp(1.25rem, 3vw, 2.15rem);
  overflow: hidden;
  border: 1px solid var(--legal-line);
  border-radius: var(--legal-radius);
  background: var(--legal-surface);
  box-shadow: 0 14px 36px rgba(24, 52, 84, 0.055);
  scroll-margin-top: 1.2rem;
}

.legal-clause::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--legal-blue), var(--legal-cyan));
  opacity: 0.72;
}

.legal-clause__number {
  display: inline-flex;
  margin: 0 0 0.55rem !important;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(30, 144, 255, 0.17);
  border-radius: 999px;
  background: #edf7ff;
  color: #0b70c4 !important;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-clause__intro {
  margin-top: 1rem;
  font-size: 1.01rem;
}

.legal-clause > h2 + p,
.legal-clause > h2 + ul,
.legal-clause > h2 + ol,
.legal-clause > h2 + div,
.legal-clause > h2 + table {
  margin-top: 1rem;
}

.legal-note {
  margin: 1.15rem 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--legal-line-strong);
  border-radius: 14px;
  background: var(--legal-soft-blue);
}

.legal-note p:last-child,
.legal-note ul:last-child,
.legal-note ol:last-child {
  margin-bottom: 0;
}

.legal-note--trust {
  border-color: rgba(22, 126, 90, 0.22);
  background: var(--legal-green-soft);
}

.legal-note--warning {
  border-color: rgba(143, 91, 0, 0.24);
  background: var(--legal-amber-soft);
}

.legal-note__title {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--legal-heading);
  font-weight: 900;
}

.legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.legal-pills li {
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--legal-line);
  border-radius: 999px;
  background: #f5faff;
  color: #294b69;
  font-size: 0.84rem;
  font-weight: 750;
}

.legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.legal-rights-grid article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: #f8fbfe;
}

.legal-rights-grid article h3 {
  margin: 0 0 0.4rem;
}

.legal-rights-grid article p:last-child {
  margin-bottom: 0;
}

.legal-revision-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-revision-list li {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--legal-line);
}

.legal-revision-list time {
  color: #173654;
  font-weight: 850;
}

.legal-smallprint {
  margin-top: 1rem;
  color: #61768a !important;
  font-size: 0.82rem;
}

.legal-contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .legal-rights-grid {
    grid-template-columns: 1fr;
  }

  .legal-contact-card__actions {
    justify-content: stretch;
  }

  .legal-contact-card__actions .legal-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .legal-clause {
    padding: 1rem;
    border-radius: 15px;
  }

  .legal-revision-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .legal-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-hero__actions .legal-button {
    width: 100%;
  }
}

@media print {
  .legal-hero__actions {
    display: none !important;
  }

  .legal-clause {
    break-inside: auto;
    margin: 0 0 6mm;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff !important;
    box-shadow: none;
  }

  .legal-clause::before {
    display: none;
  }

  .legal-clause h2,
  .legal-clause h3,
  .legal-clause h4 {
    break-after: avoid;
    color: #000000 !important;
  }

  .legal-clause p,
  .legal-clause li,
  .legal-clause dd,
  .legal-clause strong,
  .legal-clause td,
  .legal-clause th {
    color: #000000 !important;
  }

  .legal-clause__number {
    padding: 0;
    border: 0;
    background: transparent;
    color: #000000 !important;
  }

  .legal-note,
  .legal-rights-grid article {
    break-inside: avoid;
    border: 1px solid #999999 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }
}
p.legal-hero__lede {
    justify-self: anchor-center;
}