/* Shared header + footer for the static policy/terms pages.
   Mirrors the React Header/Footer components. Classes are prefixed with
   `site-` because the policy stylesheets already use .header/.footer/.container. */

/* Scoped to the chrome, not :root — the page stylesheets define their own
   --primary-pink/--white and must keep them. */
.site-header,
.site-footer {
  --primary-pink: #E91E8C;
  --dark-bg: #1a1a1a;
  --text-dark: #333;
  --white: #ffffff;
}

.site-header a,
.site-footer a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Header ---------- */

.site-header {
  background-color: var(--white);
  padding: 16px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.site-logo {
  position: absolute;
  left: 40px;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.site-logo-image {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: height 0.3s ease;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.site-nav a,
.site-support-link,
.site-support-link-mobile {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s;
}

.site-nav a:hover,
.site-support-link:hover,
.site-support-link-mobile:hover {
  color: var(--primary-pink);
}

.site-header-actions {
  position: absolute;
  right: 40px;
  display: flex;
  align-items: center;
}

.site-support-link-mobile {
  display: none;
}

.site-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.site-hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.site-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.site-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.site-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 968px) {
  .site-header-container { padding: 0 30px; }
  .site-logo { left: 30px; }
  .site-header-actions { right: 30px; }
  .site-logo-image { height: 50px; max-width: 120px; }
  .site-nav { gap: 24px; }
  .site-nav a,
  .site-support-link { font-size: 14px; }
}

@media (max-width: 768px) {
  .site-header-container {
    padding: 0 20px;
    justify-content: space-between;
  }

  .site-logo { position: static; }
  .site-logo-image { height: 45px; max-width: 100px; }

  .site-hamburger {
    order: 2;
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 80px 30px 30px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .site-nav.active { right: 0; }

  .site-nav a {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .site-nav a:last-child { border-bottom: none; }

  .site-support-link-mobile { display: block; }
  .site-header-actions { display: none; }
}

@media (max-width: 480px) {
  .site-header-container { padding: 0 15px; }
  .site-logo-image { height: 40px; max-width: 90px; }
  .site-nav { width: 80%; padding: 70px 20px 20px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 60px 20px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

.site-footer-content {
  max-width: 1400px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}

.site-footer-brand { grid-column: span 1; }

.site-footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.site-footer-logo-image {
  height: 90px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: height 0.3s ease;
}

.site-footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.site-footer-section p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}

.site-footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-section ul li { margin-bottom: 12px; }

.site-footer-section ul li a {
  font-size: 14px;
  color: #ccc;
  transition: color 0.3s;
}

.site-footer-section ul li a:hover { color: var(--primary-pink); }

.site-social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.site-social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--white);
}

.site-social-links a svg {
  width: 20px;
  height: 20px;
}

.site-social-links a:hover {
  background-color: var(--primary-pink);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.4);
}

.site-app-download p { margin-bottom: 12px; }

.site-app-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.site-app-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.site-app-badge svg {
  width: 20px;
  height: 20px;
}

.site-app-badge:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.site-footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.site-footer-bottom p {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.site-footer-bottom .site-disclaimer {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
  margin: 12px auto 0;
}

@media (max-width: 1024px) {
  .site-footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .site-footer-brand { grid-column: span 2; }
  .site-footer-logo-image { height: 80px; max-width: 180px; }
}

@media (max-width: 768px) {
  .site-footer { padding: 40px 20px 20px; }

  .site-footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer-brand {
    grid-column: span 1;
    text-align: center;
  }

  .site-footer-logo { justify-content: center; }
  .site-footer-logo-image { height: 70px; max-width: 150px; }
  .site-social-links { justify-content: center; }

  .site-app-download {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer-section { text-align: center; }

  .site-footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .site-footer { padding: 30px 15px 15px; }
  .site-footer-content { gap: 24px; }
  .site-footer-logo-image { height: 60px; max-width: 120px; }
  .site-footer-section h4 { font-size: 16px; }
  .site-footer-section p { font-size: 13px; }
  .site-social-links a { width: 38px; height: 38px; }
  .site-social-links a svg { width: 18px; height: 18px; }
  .site-app-badge { font-size: 13px; padding: 6px 12px; }
  .site-footer-bottom .site-disclaimer { font-size: 11px; }
}
