/* The policy pages (/policies/…): long prose in Mason's look, on top of site.css. Zilla Slab headings, Geist body,
   hairline tables in the surface colour, the table of contents as a framed box. */

.policy { padding-top: 40px; }
.policy .meta { font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--subtle); }
.policy .meta a { color: var(--accent); text-decoration: none; }
.policy .meta a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.policy h1 { margin-top: 14px; font-size: clamp(34px, 5.6vw, 48px); line-height: 1.08; }
.policy .lede { margin-top: 22px; font-size: 19px; color: var(--muted); }
.policy h2 { font-size: 25px; margin-top: 52px; margin-bottom: 10px; }
.policy h3 { font-size: 19px; margin-top: 30px; margin-bottom: 6px; }
.policy h2 + h3 { margin-top: 18px; }
.policy p { margin-top: 12px; }
.policy ul, .policy ol { margin: 12px 0 0; padding-left: 26px; }
.policy li { margin-top: 7px; }
.policy li > ul, .policy li > ol { margin-top: 6px; }
.policy b, .policy strong { font-weight: 600; }
.policy dfn { font-style: normal; font-weight: 600; }
.policy code { background: var(--code-bg); padding: 1px 5px; }

/* the table of contents: a framed box, two columns on a desktop */
.policy .toc { margin-top: 30px; padding: 18px 22px 20px; background: var(--surface); border: 1px solid var(--frame); box-shadow: 2px 2px 0 var(--stone); }
.policy .toc p { margin: 0 0 8px; font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--subtle); }
.policy .toc ol { margin: 0; padding-left: 22px; font-size: 15px; columns: 2; column-gap: 32px; }
.policy .toc li { margin-top: 4px; break-inside: avoid; }
.policy .toc a { text-decoration: none; color: var(--fg); }
.policy .toc a:hover { text-decoration: underline; }

/* a framed table that scrolls sideways on a phone rather than breaking the page */
.policy .table-wrap { margin-top: 16px; overflow-x: auto; background: var(--surface); border: 1px solid var(--frame); box-shadow: 2px 2px 0 var(--stone); }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.policy th, .policy td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.policy thead th { border-top: 0; border-bottom: 1px solid var(--frame); background: var(--code-bg); color: var(--muted); font-weight: 600; white-space: nowrap; }
.policy tbody th { font-weight: 600; color: var(--fg); }
.policy td ul { margin-top: 0; padding-left: 18px; }
.policy td li { margin-top: 3px; }

/* an aside the reader should not miss: a patina rule down its left */
.policy .note { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: 15.5px; }
.policy .note p { margin-top: 0; }
.policy .note p + p { margin-top: 10px; }

/* the exhibits of the DPA, set off from the clauses */
.policy .exhibit { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.policy .exhibit h2 { margin-top: 0; }

/* the parties' table in a DPA: the first column is the label */
.policy .parties tbody th { white-space: nowrap; color: var(--muted); font-weight: 500; }

@media (max-width: 640px) {
  .policy { padding-top: 28px; }
  .policy h2 { font-size: 22px; margin-top: 40px; }
  .policy .toc ol { columns: 1; }
  .policy table { font-size: 14px; }
  .policy th, .policy td { padding: 8px 10px; }
  .policy thead th { white-space: normal; }
  .policy .parties tbody th { white-space: normal; }
}
