/* Trust & legal pages — privacy, terms, contact layouts */

.trust-page > .trust-hero,
.trust-page > .trust-highlights,
.trust-page > .trust-document,
.trust-page > .contact-layout {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

/* --- Hero --- */
.trust-hero {
  margin-bottom: clamp(24px, 4vw, 36px);
  padding-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--trust-border);
}

.trust-hero h1 {
  color: var(--color-heading);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 14px;
}

.trust-hero h1 span {
  background: var(--trust-heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-hero .lead {
  max-width: 720px;
}

/* --- Summary highlights --- */
.trust-highlights-title {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.trust-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-medium);
  background: var(--trust-surface);
  border: 1px solid var(--trust-border-soft);
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.5;
}

.trust-highlight-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-highlight--teal .trust-highlight-icon { color: var(--trust-icon-teal); }
.trust-highlight--legal .trust-highlight-icon { color: var(--trust-icon-legal); }
.trust-highlight--warning .trust-highlight-icon { color: var(--trust-icon-warning); }
.trust-highlight--meta .trust-highlight-icon { color: var(--trust-icon-meta); }

/* --- Document body --- */
.trust-document {
  padding-bottom: 8px;
}

.trust-section {
  padding: clamp(20px, 3vw, 28px) 0;
  border-bottom: 1px solid var(--trust-section-divider);
  scroll-margin-top: 88px;
}

.trust-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trust-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.trust-section .panel-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.trust-section--meta .panel-icon { color: var(--trust-icon-meta); }
.trust-section--legal .panel-icon { color: var(--trust-icon-legal); }
.trust-section--teal .panel-icon { color: var(--trust-icon-teal); }
.trust-section--warning .panel-icon { color: var(--trust-icon-warning); }

.trust-section p,
.trust-section li {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.trust-section p + p {
  margin-top: 12px;
}

.trust-section strong {
  color: var(--color-heading);
  font-weight: 700;
}

.trust-section a {
  color: var(--trust-link);
  text-decoration: none;
  font-weight: 600;
}

.trust-section a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trust-section code {
  padding: 2px 6px;
  border-radius: var(--radius-small);
  background: var(--trust-code-background);
  border: 1px solid var(--trust-border);
  color: var(--trust-code-text);
  font-size: 0.9em;
}

.trust-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-list .summary-check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--trust-icon-warning);
}

/* --- Contact layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  margin-bottom: 24px;
  align-items: stretch;
  border: 1px solid var(--trust-border);
  border-radius: var(--radius-medium);
  background: var(--trust-surface-soft);
  overflow: hidden;
}

.trust-page > .contact-layout {
  margin-top: clamp(8px, 2vw, 16px);
}

.contact-panel {
  padding: clamp(18px, 2.5vw, 28px);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.trust-page:has(.contact-layout) .contact-panel:first-child {
  border-right: 1px solid var(--trust-border);
}

.contact-panel h2 {
  color: var(--color-heading);
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-panel p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--trust-border-soft);
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: var(--radius-small);
  background: var(--trust-surface-sunken);
}

.contact-method-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-method.card-legal { border-left-color: var(--trust-icon-legal); }
.contact-method.card-legal .contact-method-icon { color: var(--trust-icon-legal); }
.contact-method.card-teal { border-left-color: var(--trust-icon-teal); }
.contact-method.card-teal .contact-method-icon { color: var(--trust-icon-teal); }
.contact-method.card-user { border-left-color: var(--trust-icon-user); }
.contact-method.card-user .contact-method-icon { color: var(--trust-icon-user); }

.contact-method strong {
  display: block;
  color: var(--color-heading);
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-method span,
.contact-method a {
  display: block;
  color: var(--color-text-muted);
  font-size: 14px;
}

.contact-method a {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.contact-panel a {
  color: var(--trust-link);
  font-weight: 700;
  text-decoration: none;
}

.contact-panel a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.cf-turnstile { margin: 4px 0 16px; }

.primary-btn.is-loading { opacity: 0.88; cursor: wait; transform: none; }
.primary-btn.is-success {
  background: var(--trust-success-button-bg);
  color: var(--trust-success-button-text);
  box-shadow: var(--trust-success-button-shadow);
  cursor: default;
  transform: none;
}
.primary-btn:disabled { opacity: 0.72; cursor: not-allowed; transform: none; }

.form-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
}

/* --- Desktop: privacy / terms sidebar layout --- */
@media (min-width: 1024px) {
  .trust-page:has(.trust-document) {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 48px);
    row-gap: 0;
    align-items: start;
    max-width: 1120px;
    margin-inline: auto;
    width: 100%;
  }

  .trust-page:has(.trust-document) > .trust-hero {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin-inline: 0;
    border-bottom: 0;
    padding-bottom: 16px;
  }

  .trust-page:has(.trust-document) > .trust-highlights {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    margin-inline: 0;
    grid-template-columns: 1fr;
    margin-bottom: 0;
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .trust-page:has(.trust-document) > .trust-document {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: none;
    margin-inline: 0;
    padding-left: clamp(28px, 3vw, 40px);
    border-left: 1px solid var(--trust-border);
  }

  /* Contact: full-width highlights row + unified split card */
  .trust-page:has(.contact-layout) > .trust-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: clamp(24px, 3vw, 32px);
  }

  .trust-page:has(.contact-layout) > .contact-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .trust-page:has(.trust-document) {
    display: block;
  }

  .trust-page:has(.trust-document) > .trust-document {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 950px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trust-page:has(.contact-layout) .contact-panel:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--trust-border);
  }
}

@media (max-width: 640px) {
  .trust-highlights {
    grid-template-columns: 1fr;
  }

  .trust-hero {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .trust-section {
    padding: 18px 0;
  }

  .primary-btn {
    width: 100%;
  }
}
