/* Four-column table: legal pages (the Cookie Policy's lists) and docs articles.
 *
 * Markup   <div class="t4w"><table class="t4"> with a <colgroup> of four (.t4-c1 to .t4-c4), <th scope="col">
 *          column names, a <th scope="row"> holding one .t4-n per name, and data-label on every cell.
 * Widths   name 23%, provider 20%, type and expiry 15%, purpose 42%. The name is Plex Mono and breaks at any
 *          character rather than widen the table; several names stack, one per line.
 * The switch  a container query on .t4w: at 640px of its own width or more it is a table; narrower, each row
 *          stacks into a block (name on top, the next two cells side by side under their column names, the
 *          last cell across the full width). It follows the column it sits in, not the window.
 * Legal    at 1280 and wider the table runs 112px past the 680px reading column, into the empty space on its right.
 * "(3rd Party)" and similar asides are wrapped in .tp (subtle grey); the words stay exactly as written. */

.t4w { margin-top: var(--kit-space-block); container-type: inline-size; }
.t4 { width: 100%; border-collapse: collapse; }
.t4 thead, .t4 colgroup { display: none; }
.t4, .t4 tbody { display: block; }
.t4 tbody { border-top: 1px solid var(--kit-text); }
.t4 tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid var(--kit-line); }
.t4 tbody th, .t4 td { display: block; padding: 0; text-align: start; font-weight: var(--kit-weight-regular); }
.t4 tbody th { grid-column: 1 / -1; font-family: var(--kit-font-mono); font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); font-weight: var(--kit-weight-medium); color: var(--kit-text); overflow-wrap: anywhere; }
.t4 td { font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); color: var(--kit-text-muted); }
.t4 td:last-child { grid-column: 1 / -1; color: var(--kit-text); }
.t4 td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--kit-font-mono); font-size: 11px; line-height: 14px; font-weight: var(--kit-weight-medium);
  letter-spacing: var(--kit-type-label-track); text-transform: uppercase; color: var(--kit-text-subtle); }
.t4-n { display: block; }
.t4-n + .t4-n { margin-top: 4px; }
.t4 .tp { color: var(--kit-text-subtle); }

@container (min-width: 640px) {
  .t4 { display: table; table-layout: fixed; }
  .t4 colgroup { display: table-column-group; }
  .t4 thead { display: table-header-group; }
  .t4 tbody { display: table-row-group; border-top: 0; }
  .t4 tr { display: table-row; padding: 0; border: 0; }
  .t4 .t4-c1 { width: 23%; } .t4 .t4-c2 { width: 20%; } .t4 .t4-c3 { width: 15%; } .t4 .t4-c4 { width: 42%; }
  .t4 thead th { padding-block: 0 12px; padding-inline: 0 16px; border-bottom: 1px solid var(--kit-text); text-align: start; vertical-align: bottom;
    font-family: var(--kit-font-mono); font-size: 12px; line-height: var(--kit-type-label-line); font-weight: var(--kit-weight-medium); letter-spacing: var(--kit-type-label-track); text-transform: uppercase; color: var(--kit-text-subtle); }
  .t4 tbody th, .t4 td { display: table-cell; padding-block: 16px; padding-inline: 0 16px; border-bottom: 1px solid var(--kit-line); vertical-align: top; }
  .t4 tr > :last-child { padding-inline-end: 0; }
  .t4 tbody th { font-size: var(--kit-type-ui-size); }
  .t4 td::before { display: none; }
  .t4 .tp { white-space: nowrap; }
}
@media (min-width: 1280px) { .lg-doc .t4w { margin-inline-end: -112px; } }

/* Chinese and Arabic: column names in the page's own family, without capitals or spacing */
:is([lang="ar"], [lang="zh-Hans"]) .t4 thead th,
:is([lang="ar"], [lang="zh-Hans"]) .t4 td::before { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: var(--kit-weight-semibold); }

@media print {
  .t4w { container-type: normal; margin-inline-end: 0 !important; }
  .t4 { display: table; table-layout: fixed; }
  .t4 thead { display: table-header-group; } .t4 colgroup { display: table-column-group; }
  .t4 tbody { display: table-row-group; } .t4 tr { display: table-row; break-inside: avoid; }
  /* The screen widths sit in the container query, which container-type: normal turns off here. */
  .t4 .t4-c1 { width: 23%; } .t4 .t4-c2 { width: 20%; } .t4 .t4-c3 { width: 15%; } .t4 .t4-c4 { width: 42%; }
  .t4 tbody th, .t4 td { display: table-cell; padding: 6pt 8pt 6pt 0; border-bottom: 0.5pt solid #000; color: #000; font-size: 9pt; line-height: 1.4; overflow-wrap: anywhere; }
  .t4 td::before { display: none; }
  .t4 .tp { color: #000; }
}
