/* ===== ESTILOS PARA PÁGINAS LEGALES ===== */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
  padding: 120px 0 64px;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #000000 0%, #c693cd 100%);
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  opacity: 0.9;
}

.page-breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.page-breadcrumb a:hover {
  opacity: 0.8;
}

.page-breadcrumb span {
  opacity: 0.6;
}

.page-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.page-description {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 600px;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.8;
}

/* Cookie Manager */
.cookie-manager {
  padding: 48px 0;
  background: #f8f9fa;
}

.cookie-manager-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e9ecef;
  max-width: 800px;
  margin: 0 auto;
}

.cookie-manager-header {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: center;
}

.cookie-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.cookie-manager-header h3 {
  margin: 0 0 8px;
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
}

.cookie-manager-header p {
  margin: 0;
  color: #6c757d;
  font-size: 16px;
}

/* Cookie Categories */
.cookie-categories {
  margin-bottom: 32px;
}

.cookie-category {
  padding: 16px;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  margin-bottom: 16px;
  background: white;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-info h4 {
  margin: 0 0 4px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.category-info p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

/* Toggle Switch */
.category-toggle {
  position: relative;
}

.toggle-label {
  display: inline-block;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input[type="checkbox"]:checked + .toggle-label {
  background: #e74c3c;
}

input[type="checkbox"]:checked + .toggle-label .toggle-slider {
  transform: translateX(26px);
}

input[type="checkbox"]:disabled + .toggle-label {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="checkbox"] {
  display: none;
}

/* Cookie Actions */
.cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal Content */
.legal-content {
  padding: 96px 0;
  background: #f8f9fa;
}

.legal-document {
  /* display: grid; */
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Legal Navigation */
.legal-nav {
  position: sticky;
  top: 32px;
  height: fit-content;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  display: none;
}

.legal-nav h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #2c3e50;
}

.legal-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-nav-list li {
  margin-bottom: 4px;
}

.legal-nav-list a {
  display: block;
  padding: 8px 12px;
  color: #6c757d;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.legal-nav-list a:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  transform: translateX(4px);
}

/* Legal Text Content */
.legal-text {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  color: #6c757d;
}

.legal-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e9ecef;
}

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

.legal-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 24px;
  padding-top: 16px;
}

.legal-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin: 24px 0 16px;
}

.legal-section h4 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 16px 0 8px;
}

.legal-section p {
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 16px;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.legal-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: #6c757d;
  line-height: 1.6;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-weight: bold;
}

/* Info Boxes */
.info-box,
.warning-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  margin: 24px 0;
}

.info-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 1px solid #bbdefb;
}

.warning-box {
  background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
  border: 1px solid #ffcc02;
}

.info-icon,
.warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-content,
.warning-content {
  flex: 1;
}

.info-content h4,
.warning-content h4 {
  margin: 0 0 8px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.info-content p,
.warning-content p {
  margin: 0;
  color: #6c757d;
}

/* Cookie Types Grid */
.cookie-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.cookie-type-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cookie-type-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.cookie-type-card h3 {
  margin: 0 0 16px;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}

.cookie-subtype {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
}

.cookie-subtype h4 {
  margin: 0 0 8px;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.cookie-subtype p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

/* Cookies Table */
.cookies-table {
  margin: 24px 0;
}

.cookie-category-section {
  margin-bottom: 32px;
}

.cookie-category-section h3 {
  margin: 0 0 16px;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}

.cookie-category-section > p {
  margin: 0 0 16px;
  color: #6c757d;
}

.cookie-table {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.cookie-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
}

.cookie-row:last-child {
  border-bottom: none;
}

.cookie-header {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.cookie-row code {
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #e74c3c;
}

/* Third Party Services */
.third-party-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.service-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.service-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.service-card h4 {
  margin: 0 0 12px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.service-card p {
  margin: 0 0 16px;
  color: #6c757d;
  font-size: 14px;
}

.service-link {
  color: #e74c3c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.service-link:hover {
  text-decoration: underline;
}

/* Management Options */
.management-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.management-option {
  background: white;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.option-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.management-option h4 {
  margin: 0 0 12px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.management-option p {
  margin: 0 0 16px;
  color: #6c757d;
}

.browser-list,
.opt-out-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.browser-list li,
.opt-out-list li {
  margin-bottom: 8px;
}

.browser-list a,
.opt-out-list a {
  color: #e74c3c;
  text-decoration: none;
  font-size: 14px;
}

.browser-list a:hover,
.opt-out-list a:hover {
  text-decoration: underline;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Contact Info Legal */
.contact-info-legal {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  gap: 24px;
  margin: 24px 0;
}

.contact-method {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.contact-method h4 {
  margin: 0 0 4px;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.contact-method p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .legal-document {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-nav {
    position: static;
    order: 2;
  }

  .legal-text {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 32px;
  }

  .page-description {
    font-size: 18px;
  }

  .legal-text {
    padding: 24px;
  }

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

  .cookie-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-manager-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 48px 0;
  }

  .legal-text {
    padding: 16px;
  }

  .page-header {
    padding: 88px 20px 32px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 16px;
  }

  .cookie-manager {
    padding: 32px 0;
  }

  .cookie-manager-card {
    padding: 20px;
    border-radius: 16px;
  }
}

/* ===== PRIVACY POLICY SECTION ===== */

.main-content {
  padding: 40px 20px;
  font-family: "Poppins", sans-serif;
  background-color: #fdfdfd;
  line-height: 1.7;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.policy-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.policy-intro p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #555;
}

.policy-section {
  margin-top: 40px;
}

.policy-section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #0077cc;
}

.policy-section p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.policy-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-section li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Strong elements like email/phone */
.policy-section strong {
  color: #000;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .policy-intro h2 {
    font-size: 1.6rem;
  }

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

  .policy-section li,
  .policy-section p {
    font-size: 0.95rem;
  }

  .main-content {
    padding: 24px 16px;
  }
}
