/* ==========================================================================
   LEGAL PAGE STYLE SHEET
   ========================================================================== */

:root {
  /* Colors identical to main page design system */
  --bg-dark: #070a13;
  --bg-darker: #04050a;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.65);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(56, 189, 248, 0.25);
  
  --flutter-light: #38bdf8;
  --firebase-orange: #f57c00;
  --firebase-amber: #ffca28;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & General Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background glows for a premium aesthetic */
/* Background glow elements removed for a flatter UI */
.bg-glow {
  display: none !important;
}

.bg-glow-blue,
.bg-glow-orange { display: none !important; }

/* Container */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Top Navbar styling */
header {
  width: 100%;
  background: rgba(7, 10, 19, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 960px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.btn-back:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: rgba(56, 189, 248, 0.05);
  transform: translateX(-3px);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 26px;
  width: auto;
  object-fit: contain;
}

/* Main Content Area */
.legal-main {
  flex-grow: 1;
  padding: 3rem 0;
}

/* Glassmorphic card containing the document */
.legal-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 3.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.legal-doc-header {
  margin-bottom: 2.5rem;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.text-gradient-mixed {
  background: linear-gradient(135deg, var(--flutter-light) 0%, var(--firebase-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-date {
  font-size: 0.95rem;
  color: var(--firebase-amber);
  font-weight: 600;
}

.legal-intro p {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.legal-separator {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--border-color), rgba(255, 255, 255, 0.15), var(--border-color));
  margin: 2.5rem 0;
}

/* Document Sections & Headers */
.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

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

/* List elements styling */
.legal-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Custom bullet shape for list items */
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--flutter-light);
}

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

/* Custom link styling inside the article text */
.legal-section a {
  color: var(--flutter-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-smooth);
}

.legal-section a:hover {
  color: var(--firebase-amber);
}

/* Code highlight */
.legal-code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  color: var(--text-primary);
}

.legal-code a {
  text-decoration: none;
}

/* Footer Section styling */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .legal-main {
    padding: 1.5rem 0;
  }
  
  .legal-card {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
  }
  
  .legal-title {
    font-size: 1.65rem;
  }
  
  .legal-section h2 {
    font-size: 1.15rem;
  }
  
  .legal-list li {
    font-size: 0.9rem;
  }
  
  .bg-glow {
    width: 300px;
    height: 300px;
  }
}
