/**
 * Cookie policy page — the pieces this document adds on top of the legal
 * chrome. The hero, card, section titles and lists come from
 * components/shared/LegalDocument. Only what is specific to this document
 * lives here.
 */

/* ---------- Cookie inventory table ---------- */

/* The table is the one element that cannot reflow below ~34rem, so it scrolls
   inside its own box rather than pushing the page sideways. */
.cookie-table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 0.9rem;
}

.cookie-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.cookie-table th,
.cookie-table td {
  padding: 0.85rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.cookie-table tbody tr:last-child th,
.cookie-table tbody tr:last-child td {
  border-bottom: 0;
}

.cookie-table thead th {
  background: rgb(255 255 255 / 0.04);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-lavender-300);
}

.cookie-table tbody th {
  font-family: ui-monospace, sfmono-regular, menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
}

.cookie-table tbody td {
  color: var(--gray-300);
}

/* ---------- Reopen the preferences panel ---------- */

.cookie-policy-manage {
  display: inline-block;
  margin: 1.25rem 0;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--brand-violet-500), var(--brand-violet-600));
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cookie-policy-manage:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .cookie-policy-manage:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .cookie-table-scroll {
    margin-inline: -0.5rem;
  }
}

/* ---------- Light theme ---------- */

:root[data-theme='light'] .cookie-table-scroll {
  border-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme='light'] .cookie-table th,
:root[data-theme='light'] .cookie-table td {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme='light'] .cookie-table thead th {
  background: #f8fafc;
  color: #6d28d9;
}

:root[data-theme='light'] .cookie-table tbody th {
  color: #0f172a;
}

:root[data-theme='light'] .cookie-table tbody td {
  color: #475569;
}
