/* Terms page composition */
body:has(.terms-page) {
  margin: 0;
  background: #f6f3fb;
  color: #211a32;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
body:has(.terms-page) > header.gcu-region {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: 0;
  background: #28134e;
}
body:has(.terms-page) > header.gcu-region .gcu-content {
  min-height: 142px;
  padding: 0 1.25rem;
  background-image: none;
  background-color: #28134e;
}
body:has(.terms-page) > header.gcu-region .gcu-header {
  min-height: 142px;
  margin: 0 auto;
  border-bottom-color: rgba(248, 244, 255, .24);
  background: #28134e;
  backdrop-filter: none;
}
body:has(.terms-page) > header.gcu-region .gcu-secondary-art,
body:has(.terms-page) > header.gcu-region .gcu-hero-copy { display: none; }
.terms-page {
  box-sizing: border-box;
  padding: clamp(2rem, 5vw, 4.5rem) max(1.25rem, calc((100vw - 1120px) / 2)) 5rem;
  color: #211a32 !important;
}
.terms-page *, .terms-page *::before, .terms-page *::after { box-sizing: border-box; }
.terms-section { margin: 0 auto 1.5rem; max-width: 1120px; }
.terms-hero {
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.75rem);
  border: 1px solid #e7ddfa;
  border-radius: 1.75rem;
  color: #fff;
  background: radial-gradient(ellipse at 85% 10%, #7430ea 0, #4b2389 38%, #28134e 100%);
  box-shadow: 0 24px 60px rgba(40, 19, 78, .16);
}
.terms-hero__inner { max-width: 800px; }
.terms-hero .layout-grid-q7 { display: block; }
.terms-kicker { margin: 0 0 .7rem; color: #7430ea; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.terms-hero .terms-kicker { color: #d9c2ff; }
.terms-page h1, .terms-page h2, .terms-page h3 { margin-top: 0; color: inherit; line-height: 1.15; }
.terms-page h1 { max-width: 14ch; margin-bottom: 1.25rem; font-size: clamp(2.6rem, 6vw, 4.75rem); letter-spacing: -.045em; }
.terms-page h2 { margin-bottom: 1.1rem; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.025em; }
.terms-page h3 { margin-bottom: .75rem; font-size: 1.2rem; }
.terms-lead { max-width: 48rem; margin: 0; color: #f1eaff; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.75; }
.terms-meta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; color: #e3d3ff; font-size: .9rem; }
.terms-reading, .terms-policy {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.6fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3.6vw, 2.7rem);
  border: 1px solid #e9e3f1;
  border-radius: 1.35rem;
  background-color: #fff;
  box-shadow: 0 12px 36px rgba(40, 19, 78, .06);
}
.terms-reading__heading { align-self: start; }
.terms-reading__heading .terms-kicker { margin-bottom: .8rem; }
.terms-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.terms-clause { min-width: 0; padding: 1.35rem; border: 1px solid #eee8f7; border-radius: 1rem; background: #fbfaff; }
.terms-clause.module-wrapper-k4 { grid-column: 2; }
.terms-hero__inner.layout-grid-q7 { width: 100%; }
.terms-clause p, .terms-policy__card > p { margin: 0 0 1rem; color: #514b5e; }
.terms-clause p:last-child, .terms-policy__card > p:last-child { margin-bottom: 0; }
.terms-clause--feature { grid-column: 2; }
.terms-reading:has(.terms-clause--feature) { grid-template-columns: minmax(190px, .72fr) minmax(0, 1.6fr); }
.terms-policy { display: block; padding: clamp(1.5rem, 4vw, 3rem); color: #fff; border: 0; background: #32165f; }
.terms-policy__card { max-width: 850px; margin: auto; }
.terms-policy .terms-kicker { color: #d9c2ff; }
.terms-policy h2 { color: #fff; }
.terms-policy__card > p { color: #eee6fa; }
.terms-policy a { color: #fff; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.terms-policy__note { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.22); }
.terms-contact-link { display: inline-block; padding: .08rem .18rem; border-radius: .2rem; background-color: #7430ea; color: #fff !important; }
body:has(.terms-page) .gcu-search-form button,
body:has(.terms-page) .gcu-nav-toggle,
body:has(.terms-page) .gc-footer__settings,
body:has(.terms-page) .gc-consent__actions button {
  border: 1px solid #a77af2;
  border-radius: .55rem;
  background-color: #7430ea;
  color: #fff;
  font: inherit;
  font-weight: 700;
}
body:has(.terms-page) .gcu-search-form button { padding: .65rem .9rem; }
body:has(.terms-page) .gcu-nav-toggle { min-width: 2.75rem; min-height: 2.75rem; }
body:has(.terms-page) .gc-footer__settings,
body:has(.terms-page) .gc-consent__actions button { padding: .65rem 1rem; }
body:has(.terms-page) .gc-footer__settings {
  border-color: #fff;
  background-color: #fff;
  color: #44109a;
}
@media (max-width: 760px) {
  body:has(.terms-page) > header.gcu-region { padding-bottom: 0; }
  body:has(.terms-page) > header.gcu-region .gcu-content,
  body:has(.terms-page) > header.gcu-region .gcu-header { min-height: 96px; }
  body:has(.terms-page) > header.gcu-region .gcu-header { margin: 0 -1.25rem; }
  .terms-page { padding: 1.25rem 1rem 3rem; }
  .terms-section { margin-bottom: 1rem; }
  .terms-reading { grid-template-columns: 1fr; gap: 1.15rem; padding: 1.3rem; }
  .terms-reading:has(.terms-clause--feature) { grid-template-columns: 1fr; }
  .terms-columns { grid-template-columns: 1fr; }
  .terms-clause--feature { grid-column: auto; }
  .terms-clause.module-wrapper-k4 { grid-column: auto; }
  .terms-hero { padding: 2rem 1.4rem; border-radius: 1.25rem; }
  .terms-policy { padding: 1.5rem; }
}
@media (max-width: 420px) {
  .terms-meta { display: block; }
  .terms-meta span[aria-hidden="true"] { display: none; }
  .terms-meta span + span:not([aria-hidden="true"]) { display: block; margin-top: .35rem; }
}
