/* Shared styling for the legal pages (privacy-policy, terms-of-service).
   Long-form reading: a narrow measure, generous line height, and headings that
   are scannable rather than decorative. */

.policy-page {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
}

.policy-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.policy-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.policy-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-page section {
  margin-bottom: 2rem;
}

.policy-page h2 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.policy-page h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
}

.policy-page p,
.policy-page li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-page p { margin: 0 0 0.85rem; }

.policy-page ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.policy-page li { margin-bottom: 0.4rem; }

.policy-page a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Data table: what we collect, why, and who processes it. Scrolls inside its
   own container so a narrow phone never scrolls the whole page sideways. */
.policy-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  margin-bottom: 0.85rem;
}

.policy-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.policy-table th {
  background: rgba(37, 99, 235, 0.06);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.policy-table tr:last-child td { border-bottom: none; }

.policy-toc {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.policy-toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.policy-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.5rem;
}

@media (max-width: 560px) {
  .policy-toc ol { columns: 1; }
}

.policy-toc li { margin-bottom: 0.25rem; }

.policy-contact {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 1.1rem 1.25rem;
}

.policy-contact p:last-child { margin-bottom: 0; }
