/* ============================================================
   STEDARA — Support Pages: Premium Design System
   Aesthetic: Clinical luxury. Deep navy + warm bronze.
   Philosophy: Medical seriousness meets editorial grace.
   ============================================================ */

/* ─── Root overrides for support pages ─────────────────────── */
.support-page--premium {
  --sp-navy:        #111b2e;
  --sp-navy-mid:    #1a2d4a;
  --sp-navy-soft:   #243550;
  --sp-cream:       #faf9f6;
  --sp-warm-white:  #fffffe;
  --sp-bronze:      #b8915a;
  --sp-bronze-dark: #8c6531; /* Added for higher contrast on light backgrounds */
  --sp-bronze-pale: rgba(184,145,90,0.15);
  --sp-bronze-glow: rgba(184,145,90,0.08);
  --sp-text-ink:    #0f1a2b;
  --sp-text-body:   #2c3645; /* Darkened from #3a4556 for contrast */
  --sp-text-muted:  #4f5a6a; /* Darkened for stronger body copy */
  --sp-text-ghost:  #707b8a; /* Darkened from #9aa5b4 */
  --sp-divider:     rgba(20,35,60,0.10);
  --sp-divider-warm: rgba(184,145,90,0.18);
  --sp-shadow-sm:   0 2px 8px rgba(10,20,40,0.06), 0 1px 2px rgba(10,20,40,0.04);
  --sp-shadow-md:   0 8px 32px rgba(10,20,40,0.08), 0 2px 8px rgba(10,20,40,0.04);
  --sp-shadow-lg:   0 20px 60px rgba(10,20,40,0.10), 0 4px 16px rgba(10,20,40,0.05);
  --sp-shadow-xl:   0 32px 80px rgba(10,20,40,0.14), 0 8px 24px rgba(10,20,40,0.06);
  --sp-radius-sm:   10px;
  --sp-radius-md:   16px;
  --sp-radius-lg:   24px;
  --sp-radius-xl:   32px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── Site card: elevated container ─────────────────────────── */
.support-page--premium .site-card {
  border-radius: 28px;
  box-shadow: var(--sp-shadow-xl);
  overflow: hidden;
}

/* ─── Band spacing: generous breathing room ─────────────────── */
.support-page--premium .band {
  padding: 80px 72px;
}

@media (max-width: 800px) {
  .support-page--premium .band { padding: 56px 32px; }
}

@media (max-width: 520px) {
  .support-page--premium .band { padding: 44px 20px; }
}

/* ─── Hero band ──────────────────────────────────────────────── */
.support-page--premium .band:first-of-type {
  background: #fffffe;
  position: relative;
  overflow: hidden;
}

.support-page--premium .band:first-of-type::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,145,90,0.055) 0%, transparent 65%);
  pointer-events: none;
}

.support-page--premium .band:first-of-type > * {
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1;
}

/* ─── Band color variants ────────────────────────────────────── */
.support-page--premium .band--white { background: #fffffe; }
.support-page--premium .band--tint  { background: #fffffe; }
.support-page--premium .band--slate { background: linear-gradient(160deg, #f3f6f9 0%, #eaeff5 100%); }

/* ─── INK BAND: premium dark restoration ────────────────────── */
.support-page--premium .band--ink {
  background: linear-gradient(150deg, #111b2e 0%, #1a2d4a 55%, #1d3460 100%);
  position: relative;
  overflow: hidden;
}

/* Atmospheric radial glow */
.support-page--premium .band--ink::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 360px;
  background: radial-gradient(ellipse, rgba(184,145,90,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Bottom fade */
.support-page--premium .band--ink::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(10,16,28,0.3));
  pointer-events: none;
}

.support-page--premium .band--ink > * {
  position: relative;
  z-index: 1;
}

/* ─── Scroll-reveal ──────────────────────────────────────────── */
.support-page--premium .band {
  animation: spReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.support-page--premium .band:nth-of-type(1) { animation-delay: 0.00s; }
.support-page--premium .band:nth-of-type(2) { animation-delay: 0.06s; }
.support-page--premium .band:nth-of-type(3) { animation-delay: 0.12s; }
.support-page--premium .band:nth-of-type(4) { animation-delay: 0.18s; }
.support-page--premium .band:nth-of-type(5) { animation-delay: 0.24s; }
.support-page--premium .band:nth-of-type(6) { animation-delay: 0.30s; }
.support-page--premium .band:nth-of-type(7) { animation-delay: 0.36s; }

@keyframes spReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Brand ──────────────────────────────────────────────────── */
.support-page--premium .brand-row {
  margin-bottom: 52px;
}

.support-page--premium .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* ─── Hero typography ────────────────────────────────────────── */
.support-page--premium .legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700; /* Increased from 600 */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-bronze-dark); /* Switched to higher contrast bronze */
  margin-bottom: 20px;
}

.support-page--premium .legal-kicker::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.8; /* Increased from 0.6 */
}

.support-page--premium .legal-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.022em;
  color: #0f1a2b;
  margin: 0 0 20px;
  max-width: 18ch;
}

.support-page--premium .legal-intro {
  font-size: 17px;
  line-height: 1.80;
  color: var(--sp-text-body);
  max-width: 54ch;
  font-weight: 400; /* Increased from 300 */
  margin-bottom: 0;
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.support-page--premium .support-breadcrumb {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--sp-text-ghost);
  display: flex;
  align-items: center;
  gap: 0;
}

.support-page--premium .support-breadcrumb a {
  color: var(--sp-text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(102,112,128,0.3);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.support-page--premium .support-breadcrumb a:hover {
  color: #0f1a2b;
  border-color: rgba(15,26,43,0.28);
}

/* ─── Hero note ──────────────────────────────────────────────── */
.support-page--premium .support-hero-note {
  margin-top: 36px;
  max-width: 58ch;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(184,145,90,0.055) 0%, rgba(184,145,90,0.025) 100%);
  border: 1px solid rgba(184,145,90,0.18);
  border-radius: 0 16px 16px 0;
  border-left: 2px solid rgba(184,145,90,0.45);
  position: relative;
}

.support-page--premium .support-hero-note p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.84;
  color: var(--sp-text-body);
  font-style: italic;
  font-weight: 400; /* Added weight */
}

/* ─── Summary grid ───────────────────────────────────────────── */
.support-page--premium .support-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  max-width: 960px;
}

.support-page--premium .support-summary-card {
  background: #fcfbf7;
  border: 1px solid rgba(20,35,60,0.08);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 28px rgba(15,24,40,0.08), 0 2px 8px rgba(15,24,40,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.support-page--premium .support-summary-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184,145,90,0.5), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.support-page--premium .support-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(10,20,40,0.09);
  border-color: rgba(184,145,90,0.22);
}

.support-page--premium .support-summary-card:hover::after {
  opacity: 1;
}

.support-page--premium .support-summary-card h3 {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700; /* Increased from 600 */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sp-bronze-dark); /* Switched to higher contrast bronze */
  margin: 0 0 10px;
}

.support-page--premium .support-summary-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--sp-text-body);
  font-weight: 400; /* Increased from 300 */
}

@media (max-width: 860px) {
  .support-page--premium .support-summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ─── Section cards (light background) ──────────────────────── */
.support-page--premium .legal-section-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 48px;
  background: #fcfbf7;
  border: 1px solid rgba(20,35,60,0.08);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15,24,40,0.08), 0 2px 8px rgba(15,24,40,0.05);
  position: relative;
  overflow: hidden;
}

/* Subtle top highlight */
.support-page--premium .legal-section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(184,145,90,0.25) 30%, rgba(184,145,90,0.25) 70%, transparent 100%);
}

@media (max-width: 740px) {
  .support-page--premium .legal-section-card {
    padding: 28px 24px;
    border-radius: 18px;
  }
}

/* ─── Section header ─────────────────────────────────────────── */
.support-page--premium .legal-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.support-page--premium .legal-section-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111b2e 0%, #1a2d4a 100%);
  color: rgba(255,255,255,1); /* Full white for contrast */
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(10,20,40,0.22);
  margin-top: 3px;
}

.support-page--premium .legal-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 500;
  line-height: 1.22;
  color: #0f1a2b;
  letter-spacing: -0.012em;
  max-width: 28ch;
}

/* ─── Section kicker ─────────────────────────────────────────── */
.support-page--premium .support-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 10.5px;
  font-weight: 700; /* Increased from 600 */
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--sp-bronze-dark); /* High contrast bronze */
}

.support-page--premium .support-kicker::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7; /* Increased from 0.55 */
}

/* ─── Body text ──────────────────────────────────────────────── */
.support-page--premium .legal-p {
  font-size: 16px;
  line-height: 1.84;
  color: var(--sp-text-body);
  font-weight: 400; /* Increased from 300 */
  max-width: 62ch;
  margin: 0 0 18px;
}

.support-page--premium .legal-p:last-child { margin-bottom: 0; }
.support-page--premium .legal-p strong { color: #0f1a2b; font-weight: 600; } /* Increased from 500 */

/* ─── Lists ──────────────────────────────────────────────────── */
.support-page--premium .legal-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.support-page--premium .legal-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid rgba(20,35,60,0.07);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--sp-text-body);
  font-weight: 400; /* Increased from 300 */
}

.support-page--premium .legal-list li:first-child { padding-top: 0; }
.support-page--premium .legal-list li:last-child { border-bottom: none; padding-bottom: 0; }

.support-page--premium .legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sp-bronze-dark); /* High contrast bronze */
  opacity: 0.85; /* Increased from 0.65 */
}

.support-page--premium .legal-list li:first-child::before { top: 9px; }

.support-page--premium .legal-list--loose li {
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ─── Dark section card (band--ink) ─────────────────────────── */
.support-page--premium .support-dark-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

/* Glass inner highlight */
.support-page--premium .support-dark-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Bronze accent line at top */
.support-page--premium .support-dark-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,145,90,0.45), transparent);
}

@media (max-width: 740px) {
  .support-page--premium .support-dark-card {
    padding: 28px 24px;
    border-radius: 18px;
  }
  .support-page--premium .support-dark-card::after {
    left: 24px;
    right: 24px;
  }
}

/* Dark card: section number */
.support-page--premium .support-dark-card .legal-section-num {
  background: rgba(184,145,90,0.22); /* Increased opacity */
  color: #e8c98a;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

/* Dark card: title */
.support-page--premium .support-dark-card .legal-section-title {
  color: rgba(255,255,255,1); /* Full white for definition */
}

/* Dark card: kicker */
.support-page--premium .support-dark-card .support-kicker {
  color: #e0bc84; /* Brighter, more opaque bronze for dark navy bg */
}

/* Dark card: body - FIXED CONTRAST */
.support-page--premium .support-dark-card .legal-p,
.support-page--premium .support-dark-card .legal-section-intro,
.support-page--premium .support-dark-card .legal-callout p {
  color: rgba(255, 255, 255, 0.95); /* Increased from 0.82 to 0.95 for readability */
  font-weight: 400; /* Increased weight */
}

.support-page--premium .support-dark-card .legal-p strong {
  color: rgba(255,255,255,1);
}

/* Dark card: list - FIXED CONTRAST */
.support-page--premium .support-dark-card .legal-list li {
  color: rgba(255, 255, 255, 0.92); /* Increased from 0.80 to 0.92 */
  border-bottom-color: rgba(255,255,255,0.15); /* Slightly clearer border */
  font-weight: 400;
}

.support-page--premium .support-dark-card .legal-list li::before {
  background: #e0bc84; /* Use the brighter bronze for dot contrast */
  opacity: 1;
}

/* ─── Next step / CTA block ──────────────────────────────────── */
.support-page--premium .support-next {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 52px;
  background: linear-gradient(135deg, #fffffe 0%, #faf9f6 100%);
  border: 1px solid rgba(20,35,60,0.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(10,20,40,0.10), 0 4px 16px rgba(10,20,40,0.05);
  position: relative;
  overflow: hidden;
}

.support-page--premium .support-next::before {
  content: '';
  position: absolute;
  bottom: -70px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,145,90,0.055) 0%, transparent 65%);
  pointer-events: none;
}

@media (max-width: 740px) {
  .support-page--premium .support-next {
    padding: 30px 26px;
    border-radius: 18px;
  }
}

.support-page--premium .support-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 700; /* Increased weight */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-bronze-dark);
}

.support-page--premium .support-note::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.support-page--premium .support-next .legal-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0f1a2b;
  margin: 0 0 18px;
  max-width: 22ch;
}

.support-page--premium .support-next .legal-p {
  max-width: 56ch;
  font-size: 15.5px;
  font-weight: 400; /* Added weight */
}

.support-page--premium .support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.support-page--premium .btn {
  font-size: 13.5px;
  font-weight: 600; /* Increased from 500 */
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border-radius: 999px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(10,20,40,0.18);
}

.support-page--premium .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10,20,40,0.22);
}

.support-page--premium .btn-secondary {
  background: transparent;
  color: #0f1a2b;
  border: 1px solid rgba(20,35,60,0.25); /* Darkened border for contrast */
  box-shadow: none;
}

.support-page--premium .btn-secondary:hover {
  background: rgba(20,35,60,0.04);
  border-color: rgba(20,35,60,0.35);
  box-shadow: 0 2px 8px rgba(10,20,40,0.06);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.support-page--premium .footer-disclaimer {
  background: #f0f2f5;
  border-top: 1px solid rgba(20,35,60,0.08);
  padding: 28px 48px;
}

.support-page--premium .footer-disclaimer p {
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--sp-text-muted); /* Darkened from ghost gray */
  max-width: 82ch;
}

.support-page--premium .footer-disclaimer strong {
  color: var(--sp-text-body);
  font-weight: 600; /* Increased from 500 */
}

.support-page--premium .site-footer {
  background: #111b2e;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.support-page--premium .footer-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4); /* Increased opacity from 0.3 */
}

.support-page--premium .footer-links {
  display: flex;
  gap: 24px;
}

.support-page--premium .footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.6); /* Increased from 0.38 for readability */
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.support-page--premium .footer-links a:hover {
  color: rgba(255,255,255,1);
}

/* ─── Misc utility ───────────────────────────────────────────── */
.support-page--premium .support-divider {
  border: none;
  border-top: 1px solid rgba(20,35,60,0.08);
  margin: 28px 0;
}

.support-page--premium .support-tight { max-width: 58ch; }
.support-page--premium .legal-p:last-child { margin-bottom: 0; }
.support-page--premium .support-next .legal-p { max-width: 56ch; }

.support-page--premium .band + .band .legal-section-card,
.support-page--premium .band + .band .support-dark-card,
.support-page--premium .band + .band .support-next {
  margin-top: 0;
}

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .support-page--premium .band:first-of-type > * {
    padding-left: 0;
    padding-right: 0;
  }

  .support-page--premium .support-summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support-page--premium .legal-section-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .support-page--premium .legal-list li {
    font-size: 14.5px;
  }

  .support-page--premium .support-actions {
    flex-direction: column;
  }

  .support-page--premium .support-actions .btn {
    width: 100%;
    text-align: center;
  }

  .support-page--premium .site-footer {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .support-page--premium .footer-disclaimer {
    padding: 24px 20px;
  }
}
