/* =========================================================
   ScanMySEO Terms of Service
   Scoped page styles for templates/terms.html
   ========================================================= */

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

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

.terms-page {
  --terms-ink: #14243a;
  --terms-heading: #0e1c31;
  --terms-copy: #43546b;
  --terms-muted: #718096;
  --terms-blue: var(--brand-primary, #1e90ff);
  --terms-cyan: var(--brand-secondary, #00bfff);
  --terms-navy: #0d1a2c;
  --terms-line: rgba(30, 68, 111, 0.14);
  --terms-line-strong: rgba(30, 144, 255, 0.28);
  --terms-surface: #ffffff;
  --terms-soft: #f3f7fb;
  --terms-soft-blue: #edf7ff;
  --terms-amber: #9b6300;
  --terms-amber-soft: #fff8e8;
  --terms-shadow: 0 22px 60px rgba(19, 42, 73, 0.09);
  --terms-radius: 20px;

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

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

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

.terms-page a:focus-visible,
.terms-page summary:focus-visible {
  outline: 3px solid rgba(30, 144, 255, 0.28);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

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

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

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

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

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

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

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

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

.terms-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;
}

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

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

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

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

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

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

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

.terms-hero {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.4rem, 7vw, 5.6rem) 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, #0a1526 0%, #112442 48%, #11345a 100%);
  box-shadow: 0 34px 80px rgba(11, 31, 58, 0.2);
  color: #ffffff;
}

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

.terms-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;
}

.terms-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 3.5rem rgba(44, 178, 255, 0.035),
    0 0 0 8rem rgba(44, 178, 255, 0.02);
}

.terms-hero .terms-eyebrow {
  color: #7fe3ff;
}

.terms-hero h1 {
  max-width: 12ch;
  color: #ffffff;
}

.terms-hero__lede {
  max-width: 67ch;
  margin: 1.15rem 0 0;
  color: #c8d9ec !important;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.terms-hero__signal {
  display: flex;
  gap: 0.34rem;
  margin-bottom: 1.2rem;
}

.terms-hero__signal span {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #60dbff;
  box-shadow: 0 0 18px rgba(96, 219, 255, 0.56);
}

.terms-hero__signal span:nth-child(2) {
  opacity: 0.62;
}

.terms-hero__signal span:nth-child(3) {
  opacity: 0.32;
}

.terms-eyebrow {
  margin: 0 0 0.72rem !important;
  color: #1b76bc !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.terms-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2rem, 5vw, 3.4rem) 0 0;
  overflow: hidden;
  border: 1px solid rgba(145, 220, 255, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
}

.terms-meta > div {
  min-width: 0;
  padding: 0.9rem 1rem;
}

.terms-meta > div + div {
  border-left: 1px solid rgba(145, 220, 255, 0.14);
}

.terms-meta dt {
  margin-bottom: 0.28rem;
  color: #8aa6c3;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.terms-meta dd {
  margin: 0;
  color: #f5fbff;
  font-size: 0.88rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* Summary --------------------------------------------------- */

.terms-summary,
.terms-policy-suite,
.terms-mobile-toc,
.terms-layout {
  width: min(1180px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.terms-summary {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(1.5rem, 4vw, 3.8rem);
  align-items: start;
  padding: clamp(2.4rem, 6vw, 4.5rem) 0;
}

.terms-summary__intro {
  position: sticky;
  top: 1.25rem;
}

.terms-summary__intro h2 {
  max-width: 18ch;
}

.terms-summary__intro > p:last-child {
  max-width: 45ch;
  margin-top: 0.85rem;
}

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

.terms-summary__grid article {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--terms-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 32px rgba(18, 44, 77, 0.055);
}

.terms-summary__grid article::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  right: -4rem;
  bottom: -4rem;
  border-radius: 50%;
  background: rgba(30, 144, 255, 0.075);
}

.terms-summary__number {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--terms-blue);
  font: 900 0.68rem/1 "Montserrat", sans-serif;
  letter-spacing: 0.12em;
}

.terms-summary__grid h3 {
  margin: 0 0 0.48rem;
  font-size: 1rem;
}

.terms-summary__grid p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
}

/* Related policy suite ------------------------------------- */

.terms-policy-suite {
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid var(--terms-line);
  border-radius: var(--terms-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(18, 44, 77, 0.065);
}

.terms-section-heading--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 0.4rem 2rem;
  align-items: end;
}

.terms-section-heading--compact .terms-eyebrow {
  grid-column: 1 / -1;
}

.terms-section-heading--compact p:last-child {
  margin: 0;
  align-self: end;
}

.terms-policy-suite__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 1.5rem;
}

.terms-policy-suite__grid a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 142px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(30, 144, 255, 0.14);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 255, 0.82));
  color: var(--terms-heading);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.terms-policy-suite__grid a::after {
  content: "↗";
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  color: rgba(30, 144, 255, 0.55);
  font-size: 1rem;
  font-weight: 900;
}

.terms-policy-suite__grid a:hover,
.terms-policy-suite__grid a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--terms-line-strong);
  box-shadow: 0 12px 28px rgba(18, 72, 125, 0.1);
}

.terms-policy-suite__grid span {
  margin-bottom: auto;
  color: var(--terms-blue);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.terms-policy-suite__grid strong {
  color: var(--terms-heading);
  font-size: 0.98rem;
}

.terms-policy-suite__grid small {
  margin-top: 0.38rem;
  color: var(--terms-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Mobile TOC ------------------------------------------------ */

.terms-mobile-toc {
  display: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--terms-line);
  border-radius: 14px;
  background: #ffffff;
}

.terms-mobile-toc summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  color: var(--terms-heading);
  font-weight: 850;
}

.terms-mobile-toc nav {
  max-height: 55vh;
  overflow-y: auto;
  border-top: 1px solid var(--terms-line);
  padding: 0.55rem 1rem 0.85rem;
}

.terms-mobile-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.terms-mobile-toc a {
  font-size: 0.82rem;
}

/* Main layout and sticky TOC -------------------------------- */

.terms-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: start;
  margin-top: clamp(2.2rem, 5vw, 4rem);
}

.terms-toc {
  min-width: 0;
}

.terms-toc__inner {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  border: 1px solid var(--terms-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 35px rgba(18, 44, 77, 0.055);
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 144, 255, 0.32) transparent;
}

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

.terms-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: terms-toc;
}

.terms-toc li {
  counter-increment: terms-toc;
  margin: 0;
  padding: 0;
}

.terms-toc a {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: 0.38rem;
  align-items: start;
  padding: 0.34rem 0.38rem;
  border-radius: 7px;
  color: #506178;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.32;
  text-decoration: none;
}

.terms-toc a::before {
  content: counter(terms-toc, decimal-leading-zero);
  color: #9aa8b8;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
  background: #edf7ff;
  color: #0b5fa8;
}

.terms-toc__top {
  display: inline-flex !important;
  grid-template-columns: none !important;
  margin-top: 0.75rem;
  padding-top: 0.72rem !important;
  border-top: 1px solid var(--terms-line);
  color: #126db8 !important;
}

.terms-toc__top::before {
  content: "↑" !important;
  color: var(--terms-blue) !important;
  font-size: 0.8rem !important;
}

/* Terms document ------------------------------------------- */

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

.terms-clause {
  position: relative;
  scroll-margin-top: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1.35rem, 4vw, 2.8rem);
  border: 1px solid var(--terms-line);
  border-radius: var(--terms-radius);
  background: var(--terms-surface);
  box-shadow: 0 12px 38px rgba(18, 44, 77, 0.055);
}

.terms-clause::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--terms-radius) 0 0 var(--terms-radius);
  background: linear-gradient(180deg, var(--terms-blue), rgba(0, 191, 255, 0.12) 42%, transparent 78%);
}

.terms-clause__number {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  margin: 0 0 0.85rem !important;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(30, 144, 255, 0.18);
  border-radius: 999px;
  background: #edf7ff;
  color: #126db8 !important;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.terms-clause > h2 + h3 {
  margin-top: 1.55rem;
}

.terms-clause > :last-child {
  margin-bottom: 0;
}

.terms-clause p,
.terms-clause li,
.terms-clause dd {
  font-size: 0.96rem;
}

.terms-callout {
  margin: 1.2rem 0 1.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--terms-line);
  border-left: 4px solid var(--terms-blue);
  border-radius: 12px;
  background: #f7fafc;
}

.terms-callout strong {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 0.88rem;
}

.terms-callout p {
  margin: 0;
  font-size: 0.9rem;
}

.terms-callout--blue {
  border-color: rgba(30, 144, 255, 0.2);
  border-left-color: var(--terms-blue);
  background: var(--terms-soft-blue);
}

.terms-callout--amber {
  border-color: rgba(198, 133, 21, 0.22);
  border-left-color: #d19018;
  background: var(--terms-amber-soft);
}

.terms-callout--amber strong {
  color: var(--terms-amber);
}

.terms-callout--plain {
  border-left-color: #6d819a;
  background: #f5f7fa;
}

/* Contact card and appendix -------------------------------- */

.terms-clause--contact {
  background:
    radial-gradient(circle at 100% 0%, rgba(30, 144, 255, 0.095), transparent 18rem),
    #ffffff;
}

.terms-contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1.35rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--terms-line);
  border-radius: 14px;
}

.terms-contact-card > div {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--terms-line);
}

.terms-contact-card > div:nth-child(odd) {
  border-right: 1px solid var(--terms-line);
}

.terms-contact-card > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.terms-contact-card dt {
  margin-bottom: 0.22rem;
  color: var(--terms-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-contact-card dd {
  margin: 0;
  color: var(--terms-heading);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.terms-appendix {
  background: #fbfdff;
}

.terms-model-form {
  margin: 1.25rem 0;
  padding: clamp(1rem, 3vw, 1.55rem);
  border: 1px dashed rgba(30, 83, 135, 0.35);
  border-radius: 14px;
  background: #ffffff;
}

.terms-model-form p {
  margin: 0 0 1rem;
  color: #273b54;
}

.terms-model-form p:last-child {
  margin-bottom: 0;
}

.terms-model-form__line {
  display: inline-block;
  min-width: 12rem;
  height: 1.1em;
  margin-left: 0.3rem;
  border-bottom: 1px solid #8091a4;
  vertical-align: baseline;
}

.terms-model-form__line--long {
  min-width: min(26rem, 80%);
}

.terms-small-print {
  color: var(--terms-muted) !important;
  font-size: 0.8rem !important;
}

.terms-end-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--terms-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.terms-end-nav a {
  display: inline-flex;
  padding: 0.45rem 0.66rem;
  border: 1px solid rgba(30, 144, 255, 0.14);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

/* Definition grid ------------------------------------------ */

.terms-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1.35rem 0 0;
  overflow: hidden;
  border: 1px solid var(--terms-line);
  border-radius: 14px;
}

.terms-definitions > div {
  min-width: 0;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--terms-line);
}

.terms-definitions > div:nth-child(odd) {
  border-right: 1px solid var(--terms-line);
}

.terms-definitions > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.terms-definitions dt {
  margin-bottom: 0.28rem;
  color: #183a61;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.terms-definitions dd {
  margin: 0;
  color: var(--terms-copy);
  font-size: 0.88rem;
  line-height: 1.52;
}

@media (max-width: 600px) {
  .terms-definitions {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-definitions > div,
  .terms-definitions > div:nth-child(odd),
  .terms-definitions > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--terms-line);
  }

  .terms-definitions > div:last-child {
    border-bottom: 0;
  }
}

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

@media (max-width: 1020px) {
  .terms-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-toc {
    display: none;
  }

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

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

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

  .terms-meta > div:nth-child(even) {
    border-left: 1px solid rgba(145, 220, 255, 0.14);
  }

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

  .terms-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-summary__intro {
    position: static;
  }

  .terms-summary__intro h2 {
    max-width: 24ch;
  }

  .terms-section-heading--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-section-heading--compact .terms-eyebrow {
    grid-column: auto;
  }

  .terms-policy-suite__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .terms-page {
    padding-bottom: 3.5rem;
  }

  .terms-breadcrumb,
  .terms-hero,
  .terms-summary,
  .terms-policy-suite,
  .terms-mobile-toc,
  .terms-layout {
    width: min(100% - 1rem, 1180px);
  }

  .terms-breadcrumb {
    padding-top: 0.65rem;
  }

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

  .terms-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3.15rem);
  }

  .terms-meta {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .terms-summary {
    padding: 2.3rem 0;
  }

  .terms-summary__grid,
  .terms-policy-suite__grid,
  .terms-contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-policy-suite {
    padding: 1rem;
    border-radius: 16px;
  }

  .terms-policy-suite__grid a {
    min-height: 122px;
  }

  .terms-clause {
    padding: 1.15rem 1rem;
    border-radius: 15px;
  }

  .terms-clause::before {
    border-radius: 15px 0 0 15px;
  }

  .terms-clause p,
  .terms-clause li,
  .terms-clause dd {
    font-size: 0.93rem;
  }

  .terms-contact-card > div,
  .terms-contact-card > div:nth-child(odd),
  .terms-contact-card > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--terms-line);
  }

  .terms-contact-card > div:last-child {
    border-bottom: 0;
  }

  .terms-model-form__line,
  .terms-model-form__line--long {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0.35rem 0 0;
  }
}

@media (max-width: 370px) {
  .terms-page ul,
  .terms-page ol {
    padding-left: 1.15rem;
  }

  .terms-clause {
    padding: 1rem 0.85rem;
  }

  .terms-end-nav {
    justify-content: stretch;
  }

  .terms-end-nav a {
    width: 100%;
    justify-content: center;
  }
}

/* Motion preferences --------------------------------------- */

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

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

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

  body {
    background: #ffffff !important;
  }

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

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

  .terms-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;
  }

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

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

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

  .terms-meta > div,
  .terms-meta > div + div,
  .terms-meta > div:nth-child(even),
  .terms-meta > div:nth-child(n + 3) {
    border-color: #bbbbbb !important;
  }

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

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

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

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

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

  .terms-callout,
  .terms-model-form,
  .terms-contact-card {
    break-inside: avoid;
    border: 1px solid #999999 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

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

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

