.app-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color, #e0e0e0);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-wrapper {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 12px;
}

[data-theme="dark"] .footer-wrapper {
  background: rgba(148, 163, 184, 0.14);
}

.footer-link {
  color: #4b6bfb;
  text-decoration: none;
  font-weight: 600;
}

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

.legal-help-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-help-inline-item {
  border: 1px solid var(--border-color, #e0e0e0);
  background: rgba(255, 255, 255, 0.24);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.legal-help-inline-item:hover {
  background: var(--bg-hover, #f5f5f5);
}

[data-theme="dark"] .legal-help-inline-item {
  background: rgba(148, 163, 184, 0.16);
}

.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.legal-modal-overlay[hidden] {
  display: none !important;
}

.legal-modal {
  width: min(640px, 92vw);
  max-height: 80vh;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color, #e0e0e0);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.32);
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px 20px;
}

[data-theme="dark"] .legal-modal {
  background: #0b1120;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.legal-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-modal-close {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.legal-modal-close:hover {
  color: var(--text-primary);
}

.legal-modal-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-y: auto;
  padding-right: 4px;
}

.legal-modal-body p {
  margin-top: 0;
  margin-bottom: 10px;
}

.legal-modal-body p:last-child {
  margin-bottom: 0;
}

/* Intro content styles */
.intro-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.intro-content h3 {
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.intro-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.intro-section {
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e0e0e0);
  min-height: 140px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-section h4 {
  color: var(--text-primary);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.intro-section h4 .intro-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-color, #4b6bfb);
}

.faq-toggle .intro-icon,
.faq-item h4 .intro-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-color, #4b6bfb);
}

.intro-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.intro-section li {
  margin: 0;
  line-height: 1.4;
  font-size: 13px;
}

/* FAQ Section Styles */
.faq-section {
  margin-top: 32px;
  text-align: center;
}

.faq-toggle {
  background: var(--bg-primary);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faq-toggle .faq-text {
  display: inline-flex;
  align-items: center;
}

.faq-toggle .chevron {
  transition: transform 0.2s ease;
}

.faq-toggle.expanded .chevron {
  transform: rotate(180deg);
}

.faq-toggle:hover {
  background: var(--bg-secondary, #f5f5f5);
  border-color: var(--border-hover, #ccc);
}

[data-theme="dark"] .faq-toggle:hover {
  background: var(--bg-secondary, #2a2a2a);
  border-color: var(--border-hover, #555);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 16px;
}

.faq-content.expanded {
  max-height: 2000px;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: left;
}

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

.faq-item h4 {
  color: var(--text-primary);
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .app-footer {
    padding: 14px 12px;
    gap: 10px;
  }

  .legal-help-inline {
    width: 100%;
  }

  .legal-modal {
    width: min(640px, calc(100vw - 24px));
    max-height: 88dvh;
    border-radius: 16px;
    padding: 14px 14px 16px;
  }

  .legal-modal-title {
    font-size: 16px;
  }

  .legal-modal-body {
    font-size: 13px;
    line-height: 1.55;
  }

  .intro-sections-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intro-section {
    padding: 14px;
    height: auto;
    min-height: 120px;
  }

  .intro-section h4 {
    font-size: 13px;
  }

  .intro-section li {
    font-size: 12px;
  }

  .faq-item {
    padding: 16px;
  }

  .faq-item h4 {
    font-size: 14px;
  }

  .faq-item p {
    font-size: 13px;
  }

  .faq-toggle {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .footer-wrapper {
    font-size: 13px;
    padding: 6px 10px;
  }

  .legal-help-inline-item {
    font-size: 12px;
    padding: 6px 10px;
  }

  .legal-modal {
    width: calc(100vw - 16px);
    padding: 12px 12px 14px;
  }
}
