/* =====================================================
   Legal / Informational Pages
   ===================================================== */

body.cs-legal-page {
  background: #fff;
}

body.cs-legal-page .site-main {
  overflow-x: hidden;
}

.cs-legal {
  padding: 18px 0 58px;
  background:
    linear-gradient(180deg, rgba(253, 240, 255, .38), rgba(255, 255, 255, 0) 320px),
    #fff;
}

.cs-legal__container {
  max-width: var(--container, 1440px);
}

.cs-legal__hero {
  max-width: 760px;
  margin: 18px 0 26px;
}

.cs-legal__eyebrow {
  margin: 0 0 12px;
  color: var(--cs-purple, #600165);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cs-legal__title {
  margin: 0;
  color: #170019;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: 0;
}

.cs-legal__card {
  width: 100%;
  max-width: none;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid rgba(96, 1, 101, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 42px rgba(37, 0, 42, .05);
}

.cs-legal__content {
  color: rgba(20, 0, 24, .78);
  font-size: 16px;
  line-height: 1.72;
}

.cs-legal__content > p,
.cs-legal__content > h2,
.cs-legal__content > h3,
.cs-legal__content > h4,
.cs-legal__content > ul,
.cs-legal__content > ol {
  max-width: 920px;
}

.cs-legal__content > *:first-child {
  margin-top: 0;
}

.cs-legal__content > *:last-child {
  margin-bottom: 0;
}

.cs-legal__content p {
  margin: 0 0 16px;
}

.cs-legal__content h2,
.cs-legal__content h3,
.cs-legal__content h4 {
  color: #170019;
  line-height: 1.16;
}

.cs-legal__content h2 {
  margin: 34px 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
}

.cs-legal__content h3 {
  margin: 26px 0 10px;
  font-size: 21px;
}

.cs-legal__content ul,
.cs-legal__content ol {
  margin: 10px 0 18px 22px;
  padding: 0;
}

.cs-legal__content li {
  margin-bottom: 8px;
}

.cs-legal__content a {
  color: var(--cs-purple, #600165);
  font-weight: 800;
  text-decoration-color: rgba(96, 1, 101, .24);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cs-legal__content a:hover,
.cs-legal__content a:focus-visible {
  color: #8b3190;
  text-decoration-color: currentColor;
}

.cs-legal__content .wp-block-button__link,
.cs-legal__content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--cs-purple, #600165);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.cs-legal__content figure,
.cs-legal__content .wp-block-group {
  max-width: 100%;
}

.cs-legal__content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  scrollbar-width: thin;
}

.cs-legal__content th,
.cs-legal__content td {
  padding: 12px 14px;
  border: 1px solid rgba(96, 1, 101, .12);
  text-align: left;
  vertical-align: top;
}

.cs-legal__content th {
  background: rgba(253, 240, 255, .62);
  color: #170019;
}

/* FAQ */
.cs-faq__intro {
  margin-bottom: 22px;
}

.cs-faq__groups {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: none;
}

.cs-faq__group {
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(96, 1, 101, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(37, 0, 42, .045);
}

.cs-faq__group-title {
  margin: 0 0 16px;
  color: #170019;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.1;
}

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

.cs-faq__item {
  overflow: hidden;
  border: 1px solid rgba(96, 1, 101, .1);
  border-radius: 18px;
  background: rgba(253, 240, 255, .26);
}

.cs-faq__question {
  margin: 0;
}

.cs-faq__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: #170019;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.cs-faq__button:hover,
.cs-faq__button:focus-visible {
  color: var(--cs-purple, #600165);
  outline: none;
}

.cs-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(96, 1, 101, .2);
  border-radius: 999px;
  background: #fff;
}

.cs-faq__icon::before,
.cs-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 99px;
  background: var(--cs-purple, #600165);
  transform: translate(-50%, -50%);
}

.cs-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity .2s ease;
}

.cs-faq__button[aria-expanded="true"] .cs-faq__icon::after {
  opacity: 0;
}

.cs-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .26s ease;
}

.cs-faq__answer-inner {
  padding: 0 18px 18px;
  color: rgba(20, 0, 24, .72);
  font-size: 15px;
  line-height: 1.7;
}

.cs-faq__answer-inner > *:first-child {
  margin-top: 0;
}

.cs-faq__answer-inner > *:last-child {
  margin-bottom: 0;
}

.cs-faq__empty {
  max-width: 720px;
}

.cs-faq__empty h2 {
  margin: 0 0 10px;
  color: #170019;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}

.cs-faq__empty p:not(.cs-legal__eyebrow) {
  margin: 0;
  color: rgba(20, 0, 24, .68);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .cs-legal {
    padding: 12px 0 44px;
  }

  .cs-legal__hero {
    margin: 14px 0 20px;
  }

  .cs-legal__card,
  .cs-faq__group {
    border-radius: 20px;
  }

  .cs-legal__content {
    font-size: 15px;
  }

  .cs-faq__button {
    min-height: 56px;
    padding: 14px;
    font-size: 15px;
  }

  .cs-faq__answer-inner {
    padding: 0 14px 16px;
  }
}
