.legal-consent-gate {
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e1dc;
  border-radius: 8px;
  background: #fff;
}

.legal-consent-gate.is-unavailable {
  border-color: #e6b8b4;
  background: #fff8f7;
}

.legal-consent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #e6ebe8;
  background: #f7f9f8;
}

.legal-consent-header > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.legal-consent-header strong {
  color: #17211c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.legal-consent-header small,
.legal-consent-footnote {
  color: #66726c;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.55;
}

.legal-consent-progress {
  flex: 0 0 auto;
  color: #53615a;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.legal-consent-gate.is-complete .legal-consent-progress {
  color: #087454;
}

.legal-consent-documents {
  display: grid;
  min-width: 0;
}

.legal-consent-document {
  min-width: 0;
  border-bottom: 1px solid #e6ebe8;
  background: #fff;
}

.legal-consent-document:last-child {
  border-bottom: 0;
}

.legal-consent-document > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.legal-consent-document > summary::-webkit-details-marker {
  display: none;
}

.legal-consent-document > summary > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.legal-consent-document > summary strong {
  color: #1b2520;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.4;
}

.legal-consent-document > summary small {
  display: -webkit-box;
  overflow: hidden;
  color: #6b7670;
  font-size: 11px;
  font-weight: 430;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.legal-consent-document > summary em {
  color: #7a8580;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.legal-consent-document.is-read > summary em {
  color: #087454;
}

.legal-consent-scroll {
  max-height: clamp(220px, 34vh, 330px);
  margin: 0 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #dfe5e1;
  border-radius: 6px;
  background: #fbfcfb;
  outline: none;
  -webkit-overflow-scrolling: touch;
}

.legal-consent-scroll:focus-visible {
  border-color: #087454;
  box-shadow: 0 0 0 3px rgba(8, 116, 84, 0.13);
}

.policy-detail {
  display: grid;
  min-width: 0;
  gap: 0;
  margin: 0;
  padding: 18px 18px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #26312b;
  box-shadow: none;
}

.policy-detail-head {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e3e8e5;
}

.policy-detail-head h3 {
  margin: 0;
  color: #17211c;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.4;
  letter-spacing: 0;
}

.policy-detail-head p,
.policy-detail-summary,
.policy-detail-section p {
  margin: 0;
  color: #56625c;
  font-size: 13px;
  font-weight: 430;
  line-height: 1.7;
}

.policy-detail-summary {
  margin-bottom: 18px;
  color: #3f4c45;
}

.policy-detail-section {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.policy-detail-section h4 {
  margin: 0;
  color: #1c2822;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.policy-detail-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
}

.policy-detail-section li {
  color: #56625c;
  font-size: 13px;
  font-weight: 430;
  line-height: 1.65;
}

.legal-consent-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  margin: 0 18px 18px;
  border-top: 1px solid #dfe5e1;
  color: #087454;
  font-size: 12px;
  font-weight: 650;
}

.legal-consent-end svg {
  width: 16px;
  height: 16px;
}

.legal-consent-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  min-height: 50px;
  margin: 0;
  padding: 12px 16px;
  color: #26322c !important;
  font-size: 13px !important;
  font-weight: 560 !important;
  line-height: 1.5;
  cursor: pointer;
}

.legal-consent-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #087454;
}

.legal-consent-check.is-locked {
  color: #8b9590 !important;
  cursor: not-allowed;
}

.legal-consent-footnote {
  margin: 0;
  padding: 11px 16px 13px;
  border-top: 1px solid #e6ebe8;
  background: #f7f9f8;
}

[data-legal-submit]:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none !important;
}

.preactivation-account-notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #cfe0d7;
  border-radius: 8px;
  background: #f2f8f5;
  color: #214a3a;
}

.preactivation-account-notice > svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.preactivation-account-notice > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.preactivation-account-notice strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.preactivation-account-notice small {
  color: #50685d;
  font-size: 12px;
  font-weight: 430;
  line-height: 1.6;
}

.account-disclosure-panel .policy-detail {
  margin-top: 14px;
  padding: 0;
}

@media (max-width: 600px) {
  .legal-consent-header {
    align-items: flex-start;
    padding: 12px 13px;
  }

  .legal-consent-document > summary {
    gap: 8px;
    min-height: 56px;
    padding: 9px 13px;
  }

  .legal-consent-document > summary small {
    -webkit-line-clamp: 1;
  }

  .legal-consent-scroll {
    max-height: min(36vh, 300px);
    margin: 0 9px;
  }

  .policy-detail {
    padding: 16px 14px 4px;
  }

  .legal-consent-check {
    padding: 12px 13px;
  }

  .legal-consent-footnote {
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-consent-gate *,
  .preactivation-account-notice * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
