/* =====================================================================
   Pug IT Solution — legal pages
   ---------------------------------------------------------------------
   The one readable column of the privacy policy and the terms of
   service; linked by shared/layouts/legal.html. The global reset of
   base.css takes the bullets off every list, so the lists of a legal
   text get theirs back here.
   ===================================================================== */
.legal-document {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 52px);
}

.legal-document__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-document__updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* The contents list at the top of a legal text */
.legal-document__toc {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
}
.legal-document__toc-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.legal-document__toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  padding-left: 22px;
  list-style: decimal;
  font-size: 15px;
}

/* One numbered part of the text */
.legal-document__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-soft);
}
.legal-document__section h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
.legal-document__section h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.legal-document__section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  list-style: disc;
}
.legal-document__section li::marker { color: var(--gold); }
.legal-document__section strong { color: var(--text); font-weight: 600; }
.legal-document__section a { text-decoration: underline; text-underline-offset: 3px; }

/* A table of a legal text, e.g. the cookies */
.legal-table-frame {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
}
.legal-table__caption {
  padding: 14px 18px 0;
  text-align: left;
  font-size: 14px;
  color: var(--text-faint);
}
.legal-table th,
.legal-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.legal-table code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-bright);
}


/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .legal-document__toc ol { grid-template-columns: minmax(0, 1fr); }
}
