.cpl-terms-page {
  --cpl-terms-bg: #ffffff;
  --cpl-terms-soft-bg: #f5f9ff;
  --cpl-terms-panel-bg: #f2f7ff;
  --cpl-terms-ink: #080f46;
  --cpl-terms-text: #26344f;
  --cpl-terms-muted: #5d6c82;
  --cpl-terms-orange: #ff7b1a;
  --cpl-terms-orange-strong: #e6660a;
  --cpl-terms-orange-soft: #fff3ea;
  --cpl-terms-border: #dfeaf9;
  --cpl-terms-border-soft: #edf2f8;
  --cpl-terms-radius: 8px;
  --cpl-terms-container: 1440px;
  min-height: 720px;
  overflow-x: clip;
  background: var(--cpl-terms-bg);
  color: var(--cpl-terms-text);
}

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

.cpl-terms-page .container {
  width: min(var(--cpl-terms-container), calc(100% - 80px));
  margin: 0 auto;
}

.cpl-terms-page h1,
.cpl-terms-page h2,
.cpl-terms-page h3,
.cpl-terms-page p,
.cpl-terms-page a,
.cpl-terms-page li,
.cpl-terms-page span {
  overflow-wrap: break-word;
}

.cpl-terms-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 123, 26, 0.12), transparent 28%),
    linear-gradient(105deg, #ffffff 0%, #fffaf5 48%, #fff1e6 100%);
}

.cpl-terms-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -42% 45%;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 123, 26, 0.1), transparent 66%);
  pointer-events: none;
}

.cpl-terms-hero__inner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.cpl-terms-hero__content {
  min-width: 0;
  padding: 58px 0 64px;
}

.cpl-terms-hero__eyebrow {
  margin: 0 0 16px;
  color: var(--cpl-terms-orange);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
}

.cpl-terms-hero h1 {
  margin: 0;
  color: var(--cpl-terms-ink);
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.cpl-terms-hero__lead {
  max-width: 840px;
  margin: 22px 0 0;
  color: var(--cpl-terms-text);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
}

.cpl-terms-hero__date {
  display: inline-flex;
  margin: 24px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 123, 26, 0.22);
  border-radius: var(--cpl-terms-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cpl-terms-orange-strong);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.cpl-terms-body {
  padding: 42px 0 70px;
  background: linear-gradient(180deg, #fff 0%, var(--cpl-terms-soft-bg) 100%);
}

.cpl-terms-body__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.cpl-terms-index {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 136px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--cpl-terms-border);
  border-radius: var(--cpl-terms-radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 57, 112, 0.06);
}

.cpl-terms-index h2 {
  margin: 0 0 16px;
  color: var(--cpl-terms-ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
}

.cpl-terms-index nav {
  display: grid;
  gap: 2px;
}

.cpl-terms-index a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--cpl-terms-muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
}

.cpl-terms-index a:hover,
.cpl-terms-index a:focus-visible {
  background: var(--cpl-terms-orange-soft);
  color: var(--cpl-terms-orange-strong);
}

.cpl-terms-article {
  display: grid;
  gap: 18px;
}

.cpl-terms-section {
  scroll-margin-top: 110px;
  min-width: 0;
  padding: 34px 40px;
  border: 1px solid var(--cpl-terms-border);
  border-radius: var(--cpl-terms-radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 57, 112, 0.05);
}

.cpl-terms-section h2 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 16px;
  color: var(--cpl-terms-ink);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.cpl-terms-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--cpl-terms-orange);
}

.cpl-terms-section p,
.cpl-terms-list li {
  color: var(--cpl-terms-text);
  font-size: 16px;
  line-height: 1.72;
  font-weight: 500;
}

.cpl-terms-section p {
  margin: 0;
}

.cpl-terms-section p + p {
  margin-top: 14px;
}

.cpl-terms-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cpl-terms-list + p {
  margin-top: 18px;
}

.cpl-terms-list li {
  position: relative;
  padding-left: 24px;
}

.cpl-terms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cpl-terms-orange);
}

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

  .cpl-terms-index {
    position: static;
    max-height: none;
  }

  .cpl-terms-index nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .cpl-terms-page .container {
    width: min(var(--cpl-terms-container), calc(100% - 36px));
  }

  .cpl-terms-hero__content {
    padding: 44px 0 30px;
  }

  .cpl-terms-hero h1 {
    font-size: 36px;
  }

  .cpl-terms-hero__lead {
    font-size: 16px;
  }

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

  .cpl-terms-body {
    padding: 30px 0 50px;
  }

  .cpl-terms-section {
    padding: 28px 24px;
  }

  .cpl-terms-section h2 {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  body.page-template-page-terms-and-conditions {
    overflow-x: hidden;
  }

  body.page-template-page-terms-and-conditions .cpl-header {
    overflow-x: hidden;
  }

  body.page-template-page-terms-and-conditions .cpl-header__top {
    width: min(362px, calc(100vw - 28px));
    min-width: 0;
    max-width: min(362px, calc(100vw - 28px));
    margin: 0 0 0 14px;
  }

  body.page-template-page-terms-and-conditions .cpl-nav,
  body.page-template-page-terms-and-conditions .cpl-nav__menu,
  body.page-template-page-terms-and-conditions .cpl-header__tools,
  body.page-template-page-terms-and-conditions .header-actions-home {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body.page-template-page-terms-and-conditions .cpl-nav {
    overflow: hidden;
  }

  body.page-template-page-terms-and-conditions .cpl-nav__menu {
    gap: 10px 14px;
  }

  body.page-template-page-terms-and-conditions .cpl-nav__link--top {
    min-height: 34px;
    font-size: 14px;
  }

  body.page-template-page-terms-and-conditions .home-header-utility {
    max-width: 100%;
    overflow: hidden;
    gap: 6px 10px;
    font-size: 12px;
  }

  body.page-template-page-terms-and-conditions .home-header-utility a,
  body.page-template-page-terms-and-conditions .home-header-utility .cpl-language-switcher__trigger {
    gap: 5px;
  }

  body.page-template-page-terms-and-conditions .home-header-utility .cpl-language-switcher {
    max-width: 30px;
    overflow: hidden;
  }

  body.page-template-page-terms-and-conditions .home-header-utility .cpl-language-switcher__label {
    display: none;
  }

  .cpl-terms-page .container {
    width: min(362px, calc(100vw - 28px));
    max-width: min(362px, calc(100vw - 28px));
    margin: 0 0 0 14px;
  }

  .cpl-terms-hero__lead,
  .cpl-terms-index,
  .cpl-terms-section {
    max-width: 100%;
  }

  .cpl-terms-hero h1 {
    font-size: 32px;
  }

  .cpl-terms-hero__date {
    width: 100%;
    justify-content: center;
  }

  .cpl-terms-index,
  .cpl-terms-section {
    padding: 22px 18px;
  }

  .cpl-terms-section p,
  .cpl-terms-list li {
    font-size: 15px;
  }
}
