/* ==========================================================================
   Infoteck Premium Pages - Legal & Information Pages Design System
   Optimized for High Readability, Glassmorphic Aesthetics & Dark/Light Mode
   ========================================================================== */

.page-wrapper-premium {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
}

/* Page Hero Card */
.page-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.75rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal);
}

.page-hero-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.25;
  transition: opacity var(--transition-normal);
}

.page-hero-card.color-cyan::before {
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
}

.page-hero-card.color-emerald::before {
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.page-hero-card.color-indigo::before {
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
}

.page-hero-card.color-amber::before {
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
}

.page-hero-card.color-purple::before {
  background: radial-gradient(circle, #c084fc 0%, transparent 70%);
}

.page-hero-breadcrumbs {
  margin-bottom: 1.25rem;
}

.page-badge-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.page-badge-pill.pill-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.page-badge-pill.pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.page-badge-pill.pill-indigo {
  background: rgba(129, 140, 248, 0.12);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.page-badge-pill.pill-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.page-badge-pill.pill-purple {
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.page-compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.page-hero-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Page Meta Information Bar */
.page-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.page-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-meta-left .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page-meta-left .meta-sep {
  opacity: 0.4;
}

.page-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-page-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-page-action:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-primary);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

/* Page Card Surface & Content Area */
.page-card-surface {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.page-content-rich {
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.page-content-rich p {
  margin-bottom: 1.4rem;
}

.page-content-rich p.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.75;
}

.page-content-rich h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.015em;
}

.page-content-rich h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.25rem;
  background: var(--accent-gradient);
  border-radius: 4px;
}

.page-content-rich h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.page-content-rich ul,
.page-content-rich ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-content-rich li {
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

.page-content-rich strong {
  color: var(--text-primary);
}

.page-content-rich a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.page-content-rich a:hover {
  color: var(--accent-secondary);
}

/* TL;DR Highlight Card */
.tldr-card {
  position: relative;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(129, 140, 248, 0.05) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.85rem;
  margin-bottom: 2.5rem;
}

.tldr-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.tldr-card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 0;
}

.tldr-card-body p:last-child {
  margin-bottom: 0;
}

.tldr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tldr-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.tldr-item-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.tldr-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.tldr-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Quick Jump Navigation / Table of Contents */
.policy-toc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
}

.policy-toc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.policy-toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 1.25rem;
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.policy-toc-list li {
  margin-bottom: 0 !important;
}

.policy-toc-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none !important;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.policy-toc-list a:hover {
  color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(3px);
}

.policy-toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.12);
  border-radius: 4px;
}

/* Callout Alert Boxes */
.callout-box {
  display: flex;
  gap: 1rem;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.callout-box.info {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.25);
}

.callout-box.success {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}

.callout-box.warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.25);
}

.callout-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.callout-content {
  font-size: 0.925rem;
  line-height: 1.6;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Modern Policy Table */
.modern-policy-table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.modern-policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  text-align: left;
}

.modern-policy-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.modern-policy-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
}

.modern-policy-table tr:last-child td {
  border-bottom: none;
}

.modern-policy-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Opt-out Buttons Group */
.optout-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.btn-optout-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all var(--transition-fast);
}

.btn-optout-action:hover {
  background: var(--accent-primary);
  color: #0b0f19;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

/* Page Help Ribbon */
.page-help-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-top: 1rem;
}

.help-ribbon-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.help-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.help-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.help-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

.btn-ribbon-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent-gradient);
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.925rem;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-ribbon-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
  color: #000;
}

/* ==========================================================================
   Contact Page Dedicated Styles
   ========================================================================== */

.section-title-sm {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.contact-channels-section {
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.contact-channel-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.contact-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-channel-card.card-cyan:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.contact-channel-card.card-indigo:hover {
  border-color: rgba(129, 140, 248, 0.5);
}

.contact-channel-card.card-emerald:hover {
  border-color: rgba(16, 185, 129, 0.5);
}

.contact-channel-card.card-amber:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.channel-icon-wrap.icon-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.channel-icon-wrap.icon-indigo {
  background: rgba(129, 140, 248, 0.12);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.channel-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.channel-icon-wrap.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.channel-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.channel-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.channel-desc {
  font-size: 0.885rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1 0 auto;
}

.channel-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.channel-email-box .email-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-email:hover {
  background: var(--accent-primary);
  color: #0b0f19;
}

.channel-link {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.channel-link:hover {
  transform: translateX(3px);
  color: var(--accent-secondary);
}

.channel-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-top: auto;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Contact Interactive 2 Columns */
.contact-interactive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 860px) {
  .contact-interactive-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.contact-form-container {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-header-wrap {
  margin-bottom: 1.75rem;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.form-subtitle {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.contact-form-modern .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .contact-form-modern .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-modern .form-field {
  margin-bottom: 1.35rem;
}

.contact-form-modern label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.contact-form-modern label .required {
  color: #ef4444;
}

.contact-form-modern input[type="text"],
.contact-form-modern input[type="email"],
.contact-form-modern select,
.contact-form-modern textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
  outline: none;
}

.contact-form-modern select {
  cursor: pointer;
}

.contact-form-modern select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.contact-form-modern input:focus,
.contact-form-modern select:focus,
.contact-form-modern textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.contact-form-modern .form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-submit-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  background: var(--accent-gradient);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
  transition: all var(--transition-fast);
}

.btn-submit-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.5);
  color: #000;
}

.privacy-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
}

.contact-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.contact-alert .alert-text strong {
  display: block;
  font-size: 0.95rem;
  color: #10b981;
  margin-bottom: 0.25rem;
}

.contact-alert .alert-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.45;
}

/* Contribution Guide Card */
.contribution-guide-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.contrib-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  align-self: flex-start;
}

.contrib-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contrib-intro {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.contrib-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex: 1 0 auto;
}

.contrib-step {
  display: flex;
  gap: 1rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.step-content code {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.825rem;
}

.contrib-email-action {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.contrib-email-action span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contrib-email-link {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #818cf8;
  text-decoration: none;
}

.contrib-email-link:hover {
  text-decoration: underline;
  color: #a5b4fc;
}

/* FAQ Accordion */
.contact-faq-section {
  margin-bottom: 2rem;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(56, 189, 248, 0.35);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  transition: transform var(--transition-normal);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer code {
  background: rgba(255, 255, 255, 0.06);
  color: #38bdf8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Light Theme Overrides */
[data-theme="light"] .page-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .page-card-surface {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .page-help-ribbon {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-channel-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-channel-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .channel-email-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .contact-form-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contribution-guide-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-color: rgba(129, 140, 248, 0.25);
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tldr-card {
  background: #f0fdf4;
  border-color: #86efac;
}

[data-theme="light"] .tldr-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .policy-toc-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .modern-policy-table th {
  background: #f1f5f9;
}

@media (max-width: 640px) {
  .page-hero-card {
    padding: 1.75rem 1.25rem;
  }
  .page-card-surface {
    padding: 1.75rem 1.25rem;
  }
  .page-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-form-container,
  .contribution-guide-card {
    padding: 1.75rem 1.25rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mermaid Diagrams High-Tech Styling
   ========================================================================== */
.mermaid {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 2.25rem auto !important;
  padding: 1.75rem 1.25rem !important;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow-x: auto !important;
  max-width: 100% !important;
  transition: all 0.3s ease;
}

.mermaid:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .mermaid,
.dark-theme .mermaid,
body.dark-mode .mermaid {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .mermaid:hover,
.dark-theme .mermaid:hover,
body.dark-mode .mermaid:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}

.mermaid svg {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   Minimalist Contact Page Styling
   ========================================================================== */
.page-contact-minimal-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.contact-breadcrumbs-wrap {
  margin-bottom: 1.5rem;
}

.contact-minimal-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.contact-minimal-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
}

.contact-minimal-icon-glow {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.25);
  transition: transform 0.3s ease;
}

.contact-minimal-card:hover .contact-minimal-icon-glow {
  transform: scale(1.06);
}

.contact-minimal-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.contact-minimal-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.contact-email-badge {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-email-badge:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.contact-email-link {
  font-family: 'Fira Code', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.contact-actions-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.btn-contact-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-send-mail {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.btn-send-mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.55);
  color: #ffffff !important;
}

.btn-copy-mail {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-copy-mail:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
}

.contact-server-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 95%;
  line-height: 1.4;
}

[data-theme="light"] .contact-minimal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .contact-minimal-card::before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}

[data-theme="light"] .contact-email-badge {
  background: #f8fafc;
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-email-link {
  color: #0284c7;
}

[data-theme="light"] .btn-copy-mail {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .btn-copy-mail:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .contact-server-notice {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

@media (max-width: 640px) {
  .contact-minimal-card {
    padding: 2.25rem 1.25rem;
  }
  .contact-minimal-title {
    font-size: 1.75rem;
  }
  .contact-email-link {
    font-size: 1.1rem;
  }
  .contact-actions-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-contact-action {
    justify-content: center;
  }
}

