/* Cookie and local-storage policy table.
   Keep these rules page-scoped so the wider legal table does not affect other prose tables. */
.cookie-policy {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.cookie-policy__content {
  width: min(100%, 92rem);
  margin: 0 auto;
}

.cookie-policy__content > p {
  max-width: 68rem;
  margin: 0 auto 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 1.02rem;
  line-height: 1.75;
}

.cookie-policy__content > p:first-child {
  color: hsl(var(--foreground));
  font-size: 1.08rem;
}

.cookie-table-block {
  margin: 2.25rem 0 2.5rem;
}

.cookie-table-block__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 .85rem;
}

.cookie-table-block__header h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font: 600 clamp(1.45rem, 2vw, 1.8rem)/1.2 var(--font-heading);
}

.cookie-table-scroll__hint {
  max-width: none !important;
  margin: 0 !important;
  color: hsl(var(--muted-foreground)) !important;
  font-size: .86rem !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

.cookie-table-shell {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: .9rem;
  background: hsl(var(--card));
  box-shadow: 0 14px 40px hsl(var(--foreground) / .055);
}

.cookie-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.cookie-table {
  width: 100%;
  min-width: 82rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: hsl(var(--foreground));
  font-size: .94rem;
  line-height: 1.55;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .68);
  color: hsl(var(--muted-foreground));
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cookie-table td {
  padding: 1.15rem 1.1rem;
  border-bottom: 1px solid hsl(var(--border) / .72);
  background: hsl(var(--card));
}

.cookie-table tbody tr:last-child td {
  border-bottom: 0;
}

.cookie-table tbody tr:nth-child(even) td {
  background: hsl(var(--muted) / .18);
}

.cookie-table tbody tr:hover td {
  background: hsl(var(--gold) / .065);
}

.cookie-table th:nth-child(1),
.cookie-table td:nth-child(1) { width: 15%; }
.cookie-table th:nth-child(2),
.cookie-table td:nth-child(2) { width: 8%; }
.cookie-table th:nth-child(3),
.cookie-table td:nth-child(3) { width: 9%; }
.cookie-table th:nth-child(4),
.cookie-table td:nth-child(4) { width: 17%; }
.cookie-table th:nth-child(5),
.cookie-table td:nth-child(5) { width: 13%; }
.cookie-table th:nth-child(6),
.cookie-table td:nth-child(6) { width: 12%; }
.cookie-table th:nth-child(7),
.cookie-table td:nth-child(7) { width: 12%; }
.cookie-table th:nth-child(8),
.cookie-table td:nth-child(8) { width: 14%; }

.cookie-table td:first-child {
  color: hsl(var(--foreground));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .84rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.cookie-table td:nth-child(2),
.cookie-table td:nth-child(3),
.cookie-table td:nth-child(6) {
  color: hsl(var(--muted-foreground));
}

.cookie-table td:nth-child(7) {
  font-weight: 600;
}

.cookie-policy-saved-lists {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.cookie-policy-saved-lists h2 {
  margin: 0 0 .75rem;
  font: 600 1.65rem/1.2 var(--font-heading);
}

.cookie-policy-saved-lists p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.02rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .cookie-policy {
    padding-top: 3rem;
  }

  .cookie-table-block__header {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .cookie-table-scroll__hint {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .cookie-policy {
    padding: 2.5rem 1rem 3.5rem;
  }

  .cookie-policy__content > p {
    font-size: .98rem;
  }

  .cookie-table-block {
    margin-top: 1.75rem;
  }

  .cookie-table-shell {
    border-radius: .7rem;
  }

  .cookie-table th {
    padding: .9rem 1rem;
  }

  .cookie-table td {
    padding: 1rem;
  }

  .cookie-policy-saved-lists {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
