/* Design Tokens & Theme Variables (Olive Green Theme) */
:root[data-theme="dark"] {
  --bg-primary: #0e170d; /* Very deep olive black */
  --bg-secondary: #162414; /* Deep forest green card bg */
  --bg-tertiary: #1f331d; /* Accent dark green */
  --bg-glass: rgba(22, 36, 20, 0.8);
  --border-color: #2b4528; /* Medium-dark olive border */
  --text-primary: #f2f7f1; /* Light cream/green */
  --text-secondary: #a6bda2; /* Soft greyish sage */
  --text-muted: #799475; /* Slate green */
  
  --accent-primary: #8cc677; /* Bright leaf/sage green */
  --accent-secondary: #5a9e43; /* Forest green */
  --accent-gradient: linear-gradient(135deg, #8cc677, #5a9e43);
  --accent-gradient-hover: linear-gradient(135deg, #a4db90, #6fb557);
  
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --header-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  
  --card-highlight-bg: rgba(140, 198, 119, 0.08);
  --card-highlight-border: #8cc677;
}

:root[data-theme="light"] {
  --bg-primary: #f5f9f4; /* Soft cream sage */
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9f2e7; /* Light sage green accent */
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: #cfdfcc; /* Soft green-grey border */
  --text-primary: #172615; /* Deep forest green */
  --text-secondary: #4a6644; /* Medium olive green */
  --text-muted: #738e6e;
  
  --accent-primary: #4d8c37; /* Forest green */
  --accent-secondary: #3b6b2a; /* Deep army green */
  --accent-gradient: linear-gradient(135deg, #4d8c37, #3b6b2a);
  --accent-gradient-hover: linear-gradient(135deg, #3b6b2a, #284a1c);
  
  --card-shadow: 0 10px 25px -5px rgba(74, 102, 68, 0.08), 0 8px 10px -6px rgba(74, 102, 68, 0.08);
  --header-shadow: 0 4px 20px -2px rgba(74, 102, 68, 0.05);
  
  --card-highlight-bg: rgba(77, 140, 55, 0.05);
  --card-highlight-border: #4d8c37;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

/* Logo Design */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
  filter: drop-shadow(0 2px 8px rgba(140, 198, 119, 0.3));
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-sub {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* App Header Styling */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--header-shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
  max-width: 800px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.control-btn:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-primary);
  transform: translateY(-2px);
}

.control-btn svg {
  width: 18px;
  height: 18px;
}

/* Hero Section */
.hero-section {
  padding: 130px 20px 50px;
  background: radial-gradient(circle at top right, rgba(140, 198, 119, 0.08), transparent 45%),
              radial-gradient(circle at top left, rgba(90, 158, 67, 0.06), transparent 40%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--card-highlight-bg);
  color: var(--accent-primary);
  border: 1px solid var(--card-highlight-border);
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  animation: pulse 3s infinite;
}

.hero-section h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

.meta-info {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.meta-icon {
  width: 16px;
  height: 16px;
}

/* Main Container Layout */
.main-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Content Area */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Policy Section Base */
.policy-section {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 40px;
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.policy-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.policy-section p.lead-text {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Info Cards Grid (Section 1) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.info-card.highlight-card {
  background-color: var(--card-highlight-bg);
  border-color: var(--card-highlight-border);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.card-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.info-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

.info-card ul li {
  position: relative;
  padding-left: 18px;
}

.info-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

/* List Rows Layout (Section 2) */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item-row {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: transform 0.2s;
}

.list-item-row:hover {
  transform: translateX(5px);
  border-color: var(--accent-primary);
}

.list-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: #ffffff;
  flex-shrink: 0;
}

.list-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.list-content p {
  font-size: 0.925rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Sharing Items (Section 3) */
.sharing-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.share-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.share-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.share-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.styled-list {
  list-style: none;
  margin: 15px 0 0 10px;
}

.styled-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.styled-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.styled-list.spacing li {
  margin-bottom: 12px;
}

/* Security Banner (Section 4) */
.security-banner {
  display: flex;
  gap: 20px;
  background: var(--card-highlight-bg);
  border: 1px solid var(--card-highlight-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.security-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(140, 198, 119, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-banner-icon svg {
  width: 20px;
  height: 20px;
}

.security-banner-text p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.warning-note {
  font-size: 0.9rem;
  border-left: 3px solid #8cc677;
  padding-left: 15px;
  color: var(--text-secondary);
}

/* Rights Grid (Section 6) */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.right-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.right-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-primary);
}

.right-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.helper-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Third Party List (Section 8) */
.third-party-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.tp-service {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px 20px;
}

.tp-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  min-width: 80px;
  text-align: center;
}

.tp-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tp-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Contact Card (Section 11) */
.contact-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--card-shadow);
}

.contact-detail {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  font-size: 0.95rem;
}

.contact-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-detail strong {
  color: var(--text-secondary);
}

.contact-detail a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* App Footer */
footer.app-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 30px 20px;
  margin-top: 50px;
  text-align: center;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(140, 198, 119, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(140, 198, 119, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(140, 198, 119, 0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-section h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 0 15px;
  }
  
  .cards-grid, .rights-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .list-item-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* PRINT STYLES */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt !important;
  }
  
  .app-header, .hero-section .badge, .control-btn, .app-footer, .footer-links {
    display: none !important;
  }
  
  .hero-section {
    padding: 20px 0 !important;
    border-bottom: 2px solid #000 !important;
    background: none !important;
    text-align: left !important;
  }
  
  .hero-section h1 {
    -webkit-text-fill-color: initial !important;
    color: black !important;
    font-size: 24pt !important;
    margin-bottom: 5px !important;
  }
  
  .main-container {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .content-area {
    gap: 30px !important;
  }
  
  .policy-section {
    page-break-inside: avoid;
    border-bottom: 1px solid #ccc !important;
    padding-bottom: 20px !important;
  }
  
  .info-card, .list-item-row, .share-box, .security-banner, .right-card, .tp-service, .contact-card {
    background: white !important;
    border: 1px solid #999 !important;
    box-shadow: none !important;
    color: black !important;
    page-break-inside: avoid;
  }
  
  .info-card.highlight-card {
    border: 2px solid black !important;
  }
  
  .info-card ul li::before {
    background-color: black !important;
  }
  
  .list-badge {
    background: none !important;
    color: black !important;
    border: 1px solid black !important;
  }
  
  .contact-detail {
    border-bottom: 1px dashed #999 !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}
