/* Privacy policy (views/site/privacy-policy.php): a wash hero with the policy's date, then the
   summary and the contents beside the policy on wide screens (above it on narrow ones), and the
   cookies in a glass table whose rows become small labelled cards in a narrow column. */

.privacy-updated { margin: 1.25rem 0 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }

.privacy__grid { display: grid; gap: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); align-items: start; }
.privacy__aside { display: grid; gap: 1rem; }
.privacy__body { min-width: 0; container-type: inline-size; }
@media (min-width: 1000px) {
  .privacy__grid { grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr); }
  .privacy__aside { position: sticky; top: var(--header-offset); }
}

/* The summary and the contents: glass cards */
.privacy-summary,
.privacy-contents {
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xs), var(--glass-inset);
}
.privacy-summary__title,
.privacy-contents__title { margin: 0 0 .75rem; font-size: var(--fs-body); font-weight: 800; }
.privacy-summary__list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.privacy-summary__list li { position: relative; padding-inline-start: 1.1rem; }
.privacy-summary__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--grad);
}
.privacy-contents ol { display: grid; gap: .35rem; margin: 0; padding-inline-start: 1.25rem; font-size: var(--fs-sm); }
.privacy-contents li::marker { color: var(--muted); }
.privacy-contents a { color: var(--primary-ink); font-weight: 600; text-decoration: none; }
.privacy-contents a:hover { text-decoration: underline; }

/* The policy: one section per subject, each a target of the contents */
.privacy-section { scroll-margin-top: var(--header-offset); }
.privacy-section + .privacy-section { margin-top: clamp(2.25rem, 1.75rem + 1.5vw, 3.25rem); }
.privacy-section > h2 { margin-top: 0; }
.privacy-section > * + * { margin-top: 1.1em; }
.privacy-section > h2 + * { margin-top: .6em; }

/* Cookies and browser storage */
.privacy-table {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.privacy-table th,
.privacy-table td { padding: .8rem 1rem; text-align: start; vertical-align: top; font-size: var(--fs-sm); line-height: 1.5; }
.privacy-table thead th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.privacy-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.privacy-table td { color: var(--ink-2); }
.privacy-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.privacy-table code { font-size: .92em; }
@container (max-width: 38rem) {
  .privacy-table thead { display: none; }
  .privacy-table table,
  .privacy-table tbody,
  .privacy-table tr,
  .privacy-table th,
  .privacy-table td { display: block; }
  .privacy-table tbody tr { padding: .9rem 1.1rem; }
  .privacy-table tbody tr + tr { border-top: 1px solid var(--line); }
  .privacy-table tbody tr + tr > * { border-top: 0; }
  .privacy-table tbody th,
  .privacy-table td { padding: .15rem 0; }
  .privacy-table tbody th { margin-bottom: .35rem; font-size: 1rem; }
  .privacy-table td { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 1rem; }
  .privacy-table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}
