/* Estilos para la página de política de cookies */
.cookies-content {
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  padding-top: 3rem;
}

.cookies-content .container {
  max-width: 900px;
}

.cookies-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
}

.cookies-header-img {
  width: 15%;
  margin: 0 2rem 1rem 0;
}

.cookies-section {
  margin-bottom: 3rem;
}

.cookies-section h2 {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.cookies-section h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}
.cookies-section h4 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.cookies-section p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.cookies-section ul,
.cookies-section ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.cookies-section li {
  margin-bottom: 0.5rem;
}

.update-date {
  font-style: italic;
  font-size: 0.9rem;
  text-align: right;
  margin-top: 3rem;
}

/* Estilos para las tablas de cookies */
.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
}

.table > thead {
  background-color: var(--color-accent);
}

.table > thead > tr > th {
  padding: 1.25rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: none;
  vertical-align: middle;
  color: white !important;
}

.table > tbody > tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.table > tbody > tr:last-child {
  border-bottom: none;
}

.table > tbody > tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.01);
}

.table > tbody > tr:hover {
  background-color: rgba(var(--color-primary-rgb), 0.03);
}

.table > tbody > tr > td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
  border: none;
}

/* Columna Nombre */
.table > tbody > tr > td:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

/* Columna Tipo */
.table > tbody > tr > td:nth-child(2) {
  font-size: 0.9rem;
}

/* Badge para tipos de cookies */
.table .badge {
  padding: 0.5em 1em;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem;
}

.table td:nth-child(2):contains('Técnica') {
  color: #0d6efd;
}

.table td:nth-child(2):contains('Personalización') {
  color: #198754;
}

.table td:nth-child(2):contains('Analítica') {
  color: #6f42c1;
}

.table td:nth-child(2):contains('Publicitaria') {
  color: #fd7e14;
}

/* Columna Caducidad */
.table > tbody > tr > td:nth-child(3) {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Enlaces en la tabla */
.table .text-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: rgba(var(--color-primary-rgb), 0.1);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.table .text-primary:hover {
  background-color: var(--color-primary);
  color: white !important;
}

.table .text-primary::after {
  content: '↗';
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

/* Títulos de tablas */
.cookies-section h4 {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(var(--color-primary-rgb), 0.1);
}
