/* Static Pages — loaded only on /about, /legal/*, /help* routes
   Uses --orr-* design tokens from the app's CSS bundle (loaded via SPA shell) */

/* Screen-reader-only — hidden visually, accessible to crawlers and assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reset: the SPA's body has overflow:hidden and height:100% — undo for scrollable pages */
html, body {
  height: auto !important;
  overflow: auto !important;
}

.sp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--orr-bg-primary, #0f0f1a);
  color: var(--orr-text-primary, #e8e8ec);
  font-family: var(--orr-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Header ── */

.sp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--orr-border-subtle, rgba(82, 49, 38, 0.06));
}

.sp-header__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sp-header__logo {
  height: 36px;
  width: auto;
}

.sp-header__nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  align-items: center;
}

.sp-header__nav a {
  color: var(--orr-text-secondary, #a0a0b0);
  text-decoration: none;
  transition: color 0.1s ease;
}

.sp-header__nav a:hover {
  color: var(--orr-text-primary, #e8e8ec);
}

.sp-header__cta {
  color: var(--orr-bg-void, #0a0a10) !important;
  background: var(--orr-accent-primary, #C29A3D);
  padding: 4px 14px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.sp-header__cta:hover {
  background: var(--orr-accent-primary-hover, #8fc9b4);
}

/* ── Body (sidebar + main) ── */

.sp-body {
  flex: 1;
  display: flex;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* ── Sidebar Nav ── */

.sp-sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 32px 0 32px 24px;
  border-right: 1px solid var(--orr-border-subtle, rgba(82, 49, 38, 0.06));
}

.sp-sidebar__section {
  margin-bottom: 20px;
}

.sp-sidebar__heading {
  font-family: var(--orr-font-display, 'Cinzel', serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orr-text-muted, #666680);
  margin-bottom: 8px;
}

.sp-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-sidebar__list li {
  margin-bottom: 2px;
}

.sp-sidebar__list a {
  display: block;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--orr-text-secondary, #a0a0b0);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.1s ease, background 0.1s ease;
}

.sp-sidebar__list a:hover {
  color: var(--orr-text-primary, #e8e8ec);
  background: var(--orr-bg-hover-subtle, rgba(255, 255, 255, 0.05));
}

.sp-sidebar__active {
  color: var(--orr-accent-primary, #C29A3D) !important;
  background: var(--orr-accent-primary-dim, rgba(181, 171, 123, 0.2)) !important;
}

/* ── Main Content ── */

.sp-main {
  flex: 1;
  min-width: 0;
  padding: 40px 24px 60px 32px;
}

.sp-main h1 {
  font-family: var(--orr-font-display, 'Cinzel', serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orr-text-primary, #e8e8ec);
  margin-bottom: 8px;
}

.sp-main h2 {
  font-family: var(--orr-font-display, 'Cinzel', serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--orr-text-primary, #e8e8ec);
  margin-top: 36px;
  margin-bottom: 12px;
}

.sp-main h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--orr-text-primary, #e8e8ec);
  margin-top: 24px;
  margin-bottom: 8px;
}

.sp-main p {
  color: var(--orr-text-secondary, #a0a0b0);
  margin-bottom: 16px;
}

.sp-main ul, .sp-main ol {
  color: var(--orr-text-secondary, #a0a0b0);
  padding-left: 24px;
  margin-bottom: 16px;
}

.sp-main li {
  margin-bottom: 8px;
}

.sp-main a {
  color: var(--orr-accent-primary, #C29A3D);
  text-decoration: none;
}

.sp-main a:hover {
  text-decoration: underline;
}

.sp-main strong {
  color: var(--orr-text-primary, #e8e8ec);
}

.sp-main code {
  font-family: var(--orr-font-mono, 'SF Mono', 'Fira Code', 'Consolas', monospace);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Subtitle / lead text */
.sp-lead {
  font-size: 17px;
  color: var(--orr-text-secondary, #a0a0b0);
  margin-bottom: 32px;
}

/* Product highlight card */
.sp-product {
  background: var(--orr-bg-secondary, #221005);
  border: 1px solid var(--orr-border-default, rgba(69, 47, 29, 0.1));
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.sp-product__price {
  font-family: var(--orr-font-display, 'Cinzel', serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--orr-accent-primary, #C29A3D);
}

.sp-product__currency {
  font-size: 14px;
  color: var(--orr-text-muted, #666680);
  margin-left: 4px;
}

/* CTA button (static, opens app) */
.sp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--orr-accent-primary, #C29A3D);
  color: var(--orr-bg-void, #0a0a10);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sp-cta:hover {
  background: var(--orr-accent-primary-hover, #8fc9b4);
  text-decoration: none;
}

/* Payment logos row */
.sp-payment-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--orr-text-muted, #666680);
}

/* ── Footer ── */

.sp-footer {
  border-top: 1px solid var(--orr-border-subtle, rgba(82, 49, 38, 0.06));
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--orr-text-muted, #666680);
}

.sp-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sp-footer__links a {
  color: var(--orr-text-secondary, #a0a0b0);
  text-decoration: none;
}

.sp-footer__links a:hover {
  color: var(--orr-text-primary, #e8e8ec);
}

.sp-footer__contact {
  margin-bottom: 8px;
}

.sp-footer__contact a {
  color: var(--orr-accent-primary, #C29A3D);
  text-decoration: none;
}

.sp-footer__meta a {
  color: inherit;
  text-decoration: none;
}

.sp-footer__meta a:hover {
  color: var(--orr-text-secondary, #a0a0b0);
}

.sp-footer__separator {
  margin: 0 6px;
}

/* ── Responsive ── */

@media (max-width: 767px) {
  .sp-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .sp-header__nav {
    gap: 16px;
    font-size: 13px;
  }

  .sp-body {
    flex-direction: column;
  }

  .sp-sidebar {
    width: 100%;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--orr-border-subtle, rgba(82, 49, 38, 0.06));
  }

  .sp-sidebar__section {
    margin-bottom: 12px;
  }

  .sp-sidebar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sp-sidebar__list a {
    padding: 4px 10px;
    font-size: 12px;
  }

  .sp-main {
    padding: 24px 16px 40px;
  }

  .sp-main h1 {
    font-size: 22px;
  }

  .sp-main h2 {
    font-size: 18px;
  }

  .sp-product {
    padding: 16px;
  }
}
