:root {
  color-scheme: light;
  --cs-legal-ink: #172026;
  --cs-legal-muted: #60717d;
  --cs-legal-line: #d6e1e8;
  --cs-legal-surface: #ffffff;
  --cs-legal-soft: #f4f8fa;
  --cs-legal-teal: #0f766e;
  --cs-legal-blue: #2451a6;
  --cs-legal-coral: #b84b2d;
}

* {
  box-sizing: border-box;
}

body.cs-public {
  margin: 0;
  min-height: 100vh;
  background: var(--cs-legal-soft);
  color: var(--cs-legal-ink);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.cs-legal-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.cs-legal-page [id],
.cs-legal-anchor {
  scroll-margin-top: 9rem;
}

.cs-legal-editorial {
  scroll-margin-top: 9rem;
}

.cs-legal-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  pointer-events: none;
}

.cs-legal-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  color: var(--cs-legal-muted);
  font-size: 0.92rem;
}

.cs-legal-breadcrumb a {
  color: var(--cs-legal-blue);
  text-decoration: none;
}

.cs-legal-hero,
.cs-legal-section {
  background: var(--cs-legal-surface);
  border: 1px solid var(--cs-legal-line);
  border-radius: 8px;
}

.cs-legal-hero {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 32px;
}

.cs-legal-logo {
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
}

.cs-legal-kicker {
  margin: 0;
  color: var(--cs-legal-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cs-legal-hero h1,
.cs-legal-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.cs-legal-hero h1 {
  max-width: 820px;
  font-size: 3.25rem;
  line-height: 0.98;
  font-weight: 950;
}

.cs-legal-hero p,
.cs-legal-section p {
  margin: 0;
  color: var(--cs-legal-muted);
  line-height: 1.7;
}

.cs-legal-readiness {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--cs-legal-line);
  border-radius: 8px;
  background: #f9fcfd;
}

.cs-legal-readiness strong {
  color: var(--cs-legal-teal);
}

.cs-legal-readiness[data-legal-readiness="needs_review"] strong,
.cs-legal-readiness[data-legal-readiness="incomplete"] strong {
  color: var(--cs-legal-coral);
}

.cs-legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
  position: relative;
}

.cs-legal-section {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.cs-legal-links-card {
  align-content: start;
}

.cs-legal-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cs-legal-facts div,
.cs-legal-missing li {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--cs-legal-line);
  border-radius: 8px;
  background: #fbfdfe;
}

.cs-legal-facts dt {
  color: var(--cs-legal-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.cs-legal-facts dd {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.cs-legal-map-badge,
.cs-legal-contact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.cs-legal-map-badge {
  border: 1px solid #b9d9c5;
  background: #effaf1;
  color: #175c2d;
}

.cs-legal-contact-badge {
  border: 1px solid #ffb06f;
  background: #ff741f;
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 116, 31, 0.18);
}

.cs-legal-links {
  display: grid;
  gap: 10px;
}

.cs-legal-links a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--cs-legal-line);
  border-radius: 8px;
  background: #fbfdfe;
  color: inherit;
  text-decoration: none;
}

.cs-legal-links a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--cs-legal-teal) 55%, var(--cs-legal-line));
  background: #effaf8;
}

.cs-legal-links span,
.cs-legal-missing span {
  color: var(--cs-legal-muted);
  font-size: 0.86rem;
}

.cs-legal-support-panel {
  display: grid;
  gap: 13px;
  width: 100%;
  padding: 16px;
  border: 1px solid #cfe2bd;
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 22%, rgba(129, 206, 10, 0.16), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fff2 100%);
  box-shadow: 0 18px 34px rgba(23, 32, 38, 0.08);
}

.cs-legal-support-title {
  display: grid;
  gap: 2px;
  color: #075f18;
  text-align: center;
}

.cs-legal-support-title span,
.cs-legal-support-title strong {
  line-height: 1.08;
}

.cs-legal-support-title span {
  font-size: 1.18rem;
  font-weight: 950;
}

.cs-legal-support-title strong {
  font-size: 1.36rem;
  font-weight: 950;
}

.cs-legal-support-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(124px, 0.68fr);
  gap: 8px;
  align-items: end;
}

.cs-legal-support-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-legal-support-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 42px;
}

.cs-legal-support-list span:last-child {
  color: #263238;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.22;
}

.cs-legal-support-list strong {
  display: block;
  color: #087018;
  font-size: 0.96rem;
}

.cs-legal-support-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #0b7a1f;
  border-radius: 999px;
  background: #ffffff;
  color: #0b7a1f;
  font-size: 1.02rem;
  font-weight: 950;
}

.cs-legal-support-icon[data-icon="phone"]::before {
  content: "☎";
}

.cs-legal-support-icon[data-icon="clock"]::before {
  content: "◷";
}

.cs-legal-support-icon[data-icon="write"]::before {
  content: "✎";
}

.cs-legal-support-mascot {
  align-self: end;
  justify-self: end;
  width: min(148px, 100%);
  height: auto;
  margin: -6px -4px -2px 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(23, 32, 38, 0.16));
}

.cs-legal-support-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #d6e9c6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #40515c;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.28;
}

.cs-legal-support-note span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0a7a1b;
  color: #fff;
}

.cs-legal-support-note span::before {
  content: "✓";
  font-size: 1rem;
  font-weight: 950;
}

.cs-legal-support-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #087018;
  color: #fff;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(8, 112, 24, 0.18);
}

.cs-legal-support-panel .cs-legal-support-cta,
.cs-legal-support-panel .cs-legal-support-cta:visited {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.cs-legal-guidance,
.cs-legal-relations {
  margin-top: 18px;
}

.cs-legal-editorial {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

body.cs-public-encros .cs-legal-page-encros .cs-legal-editorial {
  width: min(var(--cs-encros-max), calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.cs-legal-editorial-head {
  display: grid;
  gap: 10px;
  padding: 26px 28px;
  border: 1px solid #cfe3c5;
  border-radius: 8px;
  background: #fbfff8;
  box-shadow: 0 16px 38px rgba(23, 32, 38, 0.05);
}

.cs-legal-editorial-head h2 {
  margin: 0;
  color: #112617;
  font-size: 2.05rem;
  line-height: 1.08;
  font-weight: 950;
}

.cs-legal-editorial-head p {
  margin: 0;
  max-width: 880px;
  color: #526a58;
  font-size: 1.02rem;
  line-height: 1.72;
}

.cs-legal-editorial-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cs-legal-copy-card {
  min-width: 0;
  border: 1px solid var(--cs-legal-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(23, 32, 38, 0.05);
  overflow: hidden;
}

.cs-legal-copy-card summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.cs-legal-copy-card summary::-webkit-details-marker {
  display: none;
}

.cs-legal-copy-card summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--cs-legal-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.cs-legal-copy-card summary strong {
  min-width: 0;
  color: var(--cs-legal-ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
}

.cs-legal-copy-card[open] summary {
  border-bottom: 1px solid color-mix(in srgb, var(--cs-legal-line) 72%, transparent);
}

.cs-legal-copy-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.cs-legal-copy-body p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(214, 225, 232, 0.9);
  border-left: 4px solid #b9d9c5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #344852;
  font-size: 0.98rem;
  line-height: 1.74;
}

.cs-legal-copy-card[data-kind="story"] .cs-legal-copy-body p,
.cs-legal-copy-card[data-kind="media"] .cs-legal-copy-body p {
  border-left-color: #79af34;
  background: #fffffb;
  color: #243a1d;
}

.cs-legal-copy-card[data-kind="story"] .cs-legal-copy-body p:first-child,
.cs-legal-copy-card[data-kind="media"] .cs-legal-copy-body p:first-child {
  font-weight: 650;
}

.cs-legal-copy-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-legal-copy-body li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: 8px;
  background: #f7fbfd;
  color: #344852;
  line-height: 1.55;
}

.cs-legal-copy-body li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.1em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cs-legal-teal);
}

.cs-legal-copy-card[data-kind="payment"] {
  border-color: #c8d8ff;
  background: #f7faff;
}

.cs-legal-copy-card[data-kind="payment"] summary span {
  background: #eaf0ff;
  color: #2451a6;
}

.cs-legal-copy-card[data-kind="delivery"] {
  border-color: #bfe2d9;
  background: #f6fcfa;
}

.cs-legal-copy-card[data-kind="delivery"] summary span,
.cs-legal-copy-card[data-kind="place"] summary span {
  background: #e9f8f2;
  color: #166044;
}

.cs-legal-copy-card[data-kind="privacy"] {
  border-color: #d7d1f1;
  background: #fbf9ff;
}

.cs-legal-copy-card[data-kind="privacy"] summary span {
  background: #f0ebff;
  color: #5b3da5;
}

.cs-legal-copy-card[data-kind="return"] {
  border-color: #ffd3ad;
  background: #fff9f4;
}

.cs-legal-copy-card[data-kind="return"] summary span {
  background: #fff0e4;
  color: #a74711;
}

.cs-legal-copy-card[data-kind="place"] {
  border-color: #b9d9c5;
  background: #f7fcf7;
}

.cs-legal-copy-card[data-kind="story"] {
  border-color: #cddfbc;
  background: #fbfff8;
}

.cs-legal-copy-card[data-kind="story"] summary span {
  background: #eef8e6;
  color: #2f6b15;
}

.cs-legal-copy-card[data-kind="media"] {
  border-color: #d7d1f1;
  background: #fffbf4;
}

.cs-legal-copy-card[data-kind="media"] summary span {
  background: #fff2df;
  color: #9b450f;
}

.cs-legal-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cs-legal-video-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #cfe3c5;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(23, 32, 38, 0.08);
}

.cs-legal-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #102018;
}

.cs-legal-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs-legal-video-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
}

.cs-legal-video-copy strong {
  font-weight: 900;
}

.cs-legal-video-copy a {
  color: var(--cs-legal-blue);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.cs-legal-notice {
  padding: 12px;
  border-left: 4px solid var(--cs-legal-blue);
  background: #f2f6ff;
}

.cs-legal-missing {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-legal-missing strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cs-legal-empty {
  padding: 12px;
  border: 1px dashed var(--cs-legal-line);
  border-radius: 8px;
  background: #fbfdfe;
}

@media (max-width: 760px) {
  .cs-legal-page {
    width: 100%;
    max-width: 100vw;
    padding-top: 18px;
    overflow-x: hidden;
  }

  body.cs-public-encros .cs-legal-page-encros .cs-legal-breadcrumb,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-hero-encros,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-encros-strip,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-layout,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-editorial,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-guidance,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-relations,
  body.cs-public-encros .cs-legal-page-encros > .cs-legal-section {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-right: auto;
    margin-left: auto;
  }

  .cs-legal-hero,
  .cs-legal-section {
    padding: 18px;
  }

  .cs-legal-hero,
  .cs-legal-hero-copy,
  .cs-legal-encros-advice,
  .cs-legal-readiness,
  .cs-legal-editorial,
  .cs-legal-editorial-head,
  .cs-legal-copy-card {
    min-width: 0;
    max-width: 100%;
  }

  .cs-legal-hero h1 {
    font-size: 1.85rem;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: break-word;
    white-space: normal;
  }

  body.cs-public-encros .cs-legal-page-encros .cs-legal-hero-copy h1 {
    max-width: 100%;
    font-size: 1.78rem;
    line-height: 1.1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body.cs-public-encros .cs-legal-page-encros .cs-legal-hero-encros,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-hero-copy,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-encros-advice,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-readiness {
    width: 100%;
    max-width: 100%;
  }

  body.cs-public-encros .cs-legal-page-encros .cs-legal-hero-copy p,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-readiness,
  body.cs-public-encros .cs-legal-page-encros .cs-legal-readiness span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.cs-public-encros .cs-legal-page-encros .cs-legal-readiness {
    display: grid;
    justify-items: start;
  }

  .cs-legal-hero p,
  .cs-legal-readiness span,
  .cs-legal-editorial-head p,
  .cs-legal-copy-body p,
  .cs-legal-copy-body li {
    overflow-wrap: anywhere;
  }

  .cs-legal-encros-advice img {
    width: 100%;
    max-height: 210px;
    object-fit: contain;
  }

  body.cs-public-encros .cs-legal-page-encros .cs-legal-encros-advice img {
    height: auto;
    max-height: 210px;
    object-fit: contain;
  }

  .cs-legal-encros-advice a {
    width: 100%;
    min-width: 0;
  }

  body.cs-public-encros .cs-legal-page-encros .cs-legal-encros-advice a {
    width: 100%;
    min-width: 0;
  }

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

  .cs-legal-support-panel {
    padding: 14px;
  }

  .cs-legal-support-title span {
    font-size: 1.05rem;
  }

  .cs-legal-support-title strong {
    font-size: 1.2rem;
  }

  .cs-legal-support-body {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.46fr);
  }

  .cs-legal-support-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .cs-legal-support-icon {
    width: 30px;
    height: 30px;
    font-size: 0.92rem;
  }

  .cs-legal-support-list span:last-child {
    font-size: 0.8rem;
  }

  .cs-legal-support-list strong {
    font-size: 0.88rem;
  }

  .cs-legal-support-mascot {
    width: min(118px, 100%);
  }

  .cs-legal-support-note {
    grid-template-columns: 30px minmax(0, 1fr);
    font-size: 0.78rem;
  }

  .cs-legal-support-note span {
    width: 30px;
    height: 30px;
  }

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

  .cs-legal-editorial-head {
    padding: 20px;
  }

  .cs-legal-editorial-head h2 {
    font-size: 1.55rem;
  }

  .cs-legal-copy-card summary {
    grid-template-columns: 1fr;
  }

  .cs-legal-copy-card summary span {
    width: fit-content;
  }

  .cs-legal-facts div,
  .cs-legal-missing li {
    grid-template-columns: 1fr;
  }
}
