/* ==========================================================================
   Pages generated by scripts/build.mjs (legal documents + documentation).
   Loaded after styles.css / subpages.css / subpage-theme.css.
   ========================================================================== */

[hidden] { display: none !important; }

/* Skip link (keyboard users) */
.rc-skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 10001;
  padding: 10px 16px;
  border-radius: 10px;
  background: #3563c9;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.rc-skip-link:focus { top: 12px; }

/* Footer (replaces the former inline styles) */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand .footer-brand-name {
  margin: 0;
  font-size: 16px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted-dark);
  margin: 0 0 16px;
}
p.footer-col-title { margin-top: 0; }

/* Language menu: options are real links to the translated page */
a.lang-dropdown-item { text-decoration: none; }
.lang-dropdown-item .lang-check { font-size: 12px; color: #93C5FD; margin-inline-start: auto; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-hero .hero-title { margin-bottom: 0; }
.legal-doc-tabs a.legal-tab-item {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.legal-doc-tabs a.legal-tab-item.active,
.legal-doc-tabs a.legal-tab-item.active:hover {
  color: #FFFFFF !important;
  background: #1E3A6E !important; /* same dark blue as the home page format tabs */
  border-color: #1E3A6E !important;
}
/* Document tabs on two balanced rows (4 + 3) on wide screens; free wrapping on small screens. */
.legal-doc-tabs .legal-tab-break { flex-basis: 100%; height: 0; }
@media (max-width: 900px) {
  .legal-doc-tabs .legal-tab-break { display: none; }
}
.legal-doc-header .legal-doc-title { margin-top: 0; }
.legal-doc-date { margin: 0; }
.legal-section-heading { line-height: 1.3; }
.legal-section-body ul,
.legal-section-body ol {
  padding-left: 0;
  padding-inline-start: 22px;
  list-style: disc;
}
.legal-section-body li::marker { color: #93C5FD; }
.legal-section-body a { text-decoration: underline; text-underline-offset: 2px; }
.legal-section-body dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 20px;
  margin: 0 0 16px;
}
.legal-section-body dt { font-weight: 600; color: #FFFFFF; }
.legal-section-body dd { margin: 0; color: #E2E8F0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .legal-section-body dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-section-body dd { margin-bottom: 10px; }
}
.legal-section-body .warning-box,
.legal-section-body .info-box {
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-inline-start: 3px solid #93C5FD;
  background: rgba(147, 197, 253, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
}
.legal-section-body .warning-box { border-inline-start-color: #F59E0B; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.22); }

.legal-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.legal-toc-link { text-decoration: none; display: block; }

/* --------------------------------------------------------------------------
   Right-to-left languages (Arabic)
   -------------------------------------------------------------------------- */
[dir="rtl"] .legal-toc-inner {
  border-left: 0;
  padding-left: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  padding-right: 16px;
}
[dir="rtl"] .footer-link-list,
[dir="rtl"] .legal-section-body,
[dir="rtl"] .docs-article-body { text-align: right; }

/* Instant navigation between documents (soft-nav.js): dim the content only if loading takes a while */
html.rc-softnav-loading [data-swap-scroll] {
  opacity: 0.55;
  transition: opacity 0.2s ease 0.15s;
}
[data-swap-scroll] { transition: opacity 0.15s ease; }

/* --------------------------------------------------------------------------
   404 page (/404.html)
   -------------------------------------------------------------------------- */
.rc-404-hero { min-height: 72vh; display: flex; align-items: center; text-align: center; padding-bottom: 96px !important; }
.rc-404-hero .rc-container { display: flex; flex-direction: column; align-items: center; }
.rc-404-code {
  margin: 0;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(88px, 16vw, 168px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #3563c9;
}
.rc-404-title { margin: 8px 0 12px !important; }
.rc-404-text { max-width: 560px; margin: 0 auto 32px; }
.rc-404-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.rc-404-link { font-weight: 600; color: #1E293B; text-decoration: underline; text-underline-offset: 4px; }
.rc-404-link:hover { color: #3563c9; }

/* --------------------------------------------------------------------------
   Contact page: request form (contact.js)
   -------------------------------------------------------------------------- */
.rc-request-account {
  margin: 0 0 24px;
  border-radius: 16px;
  border: 1px solid rgba(10, 14, 26, 0.10);
  background: rgba(255, 255, 255, 0.55);
  color: #1E293B;
  font-size: 14.5px;
  text-align: start;
}
.rc-request-account[data-state="loading"] { visibility: hidden; min-height: 58px; }
.rc-request-account-out, .rc-request-account-in { display: none; align-items: center; gap: 14px; padding: 14px 18px; }
.rc-request-account[data-state="out"] .rc-request-account-out { display: flex; justify-content: space-between; flex-wrap: wrap; }
.rc-request-account[data-state="in"] .rc-request-account-in { display: flex; }
.rc-request-account-out strong { display: block; font-size: 15px; color: #0A0E1A; margin-bottom: 2px; }
.rc-request-account-out p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #475569; max-width: 440px; }
.rc-request-account-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rc-request-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: #3563c9; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rc-request-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #FFFFFF; background: linear-gradient(135deg, #3563c9, #1E3A6E); }
.rc-request-email { color: #64748B; }
.rc-request-email::before { content: '· '; }

#rc-request-form .rc-form-group { text-align: start; }
.rc-request-placeholder { color: #94A3B8; }
.rc-select-group { margin: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #94A3B8; }
.rc-select-group:first-child { margin-top: 4px; }
#rc-request-type .rc-custom-select-option:focus { outline: none; background: rgba(53, 99, 201, 0.10); }
.rc-request-hint { margin: 8px 2px 0; font-size: 13px; line-height: 1.5; color: #475569; }
.rc-request-counter { margin-top: 6px; font-size: 12px; color: #64748B; text-align: end; font-variant-numeric: tabular-nums; }

.rc-request-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 16px; border-radius: 14px; cursor: pointer; text-align: center;
  border: 1.5px dashed rgba(10, 14, 26, 0.22); background: rgba(255, 255, 255, 0.45);
  color: #334155; font-size: 14px; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.rc-request-drop svg { color: #3563c9; }
.rc-request-drop small { font-size: 12px; color: #64748B; }
.rc-request-drop:hover, .rc-request-drop:focus-visible, .rc-request-drop.is-over { border-color: #3563c9; background: rgba(53, 99, 201, 0.06); outline: none; }
.rc-request-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rc-request-files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(10, 14, 26, 0.08); font-size: 13.5px; color: #1E293B; }
.rc-request-files li small { color: #64748B; margin-inline-start: 6px; }
.rc-request-files li button { background: none; border: 0; font-size: 18px; line-height: 1; color: #64748B; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.rc-request-files li button:hover { color: #DC2626; background: rgba(220, 38, 38, 0.08); }
.rc-request-files .rc-request-files-total { background: none; border: 0; padding: 2px 4px; justify-content: flex-end; font-size: 12px; color: #64748B; }

.rc-request-msg { margin: 4px 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; text-align: start; }
.rc-request-msg.is-error { background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.3); color: #B91C1C; }
.rc-request-msg.is-success { background: rgba(22, 163, 74, 0.08); border: 1px solid rgba(22, 163, 74, 0.3); color: #15803D; }
.rc-request-submit { width: 100%; justify-content: center; padding: 15px 24px !important; font-size: 15px !important; margin-top: 8px; }
.rc-request-submit[disabled] { opacity: 0.6; cursor: progress; }
.rc-request-fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: #64748B; text-align: center; }
.rc-request-fine a { color: #3563c9; }
#rc-request-done[hidden], #rc-request-form[hidden], .rc-request-account[hidden] { display: none !important; }
#rc-request-done:not([hidden]) { display: block; }
@media (max-width: 600px) {
  .rc-request-account-actions { width: 100%; }
  .rc-request-account-actions .rc-btn-primary { flex: 1; justify-content: center; }
}

/* Contact: 3 channel cards, the last one spans the row */
.contact-channels-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Contact › creator application (topic "creator"): tap-to-choose chips ---------- */
.rc-creator-fields { text-align: start; }
.rc-creator-intro { margin: -4px 2px 18px; font-size: 14px; line-height: 1.5; color: #475569; }
.rc-chips-group { margin-inline: 0; padding: 0; border: 0; min-width: 0; }
.rc-chips-group legend { padding: 0; margin-bottom: 8px; }
.rc-optional { margin-inline-start: 4px; font-size: 12px; font-weight: 500; color: #94A3B8; text-transform: none; letter-spacing: 0; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-chip { position: relative; display: inline-flex; cursor: pointer; }
.rc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rc-chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.2; color: #334155;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(10, 14, 26, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.rc-chip:hover span { border-color: rgba(53, 99, 201, 0.45); }
.rc-chip input:checked + span { color: #FFFFFF; background: #3563c9; border-color: #3563c9; }
.rc-chip input:checked + span::before { content: '✓'; font-size: 12px; }
.rc-chip input:focus-visible + span { outline: 2px solid #3563c9; outline-offset: 2px; }
.rc-chip:active span { transform: scale(0.97); }
.rc-chips-group.is-missing .rc-chip span, .rc-creator-fields .is-missing { border-color: rgba(220, 38, 38, 0.6); }
@media (prefers-reduced-motion: reduce) { .rc-chip span { transition: none; } }
