/* ===== LEGAL PAGES SHARED STYLES ===== */

.legal-page {
  min-height: 100vh;
  background: var(--bg-gradient);
  position: relative;
}

/* ——— BACK HEADER ——— */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,248,239,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(232,224,212,0.5);
  padding: 16px 0;
}

.legal-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--mint-green);
  border: 1px solid var(--soft-line);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--deep-green);
  flex-shrink: 0;
}

.legal-back-btn:hover {
  background: var(--leaf-green);
  color: white;
  border-color: var(--leaf-green);
  transform: translateX(-2px);
}

.legal-back-btn svg {
  width: 20px;
  height: 20px;
}

.legal-page-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ——— HERO BANNER ——— */
.legal-hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--mint-green);
  opacity: 0.6;
  filter: blur(80px);
  pointer-events: none;
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: #F2EEDC;
  opacity: 0.5;
  filter: blur(80px);
  pointer-events: none;
}

.legal-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.legal-hero-icon.privacy { background: rgba(63,129,87,0.1); }
.legal-hero-icon.terms { background: rgba(130,120,216,0.1); }
.legal-hero-icon.contact { background: rgba(255,129,114,0.1); }

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--deep-green);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.legal-hero .legal-updated {
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

/* ——— CONTENT SECTIONS ——— */
.legal-content {
  padding: 0 0 80px;
}

.legal-sections {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-section {
  background: var(--card-gradient);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232,224,212,0.6);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: all var(--transition-md);
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.legal-section:nth-child(1) { animation-delay: 0.05s; }
.legal-section:nth-child(2) { animation-delay: 0.10s; }
.legal-section:nth-child(3) { animation-delay: 0.15s; }
.legal-section:nth-child(4) { animation-delay: 0.20s; }
.legal-section:nth-child(5) { animation-delay: 0.25s; }
.legal-section:nth-child(6) { animation-delay: 0.30s; }

.legal-section:hover {
  border-color: rgba(63,129,87,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.legal-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--deep-green);
  color: white;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.legal-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-section-body .info-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-weight: 500;
  color: var(--text-primary);
}

.legal-section-body .info-line a {
  color: var(--leaf-green);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.legal-section-body .info-line a:hover {
  color: var(--deep-green);
}

/* ——— CONTACT PAGE SPECIFIC ——— */
.contact-cards {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--card-gradient);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232,224,212,0.6);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-md);
  cursor: pointer;
  text-decoration: none;
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.contact-card:nth-child(1) { animation-delay: 0.05s; }
.contact-card:nth-child(2) { animation-delay: 0.12s; }
.contact-card:nth-child(3) { animation-delay: 0.19s; }

.contact-card:hover {
  border-color: var(--leaf-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px) translateX(4px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1);
}

.contact-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-card-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-card-arrow {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-green);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.contact-card:hover .contact-card-arrow {
  background: var(--leaf-green);
  color: white;
  transform: translateX(4px);
}

.contact-card-arrow svg {
  width: 18px;
  height: 18px;
}

.contact-note {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 20px 24px;
  background: rgba(63,129,87,0.05);
  border: 1px solid rgba(63,129,87,0.12);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
  animation: fadeInUp 0.6s var(--ease-out) 0.26s both;
}

/* ——— QUICK NAV (bottom links) ——— */
.legal-quick-nav {
  max-width: 760px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.legal-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: white;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-md);
  transition: all var(--transition-md);
  text-decoration: none;
}

.legal-quick-link:hover {
  border-color: var(--leaf-green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.legal-quick-link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.legal-quick-link-text {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.legal-quick-link-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ——— LEGAL FOOTER ——— */
.legal-footer {
  padding: 32px 0;
  border-top: 1px solid var(--soft-line);
  text-align: center;
}

.legal-footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legal-footer .footer-company {
  font-weight: 600;
  color: var(--deep-green);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
  .legal-section {
    padding: 24px 20px;
  }

  .contact-card {
    padding: 22px 20px;
  }

  .legal-hero {
    padding: 48px 0 32px;
  }

  .legal-quick-nav {
    grid-template-columns: 1fr;
  }
}
