/* Native FAQ controls work on ordinary webspace and with JavaScript disabled. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.faq-static-item {
  border-bottom: 1px solid #cfd5e0;
}

.faq-static-item:last-child {
  border-bottom: 0;
}

.faq-static-item > summary {
  width: 100%;
  cursor: pointer;
  list-style: none;
}

.faq-static-item > summary::-webkit-details-marker {
  display: none;
}

.faq-static-item > summary:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.faq-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 220ms ease, color 220ms ease;
}

.faq-static-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: #2f4e6e;
}

.faq-static-item[open] .faq-content > p {
  animation: faq-answer-in 240ms ease-out both;
}

.legal-title h1,
.legal-content {
  overflow-wrap: anywhere;
}

/* Stable legal-page presentation for the portable FTP version. */
.legal-header,
.legal-main {
  box-sizing: border-box;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1320px);
  height: 88px;
  margin: 0 auto;
  border-bottom: 2px solid #1a1a1a;
  background: rgba(255, 255, 255, 0.96);
}

.legal-header a {
  color: #1a1a1a;
}

.legal-header .brand {
  gap: 0.35em;
  font-size: 1.21529rem;
}

.legal-header .brand > span:first-child,
.legal-header .brand-ai {
  font-size: 1em;
}

.legal-header .brand-ai {
  min-width: 2.65em;
  height: 2.65em;
  padding-inline: 0.45em;
}

.legal-main {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 10vw, 9rem);
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.legal-title {
  align-self: start;
}

.legal-title > p {
  margin: 0 0 1rem;
  color: #2f4e6e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-title h1 {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.042em;
}

.legal-title > div {
  max-width: 460px;
  margin-top: 1.7rem;
  color: #4e5968;
  font-size: 1.02rem;
  line-height: 1.65;
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 2rem 0;
  border-bottom: 1px solid #4b4b4b;
}

.legal-content section:first-of-type {
  padding-top: 0;
}

.legal-content h2 {
  margin: 0 0 1rem;
  color: #1a1a1a;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin-top: 2rem !important;
  color: #6b7280 !important;
  font-size: 0.82rem !important;
  font-weight: 700;
}

.legal-content p,
.legal-content li,
.legal-content dd,
.legal-content address {
  color: #4e5968;
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-content p {
  margin: 0 0 1rem;
}

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

.legal-content address {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-style: normal;
}

.legal-content address strong,
.legal-source-content strong {
  color: #1a1a1a;
  font-weight: 700;
}

.legal-content ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.legal-contact-link {
  color: #2f4e6e;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.legal-contact-link:hover {
  color: #1a1a1a;
}

@media (max-width: 780px) {
  .legal-main {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 560px) {
  .legal-header,
  .legal-main {
    width: min(100% - 32px, 1320px);
  }

  .legal-header {
    height: 76px;
  }

  .legal-header .brand {
    gap: 0.42em;
    font-size: 1.11361rem;
  }

  .legal-header .brand-ai {
    min-width: 2.7381em;
    height: 2.7381em;
    padding-inline: 0.5357em;
  }

  .legal-main {
    gap: 2.75rem;
    padding: 3.5rem 0 4.5rem;
  }

  .legal-title h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .legal-content section {
    padding: 1.6rem 0;
  }
}
