/* --- Variables & Base --- */
:root {
  --primary: #8b5cf6;
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  --secondary: #10b981;
  --secondary-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --danger: #ef4444;
  --whatsapp: #25d366;
  --bg-body: #fafafa;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.95);
  --bg-alt: #f5f5f5;
  --text-main: #121212;
  --text-muted: #374151;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.dark-mode {
  --bg-body: #000000;
  --bg-card: #0a0a0a;
  --bg-nav: rgba(0, 0, 0, 0.95);
  --bg-alt: #0d0d0d;
  --text-main: #fcfcfc;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  --bg-accent-purple: rgba(139, 92, 246, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

h1,
h2,
h3,
h4,
.btn,
.logo {
  font-family: "Poppins", sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px; /* Wider container */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Nav Styling --- */
.policy-nav {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: calc(10px + env(safe-area-inset-top));
}

.policy-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-brand i {
  color: var(--primary);
}

.page-title {
  display: none; /* Removed from navbar */
}

.content-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin: 0 auto 40px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  letter-spacing: -0.5px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
}

.back-home-container {
  text-align: center;
  margin: 50px 0 20px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 35px;
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow);
}

.back-home-btn:hover {
  background: var(--primary-gradient);
  color: white !important;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.back-home-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.back-home-btn:hover i {
  transform: translateX(-5px);
}

/* --- Policy Content --- */
.policy-content-wrapper {
  padding: 40px 0 80px;
}

.policy-content {
  background: var(--bg-card);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  width: 100%;
}

.policy-content h2 {
  font-size: 1.25rem;
  margin: 25px 0px 10px 0px;
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-content h2::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 10px;
}

.policy-content p {
  margin-bottom: 30px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.policy-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-muted);
}

.policy-content li {
  margin-bottom: 10px;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 30px;
  display: block;
}

/* --- Contact Specific --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-info-card {
  background: var(--bg-alt);
  padding: 30px;
  border-radius: 15px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-item i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 5px;
}

.contact-info-item h4 {
  margin-bottom: 5px;
}

.contact-form .input-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: inherit;
}

.contact-form button {
  background: var(--primary-gradient);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .policy-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 15px;
  }
  .nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .content-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding: 0 10px;
  }
  .policy-content {
    padding: 20px 20px 30px 20px;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .last-updated {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .policy-content-wrapper {
    padding: 0;
  }
  .container {
    padding: 0 15px;
  }

  /* Removed scrollbar hiding for better UX */
}

/* --- Mobile Menu & Sidebar --- */
.menu-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.policy-sidebar {
  position: fixed;
  top: 0;
  left: -300px; /* Slide from left */
  width: 280px;
  height: 100dvh;
  background: var(--bg-card);
  z-index: 1002;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
}

.policy-sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header .nav-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header .nav-brand i {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.sidebar-close {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #ef4444;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-close:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.sidebar-links::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.sidebar-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: var(--bg-accent-purple);
  color: var(--primary);
}

.sidebar-links a i {
  width: 20px;
  font-size: 1.1rem;
  opacity: 0.8;
}

.sidebar-footer {
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.sidebar-btn {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
  text-decoration: none;
}

.sidebar-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.sidebar-btn i {
  font-size: 1.1rem;
}
