/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Privacy Policy Main Section */
.privacy-main {
  min-height: 70vh;
  padding-top: 120px;
  padding-bottom: 80px;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Main Container for Privacy Content */
.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Header Section */
.privacy-header {
  background: linear-gradient(135deg, #ffde59 0%, #f0c842 100%);
  padding: 40px;
  text-align: center;
  color: #333;
  width: 100%;
  word-wrap: break-word;
}

.privacy-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  word-wrap: break-word;
  hyphens: auto;
}

.privacy-effective-date {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  opacity: 0.8;
  word-wrap: break-word;
}

.privacy-intro {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  word-wrap: break-word;
  hyphens: auto;
}

/* Content Area */
.privacy-content {
  padding: 40px 60px;
  width: 100%;
  overflow-x: hidden;
}

/* Individual Sections */
.privacy-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  width: 100%;
  overflow-x: hidden;
}

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

.privacy-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid #ffde59;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.privacy-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.privacy-list {
  list-style: none;
  padding-left: 0;
  width: 100%;
}

.privacy-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.privacy-list li::before {
  content: "•";
  color: #ffde59;
  font-weight: bold;
  position: absolute;
  left: 8px;
  font-size: 1.2rem;
}

/* Contact Information Blocks */
.privacy-contact-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 16px;
  border-left: 4px solid #ffde59;
  width: 100%;
  overflow-x: hidden;
}

.privacy-contact-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  word-wrap: break-word;
  max-width: 100%;
}

.privacy-contact-info a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
}

.privacy-contact-info a:hover {
  color: #ffde59;
}

/* Links styling */
a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffde59;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #ffde59;
  color: #333;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #e6c850;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .privacy-main {
    padding-top: 100px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .privacy-title {
    font-size: 2rem;
  }
  
  .privacy-header {
    padding: 30px 20px;
  }
  
  .privacy-content {
    padding: 30px 40px;
  }
  
  .privacy-section-title {
    font-size: 1.2rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .privacy-main {
    padding-top: 80px;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .privacy-title {
    font-size: 1.8rem;
  }
  
  .privacy-section-title {
    font-size: 1.1rem;
    padding-left: 12px;
  }
  
  .privacy-section p,
  .privacy-list li {
    font-size: 0.9rem;
  }
  
  .privacy-header {
    padding: 24px 16px;
  }
  
  .privacy-content {
    padding: 24px 20px;
  }
  
  .privacy-contact-info {
    padding: 16px;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .privacy-list li {
    padding-left: 20px;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .privacy-main {
    padding-top: 70px;
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .privacy-title {
    font-size: 1.6rem;
  }
  
  .privacy-header {
    padding: 20px 12px;
  }
  
  .privacy-content {
    padding: 20px 16px;
  }
  
  .privacy-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
  
  .privacy-section-title {
    padding-left: 8px;
  }
  
  .privacy-list li {
    padding-left: 16px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }
  
  .privacy-main {
    padding: 0;
    background: white;
  }
  
  .privacy-container {
    box-shadow: none;
    border-radius: 0;
  }
  
  .privacy-header {
    background: white !important;
    color: black !important;
  }
  
  .privacy-section-title {
    border-left-color: black !important;
  }
  
  .privacy-list li::before {
    color: black !important;
  }
  
  .privacy-contact-info {
    background: white !important;
    border-left-color: black !important;
  }
  
  .back-to-top {
    display: none !important;
  }
}

/* Loading animation */
.privacy-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects */
.privacy-section {
  transition: all 0.3s ease;
}

.privacy-section:hover {
  transform: translateX(5px);
}

.privacy-section-title {
  transition: color 0.3s ease;
}

.privacy-section:hover .privacy-section-title {
  color: #ffde59;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #ffde59;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #ffde59;
  color: #333;
}

::-moz-selection {
  background: #ffde59;
  color: #333;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #ffde59, #f0c842);
  z-index: 9999;
  transition: width 0.1s ease;
  max-width: 100vw;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: calc(100vw - 60px);
  word-wrap: break-word;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #ffde59;
  color: #333;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s ease;
  max-width: calc(100vw - 12px);
}

.skip-link:focus {
  top: 6px;
}

/* Active section highlighting */
.privacy-section-title.active {
  color: #ffde59 !important;
  transform: translateX(5px);
  transition: all 0.3s ease;
}

/* Additional overflow prevention */
.privacy-main *,
.privacy-container *,
.privacy-content *,
.privacy-header * {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure all text elements don't cause overflow */
h1, h2, h3, h4, h5, h6, p, li, span, div {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Fix for very long URLs or email addresses */
a[href^="mailto:"],
a[href^="http://"],
a[href^="https://"] {
  word-break: break-all;
  overflow-wrap: break-word;
}