/* Legal pages. Values follow the Marengo Styleguide 2026 (19 September 2026):
   documents use white pages, navy headings, navy table headers with Cool Gray
   stripes, and a Chivo Mono footer. */

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-serif-regular.woff") format('woff');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-regular.woff") format('woff');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-semibold.woff") format('woff');
}
@font-face {
  font-family: 'Chivo Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/chivo-mono-regular.woff") format('woff');
}

:root {
  --navy: #1A253D;
  --text: #17243E;
  --text-supporting: #536078;
  --cool-gray: #F0F2F5;
  --white: #FFFFFF;
  --edge: #1A253D20;
  --divider: #1A253D14;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page-header {
  border-bottom: 1px solid var(--divider);
}

.page-header-inner,
.document,
.page-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.page-header-inner {
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo-link {
  display: inline-block;
}

.logo {
  display: block;
  width: 180px;
  height: auto;
}

.document {
  padding-top: 56px;
  padding-bottom: 80px;
}

.section-label {
  font-family: 'Chivo Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-supporting);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

h1 {
  font-size: 32px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: 24px;
}

h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.updated {
  font-size: 14px;
  color: var(--text-supporting);
  margin-bottom: 40px;
}

p {
  margin-bottom: 16px;
}

ul {
  margin: 0 0 16px 24px;
}

ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--navy);
}

a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}

.section-number {
  display: inline-block;
  min-width: 1.6em;
}

/* Tables: navy header, white text, Cool Gray stripes, square corners. */
.table-wrap {
  margin: 24px 0 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
}

thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

thead th small {
  display: block;
  font-size: 12px;
  font-weight: 400;
}

tbody tr:nth-child(even) {
  background: var(--cool-gray);
}

td p {
  margin-bottom: 8px;
}

td p:last-child,
td ul:last-child {
  margin-bottom: 0;
}

td ul {
  margin-left: 18px;
}

td li {
  margin-bottom: 2px;
}

.data-list {
  list-style: none;
  margin: 0;
}

.data-list li {
  margin-bottom: 0;
}

.categories th {
  width: 32%;
  font-weight: 600;
  color: var(--text);
}

.page-footer {
  border-top: 1px solid var(--divider);
}

.page-footer-inner {
  padding-top: 24px;
  padding-bottom: 32px;
  font-family: 'Chivo Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-supporting);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.page-footer a {
  color: var(--text-supporting);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin: 0;
}

@media (max-width: 720px) {
  .page-header-inner,
  .document,
  .page-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo {
    width: 150px;
  }

  .document {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
    margin-top: 40px;
  }

  /* Stack each table row so long legal text stays readable on a phone. */
  .stacked thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .stacked,
  .stacked tbody,
  .stacked tr,
  .stacked th,
  .stacked td {
    display: block;
    width: 100%;
  }

  .stacked tr {
    border-bottom: 1px solid var(--edge);
    padding: 8px 0;
  }

  .stacked td,
  .stacked th {
    border-bottom: 0;
    padding: 6px 14px;
  }

  .stacked td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: 'Chivo Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-supporting);
    margin-bottom: 4px;
  }
}

.nowrap {
  white-space: nowrap;
}
