/* ==========================================
   Privacy Policy & Terms Page Styles
   smartKalathi - Amber Theme
   ========================================== */

/* Privacy Header */
.privacy-header {
  padding: 150px 0 80px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.privacy-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 160, 0, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.privacy-header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffc107 0%, #ff8f00 50%, #ffa000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.last-updated {
  color: #a0aec0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.last-updated i {
  color: #ffa000;
}

/* Privacy Content Layout */
.privacy-content {
  padding: 80px 0;
  background: #16213e;
}

.privacy-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Table of Contents */
.privacy-toc {
  position: sticky;
  top: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 160, 0, 0.1);
  border-radius: 16px;
  padding: 25px;
}

.privacy-toc h3 {
  font-size: 1rem;
  color: #ffc107;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.privacy-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-toc li {
  margin-bottom: 12px;
}

.privacy-toc a {
  color: #a0aec0;
  font-size: 0.9rem;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.privacy-toc a:hover {
  color: #ffa000;
  background: rgba(255, 160, 0, 0.1);
  transform: translateX(5px);
}

.privacy-toc a.active {
  color: #ffa000;
  background: rgba(255, 160, 0, 0.15);
}

/* Privacy Main Content */
.privacy-main {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 160, 0, 0.1);
  border-radius: 16px;
  padding: 50px;
}

.privacy-section {
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.privacy-section h2 {
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.privacy-section h2 i {
  color: #ffa000;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 160, 0, 0.2) 0%,
    rgba(255, 143, 0, 0.1) 100%
  );
  border-radius: 12px;
}

.privacy-section h3 {
  font-size: 1.25rem;
  color: #ffc107;
  margin: 30px 0 15px;
}

.privacy-section p {
  color: #a0aec0;
  margin-bottom: 20px;
  line-height: 1.8;
}

.privacy-section ul {
  color: #a0aec0;
  padding-left: 25px;
  margin-bottom: 20px;
}

.privacy-section li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.privacy-section li::marker {
  color: #ffa000;
}

/* Contact Box */
.contact-box {
  background: linear-gradient(
    135deg,
    rgba(255, 160, 0, 0.1) 0%,
    rgba(255, 143, 0, 0.05) 100%
  );
  border: 1px solid rgba(255, 160, 0, 0.2);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
}

.contact-box h4 {
  color: #ffc107;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-box a {
  color: #ffa000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-box a:hover {
  color: #ffd54f;
  text-decoration: underline;
}

/* Privacy Footer */
.privacy-footer {
  padding: 40px 0;
  background: #1a1a2e;
  border-top: 1px solid rgba(255, 160, 0, 0.1);
}

.privacy-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #ffa000;
  transform: translateX(-5px);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffa000;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .privacy-wrapper {
    grid-template-columns: 1fr;
  }

  .privacy-toc {
    position: static;
    margin-bottom: 30px;
  }

  .privacy-header h1 {
    font-size: 2.5rem;
  }

  .privacy-main {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .privacy-header {
    padding: 120px 0 60px;
  }

  .privacy-header h1 {
    font-size: 2rem;
  }

  .privacy-section h2 {
    font-size: 1.4rem;
  }

  .privacy-footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffa000 0%, #ff8f00 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffc107 0%, #ffa000 100%);
}

/* Selection Color */
::selection {
  background: rgba(255, 160, 0, 0.3);
  color: #ffffff;
}

/* Navbar for Privacy Page */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #ffa000;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffa000, #ffc107);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Info Cards in Privacy */
.info-card {
  background: rgba(255, 160, 0, 0.05);
  border-left: 4px solid #ffa000;
  padding: 20px 25px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
}

.info-card.warning {
  background: rgba(255, 107, 107, 0.05);
  border-left-color: #ff6b6b;
}

.info-card.success {
  background: rgba(72, 187, 120, 0.05);
  border-left-color: #48bb78;
}

.info-card h4 {
  color: #ffc107;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card p {
  margin: 0;
  color: #a0aec0;
}

/* Table Styles for Data Collection */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.data-table th,
.data-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
  background: rgba(255, 160, 0, 0.1);
  color: #ffc107;
  font-weight: 600;
}

.data-table td {
  color: #a0aec0;
}

.data-table tr:hover td {
  background: rgba(255, 160, 0, 0.05);
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-required {
  background: rgba(255, 160, 0, 0.2);
  color: #ffa000;
}

.badge-optional {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
}

/* Print Styles */
@media print {
  .navbar,
  .privacy-toc,
  .back-link {
    display: none;
  }

  .privacy-header {
    padding: 40px 0;
    background: none;
    color: #000;
  }

  .privacy-header h1 {
    color: #000;
    -webkit-text-fill-color: #000;
    background: none;
  }

  .privacy-content,
  .privacy-main {
    background: #fff;
  }

  .privacy-section h2,
  .privacy-section h3 {
    color: #000;
  }

  .privacy-section p,
  .privacy-section li {
    color: #333;
  }
}
