/* Legal / policy pages (terms, privacy, etc.) */

.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  background-color: #fff;
  background-image: url("/static/images/main_bg.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.legal-page .page-main {
  flex: 1;
  padding: 30px 0 60px;
  gap: 30px;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.breadcrumb {
  margin: 0;
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary-500);
}

.breadcrumb__current {
  color: var(--text-secondary);
}

.legal-panel {
  width: 100%;
  padding: 24px 36px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

.legal-panel__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 600;
  line-height: 24px;
}

.legal-panel__content {
  color: var(--text-primary);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
}

.legal-panel__content h2 {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.legal-panel__content h2:first-child {
  margin-top: 0;
}

.legal-panel__content p {
  margin: 0;
}

.legal-panel__content p + p,
.legal-panel__content h2 + p {
  margin-top: 0;
}

.legal-panel__content h2:not(:first-child) {
  margin-top: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item__question {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.faq-item__answer {
  margin: 0;
}

.faq-email {
  color: #d90000;
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 32px;
  text-decoration: none;
}

.faq-link {
  color: #3e7dff;
  text-decoration: none;
}

.faq-link:hover {
  text-decoration: underline;
}

.faq-rich-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-rich-text a {
  color: var(--color-primary-500);
  text-decoration: none;
}

.faq-rich-text a:hover {
  text-decoration: underline;
}

.addr-block + .addr-block {
  margin-top: 18px;
}

.addr-block__label {
  margin: 0 0 4px;
}

.addr-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.addr-link {
  color: var(--color-primary-500);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  word-break: break-all;
}

.addr-link:hover {
  text-decoration: underline;
}

.addr-tip {
  margin: 4px 0 0;
}

.addr-tip--red {
  color: #ff0000;
}

.addr-warn {
  margin: 0;
  color: #ff0000;
}

.addr-email-highlight {
  margin: 0;
  color: var(--text-primary);
  font-size: 32px;
  font-family: "Kaiti SC", KaiTi, STKaiti, serif;
  font-weight: 400;
  line-height: 50px;
  text-shadow: 0 0 10px var(--color-primary-500);
}

.addr-email-highlight a {
  color: inherit;
  text-decoration: none;
}

.addr-inline-links a {
  color: var(--color-primary-500);
  text-decoration: none;
}

.addr-inline-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-page {
    background-image: none;
  }

  .legal-page .page-main {
    padding: 12px 0 0;
    gap: 0;
  }

  .legal-content.layout-section {
    gap: 18px;
    padding-left: var(--layout-padding-x);
    padding-right: var(--layout-padding-x);
    padding-bottom: 12px;
    box-sizing: border-box;
  }

  .breadcrumb {
    font-size: 12px;
    line-height: 18px;
  }

  .legal-panel {
    padding: 24px 20px;
    background: #fff;
    border-radius: 18px;
    border: none;
    outline: 1px solid var(--color-black-alpha-10);
    outline-offset: -1px;
    backdrop-filter: none;
    gap: 18px;
    overflow: hidden;
  }

  .legal-panel__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .legal-panel__content {
    font-size: 12px;
    line-height: 18px;
  }

  .legal-panel__content h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
  }

  .legal-panel__content h2:not(:first-child) {
    margin-top: 0;
  }
}
