.legal-redesign {
  background:
    radial-gradient(circle at 87% 11%, rgba(128, 106, 247, .07), transparent 24%),
    linear-gradient(180deg, #fafbff 0%, #fff 48%, #fafbff 100%);
}

.legal-main {
  padding: 22px 0 52px;
  color: #14203d;
  background: transparent;
}

.legal-redesign .crumb {
  min-height: 56px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #78839b;
  border-radius: 7px;
  background: linear-gradient(100deg, #f0f0ff, #f4f4ff);
  font-size: 13px;
}

.legal-redesign .crumb b {
  color: #aeb5c7;
  font-size: 18px;
  font-weight: 400;
}

.legal-redesign .crumb a {
  color: inherit;
}

.legal-section-head span {
  min-height: 28px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  color: #6c50e7;
  border: 1px solid #bdb0ff;
  border-radius: 6px;
  background: #faf9ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;
}

.legal-switch {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legal-switch a {
  min-height: 84px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  border: 1px solid #e0e4f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(53, 47, 112, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.legal-switch a:hover,
.legal-switch a.is-current {
  border-color: rgba(113, 80, 232, .42);
  box-shadow: 0 18px 36px rgba(83, 62, 218, .12);
  transform: translateY(-2px);
}

.legal-switch i,
.legal-section-label span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #7d64ee, #593bdc);
  box-shadow: 0 12px 24px rgba(83, 62, 218, .22);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.legal-switch span,
.legal-switch strong,
.legal-switch small {
  min-width: 0;
  display: block;
}

.legal-switch strong {
  color: #202b49;
  font-size: 19px;
  font-weight: 900;
}

.legal-switch small {
  margin-top: 5px;
  color: #79839a;
  font-size: 12px;
}

.legal-switch b {
  color: #7557e9;
  font-size: 24px;
  font-weight: 400;
  justify-self: end;
}

.legal-section-label {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section-label b {
  color: #7051e8;
  font-size: 14px;
  font-weight: 900;
}

.legal-section-head {
  margin-bottom: 18px;
}

.legal-section-head h2 {
  margin-top: 12px;
  color: #131d3a;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.035em;
}

.legal-section-head p {
  max-width: 860px;
  margin-top: 10px;
  color: #687391;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}

.legal-richtext {
  max-width: 100%;
  color: #647087;
  font-size: 16px;
  line-height: 1.86;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-richtext p {
  margin: 0 0 12px;
}

.legal-richtext p:last-child {
  margin-bottom: 0;
}

.legal-richtext ul,
.legal-richtext ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.5em;
}

.legal-richtext li {
  padding-left: 2px;
}

.legal-nested,
.legal-sublist {
  margin-top: 8px;
}

.privacy-overview {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr);
  gap: 18px;
}

.privacy-main-card,
.privacy-side-cards article,
.gaming-card,
.gaming-question-card,
.gaming-advice-card {
  border: 1px solid #e1e5f0;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fbfbff);
  box-shadow: 0 12px 28px rgba(53, 47, 112, .05);
}

.privacy-main-card {
  min-height: 350px;
  padding: 34px 38px;
}

.privacy-main-card h2,
.privacy-side-cards h3,
.gaming-card h2 {
  color: #202b49;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.02em;
}

.privacy-side-cards {
  display: grid;
  gap: 18px;
}

.privacy-side-cards article {
  min-height: 166px;
  padding: 28px;
}

.privacy-side-cards i {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #7d64ee, #593bdc);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.privacy-process {
  margin-top: 32px;
}

.privacy-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.privacy-flow article {
  min-height: 270px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e5f0;
  border-radius: 14px;
  background: #fff;
}

.privacy-flow article::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(118, 82, 233, .08);
}

.privacy-flow i {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  place-items: center;
  color: #7652e9;
  border: 1px solid #c9bfff;
  border-radius: 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.privacy-flow h3 {
  color: #202b49;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 900;
}

.terms-layout {
  margin-top: 30px;
  display: block;
}

.terms-stack {
  display: grid;
  gap: 14px;
}

.terms-item {
  border: 1px solid #e1e5f0;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #fcfcff);
  box-shadow: 0 12px 28px rgba(53, 47, 112, .05);
  overflow: hidden;
}

.terms-item[open] {
  border-color: rgba(113, 80, 232, .28);
  box-shadow: 0 18px 38px rgba(83, 62, 218, .09);
}

.terms-item summary {
  min-height: 78px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.terms-item summary::-webkit-details-marker {
  display: none;
}

.terms-item summary i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, #7d64ee, #593bdc);
  box-shadow: 0 12px 24px rgba(83, 62, 218, .2);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.terms-item summary span,
.terms-item summary strong,
.terms-item summary small {
  min-width: 0;
  display: block;
}

.terms-item summary strong {
  color: #202b49;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.terms-item summary small {
  margin-top: 5px;
  color: #8791a8;
  font-size: 12px;
}

.terms-item summary b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #7557e9;
  border: 1px solid #c6bcff;
  border-radius: 50%;
  font-weight: 400;
}

.terms-item summary b::before {
  content: "+";
}

.terms-item[open] summary b::before {
  content: "−";
}

.terms-item .legal-richtext {
  padding: 0 34px 30px 96px;
  color: #687391;
}

.gaming-layout {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
}

.gaming-card {
  min-height: 240px;
  padding: 30px;
}

.gaming-card--main {
  grid-column: 1 / -1;
  min-height: 210px;
}

.gaming-card--age {
  background:
    radial-gradient(circle at 92% 12%, rgba(118, 82, 233, .16), transparent 34%),
    linear-gradient(145deg, #fff, #f7f5ff);
}

.gaming-card--age strong {
  display: inline-grid;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #7d64ee, #593bdc);
  box-shadow: 0 16px 32px rgba(83, 62, 218, .24);
  font-size: 22px;
  font-weight: 900;
}

.gaming-check,
.gaming-advice {
  margin-top: 32px;
}

.gaming-question-card,
.gaming-advice-card {
  padding: 30px;
}

.gaming-question-card ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: question;
}

.gaming-question-card li {
  min-height: 44px;
  padding: 11px 14px 11px 42px;
  position: relative;
  border: 1px solid #edf0f8;
  border-radius: 10px;
  background: #fff;
}

.gaming-question-card li::before {
  counter-increment: question;
  content: counter(question);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #7652e9;
  font-size: 11px;
  font-weight: 900;
}

.gaming-advice-card ol {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-left: 0;
  list-style: none;
}

.gaming-advice-card li {
  min-height: 110px;
  padding: 18px;
  display: flex;
  align-items: center;
  border: 1px solid #edf0f8;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fbfbff);
  font-weight: 800;
}

.legal-final-note {
  min-height: 64px;
  margin-top: 28px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #5d42df;
  border: 1px solid #dfdcff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f7ff, #fff);
  box-shadow: 0 12px 28px rgba(53, 47, 112, .05);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 800;
  text-align: center;
}

.legal-final-note span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #7652e9, #5737dc);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .privacy-overview,
  .gaming-layout {
    grid-template-columns: 1fr;
  }

  .privacy-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gaming-question-card ol {
    grid-template-columns: 1fr;
  }

  .gaming-advice-card ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .legal-main {
    padding: 14px 0 88px;
  }

  .legal-redesign .wrap {
    width: calc(100% - 28px);
    max-width: none;
  }

  .legal-redesign .crumb {
    min-height: 42px;
    padding-inline: 15px;
    font-size: 12px;
  }

  .legal-section-head span {
    min-height: 24px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .legal-switch {
    margin-top: 12px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-switch a {
    min-height: 58px;
    padding-inline: 12px;
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    gap: 10px;
    border-radius: 10px;
  }

  .legal-switch i,
  .legal-section-label span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }

  .legal-switch strong {
    font-size: 15px;
  }

  .legal-switch small {
    margin-top: 3px;
    font-size: 10px;
  }

  .privacy-overview,
  .terms-layout,
  .gaming-layout,
  .privacy-process,
  .gaming-check,
  .gaming-advice {
    margin-top: 24px;
  }

  .privacy-main-card,
  .privacy-side-cards article,
  .gaming-card,
  .gaming-question-card,
  .gaming-advice-card {
    padding: 18px;
    border-radius: 10px;
  }

  .privacy-main-card {
    min-height: 0;
  }

  .privacy-main-card h2,
  .privacy-side-cards h3,
  .gaming-card h2,
  .legal-section-head h2 {
    font-size: 23px;
  }

  .legal-richtext,
  .legal-section-head p {
    font-size: 13px;
    line-height: 1.75;
    word-break: break-all;
  }

  .privacy-flow {
    grid-template-columns: 1fr;
  }

  .privacy-flow article {
    min-height: 0;
    padding: 18px;
    border-radius: 10px;
  }

  .terms-item {
    border-radius: 10px;
  }

  .terms-item summary {
    min-height: 64px;
    padding: 14px;
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 10px;
  }

  .terms-item summary i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }

  .terms-item summary strong {
    font-size: 16px;
  }

  .terms-item summary small {
    font-size: 10px;
  }

  .terms-item .legal-richtext {
    padding: 0 14px 16px;
  }

  .gaming-card {
    min-height: 0;
  }

  .gaming-card--main {
    grid-column: auto;
  }

  .gaming-card--age strong {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    font-size: 18px;
  }

  .gaming-question-card ol,
  .gaming-advice-card ol {
    grid-template-columns: 1fr;
  }

  .gaming-question-card li {
    min-height: 0;
    padding: 10px 12px 10px 38px;
  }

  .gaming-advice-card li {
    min-height: 0;
    padding: 14px;
  }

  .legal-final-note {
    min-height: 0;
    margin-top: 20px;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 12px;
  }
}
