/* ==========================================================================
   GLOBAL STYLES & HEAVENLY BACKGROUND
   ========================================================================== */
:root {
  /* A soft, warm deep twilight */
  --space-midnight: #1A1829; 
  /* A dusty, muted plum for cards to blend gently with the background */
  --deep-nebula: #2D2743;    
  /* A soft amethyst */
  --cosmic-purple: #785A9E;  
  /* A warm, creamy off-white */
  --stardust-silver: #E2DEE8;
  /* An elegant champagne/rose-gold */
  --lunar-gold: #E8D09E;     
  /* A subtle, warm border tint matching the champagne/rose gold */
  --glass-border: rgba(232, 208, 158, 0.12); 
  /* Smooth animation timing */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-gold-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 5px rgba(232, 208, 158, 0.4));
  }
  50% { 
    filter: drop-shadow(0 0 15px rgba(232, 208, 158, 0.75));
  }
}

@font-face {
  font-family: 'Playfair';
  src: url('../assets/fonts/Playfair.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Playfair';
  src: url('../assets/fonts/Playfair-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  color: var(--stardust-silver);
  line-height: 1.6;
  background-color: var(--space-midnight);
  overflow-x: hidden;
}

body::before {
  content: "";               
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pawprintsmemorialbg.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: -1;
}

/* ==========================================================================
   LEGAL CONTAINER & GLASS LAYOUT
   ========================================================================== */
.legal-container {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.glass-card {
  max-width: 800px;
  width: 100%;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: var(--stardust-silver);
}

.glass-card h1 {
  color: var(--lunar-gold);
  text-align: center;
  font-family: 'Playfair', serif;
  font-size: 2.5rem;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  animation: pulse-gold-glow 4s infinite ease-in-out;
}

.last-updated {
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--lunar-gold);
  opacity: 0.75;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   LEGAL TEXT BLOCKS & TYPOGRAPHY
   ========================================================================== */
.legal-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  color: var(--stardust-silver);
  opacity: 0.95;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 35px;
}

.legal-section:last-of-type {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: 'Playfair', serif;
  font-size: 1.35rem;
  color: var(--lunar-gold);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.legal-section p {
  color: var(--stardust-silver);
  line-height: 1.6;
  font-size: 1rem;
  opacity: 0.9;
  text-align: justify;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.legal-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--stardust-silver);
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--lunar-gold);
  font-weight: bold;
  font-size: 1.2rem;
  top: -2px;
}

.legal-list li strong {
  color: var(--lunar-gold);
  font-weight: 600;
}

.support {
  color: var(--lunar-gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(232, 208, 158, 0.4);
  transition: var(--transition-smooth);
}

.support:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ==========================================================================
   MISSION COMMITMENTS GRID LAYOUT
   ========================================================================== */
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.commitment-item {
  background: rgba(120, 90, 158, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition-smooth);
}

.commitment-item:hover {
  background: rgba(120, 90, 158, 0.18);
  transform: translateY(-2px);
}

.commitment-item h3 {
  font-family: 'Playfair', serif;
  color: var(--lunar-gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.commitment-item p {
  font-size: 0.9rem !important;
  line-height: 1.5;
  text-align: left;
  opacity: 0.85;
}

/* ==========================================================================
   SITE FOOTER STYLES
   ========================================================================== */
.zen-footer {
  padding: 60px 20px 20px 20px;
  margin-top: 80px;
  border-top: 1px solid var(--glass-border);
  font-family: 'Montserrat', sans-serif;
  transition: background 2s ease, color 1s ease;
}

.zen-footer-content {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.zen-brand-block a {
  font-family: 'Playfair', serif;
  text-decoration: none;
  color: var(--lunar-gold);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  margin: 0;
}

.zen-subtitle {
  margin: 6px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.zen-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
}

.zen-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.zen-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.6rem;
  opacity: 0.5;
  border-top: 1px solid rgba(232, 208, 158, 0.05);
  padding-top: 20px;
}

/* --- THEME VARIATIONS --- */

/* 1. Morning State (Soft Amber Sunrise) */
.zen-morning {
  background: linear-gradient(to top, rgba(232, 208, 158, 0.25), rgba(26, 24, 41, 0.95));
  color: var(--stardust-silver);
}
.zen-morning h4 { color: var(--lunar-gold); }
.zen-morning .zen-links a { color: var(--stardust-silver); }
.zen-morning .zen-links a:hover { color: var(--lunar-gold); text-shadow: 0 0 5px rgba(232,208,158,0.3); }

/* 2. Twilight State (Your Deep Muted Plum Theme) */
.zen-twilight {
  background: linear-gradient(to top, var(--space-midnight), var(--deep-nebula));
  color: var(--stardust-silver);
}
.zen-twilight h4 { color: var(--lunar-gold); }
.zen-twilight .zen-links a { color: var(--stardust-silver); }
.zen-twilight .zen-links a:hover { color: var(--lunar-gold); }

/* 3. Night State (Deep Celestial Midnight & Glowing Text Aura) */
.zen-night {
  background: linear-gradient(to top, #0b0f19, var(--space-midnight));
  color: #a8a29e;
}
.zen-night h4 { 
  color: var(--lunar-gold); 
  text-shadow: 0 0 12px rgba(232, 208, 158, 0.6); 
}
.zen-night .zen-links a { color: var(--stardust-silver); }
.zen-night .zen-links a:hover { 
  color: var(--lunar-gold); 
  text-shadow: 0 0 8px var(--lunar-gold); 
}

.zen-time-alert {
    margin-top: 8px;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.9;
}

/* ==========================================================================
   FULLY RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Medium & Small Tablets (Under 768px) */
@media screen and (max-width: 768px) {
  .legal-container {
    padding: 40px 15px;
  }

  .glass-card {
    padding: 35px 25px;
  }

  .glass-card h1 {
    font-size: 2.1rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .commitments-grid {
    grid-template-columns: 1fr; /* Stacks columns on tablets and mobile screens */
    gap: 15px;
  }

  .zen-footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .zen-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
