/* The legal pages (piece 1b, plan task 4.3; spec LG1, difference 20): plain text pages in the
   site's look, no mockup. The draft the server renders from its structured text (spec GR5:
   headings, paragraphs, lists, links, gap markers) and, on the cookie page, the cookie table
   after it, both at the reading width of the page head (pages.css). Sizes of docs/decisions.md
   section 1: every sentence and table cell at 18 px, a link in running text padded to a 48 px
   tap height (as products.css .pg-meta a). Only features on the phone floor of docs/decisions.md
   section 15 (iOS 15.4, Chrome 108). The draft's list keeps its block display, since Safari
   drops list semantics from a list laid out as flex or grid (browser-quirks.md). Tokens from
   site.css. */

.legal-body, .legal-cookies { max-width: 44rem; }

/* the draft: headings in the display face, paragraphs and lists at 18 px; a long word, address
   or gap breaks rather than widening the page (administration spec R2, plan 3.2) */
.legal-body { display: grid; gap: 14px; overflow-wrap: anywhere; }
.legal-body h2 { margin: 18px 0 0; font: 500 clamp(26px, 6.4vw, 32px)/1.15 var(--display); }
.legal-body p, .legal-body li { font-size: 18px; line-height: 1.6; }
.legal-body ul { margin: 0; padding-left: 1.2em; }
.legal-body li + li { margin-top: 6px; }
.legal-body a { padding: 13px 0; color: var(--ink); text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-body a:hover { color: var(--moss); }
/* a gap marker in running text may be longer than a phone's line, so it wraps there */
.legal-body .placeholder { white-space: normal; }

/* the cookie table: the cookies the code sets, on the page's paper with the site's lines */
.legal-cookies { width: 100%; margin-top: 8px; border-collapse: collapse; background: var(--paper);
  border: 1px solid var(--line); font-size: 18px; line-height: 1.45; }
.legal-cookies th, .legal-cookies td { padding: 12px 16px; text-align: left; vertical-align: top;
  border-top: 1px solid var(--line); }
.legal-cookies th { font-weight: 700; color: var(--moss); }
/* a name and a lifetime ("5 minutos") read best on one line */
.legal-cookie-name { font-weight: 600; white-space: nowrap; }
.legal-cookies td:nth-child(3) { white-space: nowrap; }

/* Phones and narrow windows: four columns of 18 px text with the names on one line need about
   620 px, more than a phone has beside the gutters, so below 700 px each cookie is a block of its
   own, its name first and every other cell under the column heading it carries (data-label), the
   heading row kept for screen readers only. A non-table display may drop the table's semantics in Safari (browser-quirks.md,
   not checked); the labels keep each value named when read in order. */
@media (max-width: 699px) {
  .legal-cookies, .legal-cookies tbody, .legal-cookies tr, .legal-cookies td { display: block; }
  .legal-cookies { border: 0; background: none; }
  .legal-cookies thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; }
  .legal-cookies tr { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
  .legal-cookies tr + tr { margin-top: 12px; }
  .legal-cookies td { padding: 0; border: 0; }
  .legal-cookie-name { white-space: normal; overflow-wrap: anywhere; }
  .legal-cookies td + td { margin-top: 10px; }
  .legal-cookies td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; color: var(--moss); }
}
