/*
 * The legal pages (M2-LEGALPAGES): the accessibility statement, the privacy policy and the terms and conditions use the About ONVV
 * page's head, band and blocks (institution.css); this file adds the single-column band, the publication line's room and the cookie
 * table. Values come from tokens.css; this file holds no colour and no font size of its own.
 */

/* A page with no side card keeps its blocks to a readable line */
.about-band-grid.legal-single {
  grid-template-columns: minmax(0, var(--size-48rem));
}

.legal-head h1 {
  max-width: 28ch;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-head + .band + .about-meta {
  padding-bottom: var(--spacing-48);
}

/* ---------- The cookie table ---------- */

.cookie-note {
  margin: 0 0 var(--spacing-12);
}

/* The table scrolls inside its own named, focusable region; the page never scrolls sideways */
.table-wrap {
  margin-top: var(--spacing-8);
  overflow-x: auto;
  border: var(--border-width-1) solid var(--color-border);
  border-radius: var(--border-radius-8);
  background: var(--color-surface);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
}

.cookie-table caption {
  padding: var(--spacing-12) var(--spacing-16);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  text-align: start;
}

.cookie-table :is(th, td) {
  min-width: var(--size-9rem);
  padding: var(--spacing-12) var(--spacing-16);
  border-top: var(--border-width-1) solid var(--color-border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.cookie-table thead th {
  background: var(--color-surface-muted);
  font-weight: var(--font-weight-medium);
}

.cookie-table :is(th, td):last-child {
  min-width: var(--size-12rem);
}

.cookie-table tbody th {
  font-weight: var(--font-weight-regular);
}

.cookie-table code {
  font-family: inherit;
  font-weight: var(--font-weight-medium);
}
