/* ============================================
   PRIVACY POLICY PAGE STYLES
   Note: Colors are injected via banner.js from colors.json
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap');

:root {
  /* Layer positions */
  --star-pos: fixed;
  --star-top: 0;
  --star-right: 0;
  --star-bot: 0;
  --star-left: 0;
  --star-z: -1;
  --banner-z: 1000;
  --banner-bg: var(--DARK);
  --banner-color: #fff;

  /* Banner & nav */
  --banner-max: 1000px;
  --banner-pad-y: .75rem;
  --banner-pad-x: 1rem;
  --nav-gap: 1.5rem;
  --nav-pad-y: .5rem;
  --nav-pad-x: .75rem;

  /* Layout spacing */
  --layout-top: 4rem;

  /* Fade distance */
  --fade-y: 20px;

  /* Hero block */
  --hero-pad-top: 0;
  --hero-pad-x: 1rem;
  --hero-pad-bot: 0.5rem;
  --hero-pre-margin: .5rem;
  --hero-title-size: 2.75rem;
  --hero-letter: .4rem;
  --hero-color: var(--BLUE);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Exo 2', sans-serif;
  background: transparent;
  color: var(--WHITE);
  line-height: 1.6;
}

/* Fade animation */
.fade-slide-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-slide-in.show {
  opacity: 1;
  transform: translateY(0);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

main.layout-padding {
  padding-top: var(--layout-top) !important;
}

/* Starfield & banner layers */
#starfieldCanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

#banner {
  position: var(--star-pos);
  top: var(--star-top);
  right: var(--star-right);
  bottom: var(--star-bot);
  left: var(--star-left);
  z-index: var(--star-z);
  pointer-events: none;
}

#banner .site-banner {
  position: sticky;
  top: 0;
  z-index: var(--banner-z);
  pointer-events: auto;
}

/* Hero */
.hero {
  text-align: center;
  padding: var(--hero-pad-top) var(--hero-pad-x) var(--hero-pad-bot);
  margin-bottom: 0.5rem;
  background: transparent;
}

.hero-pretitle {
  color: #666;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--hero-pre-margin);
}

.hero-title {
  position: relative;
  margin: .25rem 0 1rem;
  color: var(--hero-color);
  font-size: var(--hero-title-size);
  font-weight: 700;
  letter-spacing: var(--hero-letter);
  text-shadow: 0 0 30px rgba(141, 186, 197, 0.4);
}

.hero-subtitle {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
  color: #999;
  line-height: 1.6;
}

.effective-date {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* Policy Grid */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Policy Cards */
.policy-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.policy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--BLUE), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.policy-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(141, 186, 197, 0.2);
  transform: translateY(-2px);
}

.policy-card:hover::before {
  opacity: 0.5;
}

.policy-card-wide {
  grid-column: 1 / -1;
}

.policy-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.policy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(141, 186, 197, 0.1);
  border: 1px solid rgba(141, 186, 197, 0.25);
  border-radius: 10px;
  flex-shrink: 0;
}

.policy-icon svg {
  width: 18px;
  height: 18px;
  color: var(--BLUE);
}

.policy-card h2 {
  margin: 0;
  color: var(--WHITE);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.policy-card p {
  color: #aaa;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.policy-card p + p {
  margin-top: 0.75rem;
}

.policy-card a {
  color: var(--BLUE);
  text-decoration: none;
  border-bottom: 1px solid rgba(141, 186, 197, 0.3);
  transition: border-color 0.2s ease;
}

.policy-card a:hover {
  border-color: var(--BLUE);
}

.policy-card strong {
  color: var(--WHITE);
}

/* Policy Lists */
.policy-list {
  margin: 0.75rem 0 0 0;
  padding-left: 1.25rem;
  list-style: none;
}

.policy-list li {
  position: relative;
  color: #aaa;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.policy-list li::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--BLUE);
  border-radius: 50%;
  opacity: 0.6;
}

.policy-list li:last-child {
  margin-bottom: 0;
}

.policy-note {
  padding: 0.75rem 1rem;
  background: rgba(141, 186, 197, 0.06);
  border-left: 2px solid var(--BLUE);
  border-radius: 0 6px 6px 0;
  margin-top: 1rem !important;
  font-size: 0.88rem !important;
}

/* Contact Info */
.contact-info {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.contact-info p {
  margin: 0.25rem 0;
}

/* Footer */
.policy-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.footer-link {
  display: inline-block;
  color: var(--BLUE);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(141, 186, 197, 0.3);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.footer-link:hover {
  background: rgba(141, 186, 197, 0.1);
  border-color: var(--BLUE);
}

.policy-footer .copyright {
  color: #555;
  font-size: 0.85rem;
  margin-top: 1.25rem;
}

/* Responsive */
@media (max-width: 800px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.2rem;
  }
  
  main {
    padding: 1rem 1rem 3rem;
    margin: 0.5rem;
    border-radius: 12px;
  }
  
  .policy-card {
    padding: 1.25rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .policy-card h2 {
    font-size: 1rem;
  }
  
  .policy-icon {
    width: 32px;
    height: 32px;
  }
  
  .policy-icon svg {
    width: 16px;
    height: 16px;
  }
}

