/* ==========================================================================
   CoordinateWith.Me - Legal & Informational Pages Stylesheet
   Scope: Terms of Service, Privacy Policy, How It Works
   ========================================================================== */

/* Top Page Header Flex Alignment */
.legal-header-flex {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.legal-page-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .legal-page-title {
    font-size: 1.75rem;
  }
}

.legal-popover-header {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-popover-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* Main Content Card Container */
.legal-card {
  padding: 2.5rem 2rem;
  background: #ffffff !important;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 1.75rem 1.25rem !important;
    border-radius: 16px !important;
  }
}

/* Document Top Header Block */
.legal-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Circular Document Icon Badge */
.legal-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(211, 84, 0, 0.12);
  color: var(--color-primary);
  margin-bottom: 1rem;
  border: 1px solid rgba(211, 84, 0, 0.25);
}

.legal-icon-badge svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Document Title & Subtitle */
.legal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-text-primary);
  margin: 0 0 0.3rem 0;
}

@media (max-width: 768px) {
  .legal-title {
    font-size: 1.45rem;
  }
}

.legal-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Introductory Text */
.legal-intro-text {
  font-size: 1rem;
  color: var(--color-text-primary);
}

/* In-text Links */
.legal-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.legal-link:hover {
  text-decoration: underline;
}

.legal-link--underline {
  text-decoration: underline;
}

/* Section Headings */
.legal-section-title {
  color: var(--color-accent-taupe);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 768px) {
  .legal-section-title {
    font-size: 1.15rem;
  }
}

/* Section Header Vector SVGs */
.legal-section-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-accent-taupe);
  flex-shrink: 0;
}

/* Unordered Lists */
.legal-list {
  padding-left: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.legal-list-item {
  margin-bottom: 0.4rem;
}

/* Callout Notice Box */
.legal-callout-box {
  background: rgba(211, 84, 0, 0.06);
  border-left: 4px solid var(--color-primary);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 1.25rem 0;
}

.legal-callout-title {
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ==========================================================================
   How It Works - Interactive Comparison & Showcase Styles
   ========================================================================== */

/* Hero & Navigation */
.how-it-works-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem 0.5rem 1rem;
}

.how-it-works-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.how-it-works-back-btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.how-it-works-badge-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.how-it-works-title {
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
  font-size: 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

@media (max-width: 768px) {
  .how-it-works-title {
    font-size: 1.75rem;
  }
}

.how-it-works-subtitle {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Comparison Container & Panels */
.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem auto;
}

@media (max-width: 992px) {
  .comparison-wrapper {
    grid-template-columns: 1fr;
  }
}

.comparison-panel {
  padding: 2rem 1.75rem;
  position: relative;
}

@media (max-width: 768px) {
  .comparison-panel {
    padding: 1.5rem 1.25rem !important;
  }
}

.comparison-panel--solution {
  border: 1.5px solid rgba(39, 174, 96, 0.4) !important;
  background: rgba(255, 255, 255, 0.85) !important;
}

.comparison-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.comparison-header-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.comparison-chaos-icon {
  width: 1.4rem;
  height: 1.4rem;
  color: #E74C3C;
  flex-shrink: 0;
}

.comparison-chaos-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #E74C3C;
}

.comparison-chaos-badge {
  background: rgba(231, 76, 60, 0.15) !important;
  color: #E74C3C !important;
  font-size: 0.75rem !important;
  padding: 0.2rem 0.6rem !important;
}

.comparison-solution-icon {
  width: 1.4rem;
  height: 1.4rem;
  color: #27AE60;
  flex-shrink: 0;
}

.comparison-solution-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #27AE60;
}

.comparison-solution-badge {
  background: rgba(39, 174, 96, 0.15) !important;
  color: #27AE60 !important;
  font-size: 0.75rem !important;
  padding: 0.2rem 0.6rem !important;
}

.comparison-panel-desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

/* Stepper Progress Bar & Navigation */
.stepper-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.stepper-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #E74C3C, #D35400);
  transition: width 0.4s ease-out;
}

.stepper-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.3rem;
}

.stepper-dot {
  flex: 1;
  padding: 0.4rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.stepper-dot.active {
  background: rgba(231, 76, 60, 0.12);
  color: #E74C3C;
  border-color: rgba(231, 76, 60, 0.3);
}

/* Email Step Cards */
.email-step-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.8rem;
  opacity: 0.4;
  transform: scale(0.98);
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.email-step-item.active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(231, 76, 60, 0.4);
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.12);
}

.email-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.email-step-sender {
  color: var(--color-text-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.email-step-sender--reset {
  color: #E74C3C;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.email-step-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.email-step-badge--reset {
  font-size: 0.75rem;
  color: #E74C3C;
  font-weight: 700;
}

.email-step-body {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.02);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
}

.email-step-body--warning {
  border-left-color: #F39C12;
}

.email-step-body--orange {
  border-left-color: #E67E22;
}

.email-step-body--danger {
  border-left-color: #E74C3C;
}

.email-step-body--reset {
  color: #E74C3C;
  line-height: 1.4;
  background: rgba(231, 76, 60, 0.08);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border-left: 3px solid #E74C3C;
  font-weight: 600;
}

.email-step-reset-icon {
  width: 1rem;
  height: 1rem;
}

/* Solution Preview Box */
.solution-preview-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.25rem;
}

.solution-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.solution-preview-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.vote-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.vote-pill-win {
  background: rgba(39, 174, 96, 0.15);
  color: #27AE60;
}

.solution-winner-banner {
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.solution-winner-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #27AE60;
  margin-bottom: 0.2rem;
}

.solution-winner-datetime {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.solution-winner-icon {
  width: 1rem;
  height: 1rem;
  color: #27AE60;
  flex-shrink: 0;
}

.solution-winner-venue {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.solution-winner-subicon {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.solution-btn-disabled {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  justify-content: center;
  cursor: default;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
}

/* Solution Benefits List */
.solution-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text-primary);
}

.solution-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.solution-benefit-check {
  color: #27AE60;
  font-weight: 800;
}

/* Call to Action Card */
.how-it-works-cta {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

@media (max-width: 768px) {
  .how-it-works-cta {
    padding: 1.75rem 1.25rem !important;
  }
}

.how-it-works-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.how-it-works-cta-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.how-it-works-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.how-it-works-btn-cta {
  padding: 0.75rem 2rem !important;
}

.how-it-works-btn-cta--outline {
  padding: 0.75rem 1.8rem !important;
}
