.tch-v2-legal-registration {
  margin: 18px 0 30px;
  padding: 28px;
  border: 1px solid rgba(205, 170, 120, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(222, 188, 139, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(250, 245, 237, 0.98));
  box-shadow: 0 22px 46px rgba(68, 47, 20, 0.08);
}

.tch-v2-legal-registration__header {
  margin-bottom: 22px;
  max-width: 860px;
}

.tch-v2-legal-registration__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #a96f2d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tch-v2-legal-registration__header h3 {
  margin: 0 0 10px;
  color: #111111;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.02;
  letter-spacing: .03em;
  text-wrap: balance;
}

.tch-v2-legal-registration__header p {
  margin: 0;
  color: #5e564c;
  font-size: 15px;
  line-height: 1.75;
  max-width: 760px;
}

.tch-v2-legal-registration__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.tch-v2-legal-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(205, 170, 120, 0.32);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(75, 52, 24, 0.05);
}

.tch-v2-legal-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tch-v2-legal-card__copy {
  min-width: 0;
}

.tch-v2-legal-card__top h4 {
  margin: 0 0 8px;
  color: #17130d;
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.tch-v2-legal-card__meta {
  color: #8c6d43;
  font-size: 13px;
  line-height: 1.6;
}

.tch-v2-legal-card__toggle {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(169, 111, 45, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #7f531f;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  justify-self: start;
}

.tch-v2-legal-card__toggle:hover,
.tch-v2-legal-card__toggle:focus {
  border-color: rgba(169, 111, 45, 0.42);
  box-shadow: 0 10px 24px rgba(122, 83, 31, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.tch-v2-legal-card__toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.tch-v2-legal-card__summary {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(229, 214, 193, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(250, 245, 237, 0.9));
  color: #594f44;
  font-size: 14px;
  line-height: 1.7;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.tch-v2-legal-card__content[hidden] {
  display: none !important;
}

.tch-v2-legal-card__content {
  margin-top: 14px;
  overflow: hidden;
}

.tch-v2-legal-card__content-inner {
  padding: 18px 18px 14px;
  border: 1px solid rgba(229, 214, 193, 0.95);
  border-radius: 18px;
  background: #fff;
  color: #43372c;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.tch-v2-legal-card__content-inner > :first-child {
  margin-top: 0;
}

.tch-v2-legal-card__content-inner > :last-child {
  margin-bottom: 0;
}

.tch-v2-legal-card__content-inner p,
.tch-v2-legal-card__content-inner li,
.tch-v2-legal-card__content-inner blockquote {
  color: #43372c;
}

.tch-v2-legal-card__content-inner ul,
.tch-v2-legal-card__content-inner ol {
  padding-left: 20px;
}

.tch-v2-legal-card--expanded {
  border-color: rgba(169, 111, 45, 0.4);
  box-shadow: 0 16px 34px rgba(75, 52, 24, 0.08);
}

.tch-v2-legal-card__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(230, 217, 201, 0.9);
  color: #2f261d;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.tch-v2-legal-card__check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #a96f2d;
}

.tch-v2-legal-card__state {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf7ef;
  color: #23663a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tch-v2-legal-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tch-v2-legal-modal-shell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 10, 0.58);
  backdrop-filter: blur(3px);
}

.tch-v2-legal-modal {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 960px);
  overflow: hidden;
  border: 1px solid rgba(219, 194, 158, 0.72);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(45, 32, 19, 0.28);
}

.tch-v2-legal-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #f1e4d6;
}

.tch-v2-legal-modal__head h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.12;
  color: #17120d;
}

.tch-v2-legal-modal__head p {
  margin: 0;
  color: #6c6054;
}

.tch-v2-legal-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e3d1bb;
  border-radius: 999px;
  background: #fff;
  color: #6d4723;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.tch-v2-legal-modal__body {
  max-height: calc(88vh - 170px);
  overflow: auto;
  padding: 22px 24px;
  color: #4f463b;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.tch-v2-legal-modal__body p:first-child {
  margin-top: 0;
}

.tch-v2-legal-modal__body p:last-child {
  margin-bottom: 0;
}

.tch-v2-legal-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 24px 22px;
  border-top: 1px solid #f1e4d6;
}

.tch-v2-legal-modal__secondary,
.tch-v2-legal-modal__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.tch-v2-legal-modal__secondary {
  border: 1px solid #d9c4aa;
  background: #fff;
  color: #7a4d1f;
}

.tch-v2-legal-modal__primary {
  border: 1px solid #8a5a32;
  background: #8a5a32;
  color: #fff;
}

@media (max-width: 640px) {
  .tch-v2-legal-registration {
    padding: 20px;
    border-radius: 22px;
  }

  .tch-v2-legal-card {
    padding: 16px;
  }

  .tch-v2-legal-card__top h4 {
    font-size: 19px;
  }

  .tch-v2-legal-card__toggle {
    width: 100%;
    justify-self: stretch;
  }

  .tch-v2-legal-card__content-inner {
    padding: 16px 16px 12px;
  }

  .tch-v2-legal-card__check {
    flex-wrap: wrap;
  }

  .tch-v2-legal-card__state {
    margin-left: 30px;
  }

  .tch-v2-legal-modal-shell {
    padding: 14px;
  }

  .tch-v2-legal-modal__head,
  .tch-v2-legal-modal__body,
  .tch-v2-legal-modal__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tch-v2-legal-modal__footer {
    justify-content: stretch;
  }

  .tch-v2-legal-modal__secondary,
  .tch-v2-legal-modal__primary {
    width: 100%;
  }
}
