/* ========================================
   LEGAL PAGES STYLES (Contact, Privacy, Terms)
   Add this to your main CSS file
   ======================================== */

/* Page Container */
.legal-page-container {
  min-height: 100vh;
  background: var(--bg-primary);
  padding-bottom: 4rem;
}

/* Header Section */
.legal-header {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  border-bottom: 1px solid var(--border-primary);
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.legal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    var(--accent-primary-transparent),
    transparent 70%
  );
  pointer-events: none;
}

.legal-header-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed);
}

.back-link:hover {
  color: var(--accent-primary);
  transform: translateX(-4px);
}

.back-link svg {
  transition: transform var(--transition-speed);
}

.back-link:hover svg {
  transform: translateX(-2px);
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.legal-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Content Section */
.legal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: all var(--transition-speed);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px var(--shadow-strong-color);
  border-color: var(--accent-border);
}

/* Section Titles */
.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 968px) {
  .contact-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-label .required {
  color: var(--color-danger);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  transition: all var(--transition-speed);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-transparent);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--accent-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-button:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.form-button:active {
  transform: translateY(0);
}

/* Contact Info Cards */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition-speed);
}

.info-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-primary-transparent);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.info-card-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-card-content a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.info-card-content a:hover {
  color: var(--accent-primary-hover);
  text-decoration: underline;
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-speed);
}

.faq-item:hover {
  border-color: var(--accent-border);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  transition: all var(--transition-speed);
}

.faq-question:hover {
  background: var(--element-bg-hover);
}

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

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Legal Content Sections */
.legal-section {
  margin-bottom: 3rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-primary);
}

.legal-section h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Highlight Box */
.highlight-box {
  background: var(--accent-primary-transparent);
  border-left: 4px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--text-primary);
}

/* Last Updated */
.last-updated {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.last-updated strong {
  color: var(--text-primary);
}

/* Table of Contents */
.table-of-contents {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.table-of-contents h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-of-contents a:hover {
  color: var(--accent-primary);
}

.table-of-contents a::before {
  content: "→";
  color: var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .legal-header {
    padding: 2rem 1rem;
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-subtitle {
    font-size: 1rem;
  }

  .legal-content {
    padding: 2rem 1rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Dark/Light Mode Smooth Transitions */
* {
  transition: background-color var(--transition-speed),
    color var(--transition-speed), border-color var(--transition-speed);
}

/* Footer Styles (Imported from main style.css) */
.app-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: var(--bg-primary); /* Match page background */
  border-top: 1px solid var(--border-primary);
}
