/* Shared presentation for details, quiz and legal pages only. */
body {
  font-size: 1.08rem;
}

.site-header {
  direction: ltr;
  padding: 12px 4px 20px;
  margin-bottom: 28px;
  border: 0;
  border-bottom: 1px solid var(--color-border-soft);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
body[data-page^="product-"] .site-header {
  background: transparent;
}
.site-header .header-actions {
  direction: ltr;
  margin-left: auto;
  margin-right: 0;
  gap: 12px;
}
.site-header .header-icon-control,
.site-header .header-icon-action {
  min-width: 44px;
  height: 44px;
  background: var(--color-bg-surface-soft);
}
.site-header .header-icon-control {
  width: 44px;
  flex-basis: 44px;
}
[dir="rtl"] .header-product-link,
[dir="rtl"] .header-action-label {
  direction: rtl;
  unicode-bidi: isolate;
}

.section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.product-details {
  gap: 32px;
}
.product-quiz {
  gap: 16px;
}
.detail-header h1,
.quiz-header h1,
.legal-header h1 {
  max-width: none;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.detail-header .prose {
  max-width: 76ch;
}
.prose p,
.legal-intro,
.legal-section p,
.legal-section li {
  font-size: inherit;
  line-height: 1.68;
}
.detail-content h2,
.legal-section h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.detail-content h3 {
  font-size: 1.125rem;
  line-height: 1.4;
}
.detail-layout {
  gap: 32px;
}
.detail-content {
  padding: 0;
}
.detail-toc {
  padding-inline: 0;
}
.detail-toc a {
  font-size: 0.92rem;
}
.legal-card {
  width: 100%;
  max-width: 76ch;
  margin-inline: auto;
}
.legal-header,
.legal-content {
  max-width: none;
}
.legal-content {
  gap: 32px;
}
.legal-intro {
  max-width: none;
}
.quiz-header {
  padding: 0;
  text-align: center;
}
body[data-page="product-quiz"] .site-header,
body[data-page="product-quiz"] .site-footer {
  border: 0;
}
.quiz-embed iframe {
  background: transparent;
}
/* Keep table structure and readable text instead of squeezing its columns. */
.table-wrap {
  min-width: 0;
  border-radius: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.table-wrap:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 4px;
}
.table-wrap table {
  min-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.55;
}
.table-wrap th,
.table-wrap td {
  padding: 12px;
  overflow-wrap: normal;
  word-break: normal;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--color-border-soft);
  padding-top: 28px;
}

@media (max-width: 720px) {
  .site-header {
    padding: 8px 4px 18px;
  }
  .site-header .header-actions {
    gap: 8px;
  }
  .detail-layout {
    gap: 28px;
  }
  .detail-toc {
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid var(--color-border-soft);
    border-radius: 0;
  }
  .detail-toc a {
    padding-inline: 0;
  }
}
