/* ==========================================================================
   SpotJar privacy policy (same dark theme as the landing page)
   ========================================================================== */

.policy {
  width: 100%;
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
  line-height: 1.7;
}

.policy__head {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.policy__head img {
  width: 220px;
  margin-bottom: 36px;
}

.policy h1 {
  font-size: clamp(2.25rem, 6vw, 3rem);
}

.policy__date {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.policy section {
  margin-top: 56px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.policy h2 {
  margin-bottom: 16px;
  font-size: 1.625rem;
}

.policy h3 {
  margin: 28px 0 10px;
  font-size: 1.1875rem;
}

.policy p + p,
.policy p + ul,
.policy ul + p,
.policy .table-wrap + p {
  margin-top: 14px;
}

.policy ul {
  margin: 14px 0 0;
  padding-left: 1.25em;
}

.policy li + li {
  margin-top: 8px;
}

.policy li::marker {
  color: var(--teal);
}

.policy strong {
  color: var(--text-strong);
  font-weight: 600;
}

.policy code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.9em;
}

.policy .address {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-strong);
}

.policy p + .address,
.policy .address + p {
  margin-top: 14px;
}

/* Table of contents */
.toc {
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.toc ol {
  margin: 0;
  padding-left: 1.5em;
  columns: 2 220px;
  column-gap: 32px;
}

.toc li {
  margin: 0 0 4px;
  break-inside: avoid;
}

.toc li::marker {
  color: var(--text-muted);
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* Tables scroll sideways on small screens instead of squeezing. */
.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

caption {
  padding: 14px 16px 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: left;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text-strong);
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: rgba(245, 237, 225, 0.025);
}

/* Visible marker for anything that still has to be filled in before going live. */
.todo {
  padding: 1px 8px;
  border: 1px dashed var(--orange);
  border-radius: 6px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9em;
}

.policy + .site-footer {
  padding-top: 40px;
}

.policy .ai-marker {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0;
}

.policy .ai-marker figure {
  margin: 0;
  text-align: center;
}

.policy .ai-marker img {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
}

.policy .ai-marker figcaption {
  color: var(--text-muted);
  font-size: 0.85em;
}
