/* Modern Design System & CSS Tokens */
:root {
  /* Fonts */
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* HSL Tailored Brand Colors (WhatsApp-inspired but highly premium) */
  --emerald-hue: 158;
  --emerald-50: hsl(var(--emerald-hue), 85%, 97%);
  --emerald-100: hsl(var(--emerald-hue), 80%, 92%);
  --emerald-500: hsl(var(--emerald-hue), 75%, 45%);
  --emerald-600: hsl(var(--emerald-hue), 80%, 38%);
  --emerald-700: hsl(var(--emerald-hue), 85%, 30%);
  
  /* Theme-adaptive Tokens using light-dark() fallback pattern */
  --bg-primary-light: #f8fafc;
  --bg-primary-dark: #090d16;
  --bg-primary: var(--bg-primary-light);
  
  --bg-card-light: rgba(255, 255, 255, 0.8);
  --bg-card-dark: rgba(17, 24, 39, 0.6);
  --bg-card: var(--bg-card-light);
  
  --text-primary-light: #0f172a;
  --text-primary-dark: #f8fafc;
  --text-primary: var(--text-primary-light);
  
  --text-secondary-light: #475569;
  --text-secondary-dark: #94a3b8;
  --text-secondary: var(--text-secondary-light);
  
  --border-color-light: rgba(226, 232, 240, 0.8);
  --border-color-dark: rgba(255, 255, 255, 0.08);
  --border-color: var(--border-color-light);

  --accent-color: var(--emerald-600);
  --shadow-color: rgba(0, 0, 0, 0.05);

  color-scheme: light dark;
}

/* Dark theme overrides for browsers without support for light-dark() or standard CSS light-dark */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: var(--bg-primary-dark);
    --bg-card: var(--bg-card-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --border-color: var(--border-color-dark);
    --accent-color: var(--emerald-500);
    --shadow-color: rgba(0, 0, 0, 0.3);
  }
}

/* Modern reset & core setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Decorative background gradients */
body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(0, 0, 0, 0) 75%);
  z-index: -1;
  pointer-events: none;
}

/* Responsive Containers */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
}

/* Header & Navigation styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  font-weight: 800;
  font-size: 20px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Beautiful Premium Theme Toggle Switch */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-color);
  border-color: var(--accent-color);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

/* Premium Card (Glassmorphism Effect) */
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 10px 30px var(--shadow-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .policy-card {
    padding: 24px;
    border-radius: 16px;
  }
}

/* Typography styles */
h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.last-updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 4px;
}

p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

ul {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 4px;
}

li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

/* Callout Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-left: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Footer styling */
footer {
  text-align: center;
  padding: 40px 24px 20px;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent-color);
}

.copyright {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Interactive Direct-chat app styling (if accessed via index.html) */
.app-card {
  text-align: center;
}

.phone-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 32px auto 0;
  text-align: left;
}

.phone-input-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: 4px;
}

.phone-input-wrapper {
  display: flex;
  gap: 8px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

.phone-input-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.country-code {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  width: 70px;
  border-right: 1px solid var(--border-color);
  padding-right: 8px;
}

.phone-input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  width: 100%;
  letter-spacing: 0.5px;
}

.phone-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  margin-top: 12px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}

.btn-primary:active {
  transform: translateY(0);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--accent-color);
}
