/* Policy Pages Styles */

.policy-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Content Wrapper - UPDATED: Industry standard max-width */
.content-wrapper {
  max-width: 1200px; /* CHANGED: Industry standard max-width */
  width: 100%; /* ADDED: Full width up to max */
  margin: 20px auto; /* CHANGED: Center the container */
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-sizing: border-box;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Policy Hero Section */
.policy-hero-section {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-bottom: 20px;
}

.policy-hero-content {
  max-width: 800px;
  padding: 20px;
  z-index: 2;
}

.policy-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.policy-hero-content p {
  font-size: 1.2rem;
  color: white;
  opacity: 0.9;
}

/* Policy Content Styling */
.policy-content {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.6;
}

.policy-content section {
  margin-bottom: 2.5rem;
}

.policy-content h2 {
  font-size: 1.8rem;
  color: #222;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.policy-content h3 {
  font-size: 1.4rem;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-content p {
  margin-bottom: 1rem;
  color: #444;
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
  color: #444;
}

.policy-content a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s;
}

.policy-content a:hover {
  color: #004d99;
  text-decoration: underline;
}

/* Cookie Table Styling */
.cookie-table-container {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.cookie-table th {
  background-color: #f4f4f4;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
  border: 1px solid #ddd;
}

.cookie-table td {
  padding: 10px 15px;
  border: 1px solid #ddd;
  color: #444;
}

.cookie-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.cookie-table tr:hover {
  background-color: #f1f1f1;
}

/* Enhanced Responsive Design - UPDATED with Industry Standard Breakpoints */
@media (max-width: 1240px) {
  .content-wrapper {
    margin: 20px; /* Add margins on smaller screens */
    width: calc(100% - 40px); /* Account for margins */
  }
}

@media (max-width: 992px) {
  .policy-hero-content h1 {
    font-size: 2.5rem;
  }

  .content-wrapper {
    padding: 30px;
    margin: 15px; /* Smaller margins on tablets */
    width: calc(100% - 30px);
  }

  .policy-content h2 {
    font-size: 1.6rem;
  }

  .policy-content h3 {
    font-size: 1.3rem;
  }

  .policy-hero-section {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .policy-hero-section {
    height: 200px;
  }

  .policy-hero-content h1 {
    font-size: 2rem;
  }

  .policy-hero-content p {
    font-size: 1rem;
  }

  .content-wrapper {
    padding: 25px;
    margin: 15px; /* Even smaller margins on mobile */
    width: calc(100% - 30px);
  }

  .policy-content h2 {
    font-size: 1.4rem;
  }

  .policy-content h3 {
    font-size: 1.2rem;
  }

  .cookie-table-container {
    overflow-x: auto;
  }

  .cookie-table {
    min-width: 500px; /* Ensure table doesn't get too compressed */
  }
}

@media (max-width: 480px) {
  .policy-hero-section {
    height: 180px;
  }

  .policy-hero-content h1 {
    font-size: 1.8rem;
  }

  .content-wrapper {
    padding: 20px;
    margin: 15px; /* Minimal margins on very small screens */
    width: calc(100% - 30px);
  }

  .policy-content h2 {
    font-size: 1.3rem;
  }

  .policy-content h3 {
    font-size: 1.1rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .policy-content {
    max-width: 100%; /* Allow full width on very small screens */
  }

  .policy-content ul,
  .policy-content ol {
    padding-left: 1rem; /* Reduce indent on small screens */
  }
}
