/* ENTREAL — entreal.ai. Self-contained: no external fonts, scripts or images. */

:root {
  --ink:        #16202c;
  --ink-soft:   #4a5866;
  --ink-faint:  #6f7d8b;
  --rule:       #dfe5ea;
  --rule-soft:  #eef1f4;
  --paper:      #ffffff;
  --paper-alt:  #f6f8fa;
  --brand:      #123a52;
  --brand-lift: #1d5878;
  --focus:      #b8860b;
  --measure:    38rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", "Noto Serif", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: normal;
}

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--brand-lift); }
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 3px;
}

/* ---------- site header ---------- */

header.site {
  background: var(--brand);
  color: #fff;
  border-bottom: 3px solid #0b283a;
}
header.site .wrap {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.brand {
  display: inline-block;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: .16em;
  font-weight: 600;
}
.brand-sub {
  display: block;
  margin-top: .2rem;
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #a9c4d6;
  line-height: 1.45;
}

/* ---------- back bar ---------- */

.backbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-alt);
}
.backbar .back {
  display: inline-block;
  max-width: 60rem;
  margin: 0 auto;
  padding: .7rem 1.25rem;
  font-size: .9rem;
  text-decoration: none;
  color: var(--brand-lift);
}
.backbar .back:hover { text-decoration: underline; }

main { padding: 2.5rem 1.25rem 4rem; }

/* ---------- home ---------- */

.hero {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  margin: 0 0 .5rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  letter-spacing: .12em;
  margin: 0 0 1.25rem;
  color: var(--brand);
  font-weight: 600;
}
.lede-vi, .lede-en {
  max-width: var(--measure);
  margin: 0 0 .35rem;
  font-size: 1.08rem;
}
.lede-en { color: var(--ink-soft); margin-bottom: 1.4rem; }
.note {
  max-width: var(--measure);
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.note span { color: var(--ink-faint); }

.docs, .company { padding: 2.5rem 0; }
.company { border-top: 1px solid var(--rule); }

.docs h2, .company h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1.4rem;
  color: var(--brand);
}
.docs h2 span, .company h2 span {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: .6rem;
  white-space: nowrap;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.cards a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  border-radius: 3px;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: background .12s ease, border-color .12s ease;
}
.cards a:hover {
  background: var(--paper-alt);
  border-color: var(--brand-lift);
  border-left-color: var(--brand-lift);
}
.c-vi { display: block; font-weight: 600; line-height: 1.4; }
.c-en {
  display: block;
  margin-top: .2rem;
  font-size: .85rem;
  color: var(--ink-faint);
}

.company dl { margin: 0; }
.company dt {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.3rem;
}
.company dt:first-child { margin-top: 0; }
.company dt span { text-transform: none; letter-spacing: 0; }
.company dd {
  margin: .3rem 0 0;
  max-width: var(--measure);
}
.company dd span { color: var(--ink-faint); font-size: .92rem; }

/* ---------- legal document ---------- */

.doc { max-width: 46rem; }

.doc h1, .doc h2, .doc h3, .doc h4, .doc h5, .doc h6 {
  font-family: var(--serif);
  color: var(--brand);
  line-height: 1.35;
  font-weight: 600;
  scroll-margin-top: 1rem;
}
.doc h1 {
  font-size: clamp(1.5rem, 5.2vw, 2rem);
  margin: 0 0 .3rem;
  letter-spacing: .01em;
}
.doc h1 + h1 { margin-top: 0; color: var(--ink-soft); }
.doc h2 {
  font-size: 1.28rem;
  margin: 2.6rem 0 .6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.doc h2 + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  color: var(--brand-lift);
}
.doc h3 { font-size: 1.08rem; margin: 1.9rem 0 .45rem; }
.doc h3 + h3 { margin-top: 0; color: var(--ink-soft); }
.doc h4 { font-size: .98rem; margin: 1.5rem 0 .4rem; }
.doc h4 + h4 { margin-top: 0; color: var(--ink-soft); }

.doc p { margin: 0 0 .85rem; }
/* centred in the source document — marks the title block of the complaint policy */
.doc p.ctr { text-align: center; }
.doc p.ctr strong { color: var(--brand); }
.doc p.ctr + p.ctr { margin-top: -.5rem; }
.doc ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  list-style: none;
}
.doc ul > li {
  position: relative;
  margin-bottom: .45rem;
  padding-left: .35rem;
}
.doc ul > li::before {
  content: "";
  position: absolute;
  left: -.95rem;
  top: .72em;
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: var(--brand-lift);
}
.doc strong { font-weight: 650; }
.doc u { text-underline-offset: .16em; }

/* tables: never allowed to widen the page */
.table-wrap {
  margin: 0 0 1.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 22rem;
  font-size: .93rem;
}
.doc td {
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
  padding: .6rem .7rem;
  vertical-align: top;
  text-align: left;
}
.doc tr:last-child td { border-bottom: 0; }
.doc td:last-child { border-right: 0; }
.doc tr:first-child td {
  background: var(--paper-alt);
  font-weight: 600;
  color: var(--brand);
}

/* ---------- table of contents ---------- */

.toc {
  margin: 2.4rem 0 2.8rem;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.toc summary {
  cursor: pointer;
  padding: .8rem 1rem;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
/* the section headings carry their own numbering — no list markers here */
.toc ol {
  margin: 0;
  padding: 0 1rem 1rem;
  columns: 1;
  list-style: none;
}
.toc li {
  margin-bottom: .5rem;
  padding-left: .9rem;
  border-left: 2px solid var(--rule);
  break-inside: avoid;
}
.toc li:hover { border-left-color: var(--brand-lift); }
.toc a {
  text-decoration: none;
  font-size: .92rem;
}
.toc a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

footer.site {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  font-size: .88rem;
  color: var(--ink-soft);
}
.f-name { margin: 0 0 .8rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.f-name span { font-weight: 400; color: var(--ink-faint); font-size: .92em; }
.f-meta { margin: 0 0 .5rem; }
.f-meta span { color: var(--ink-faint); }
.f-nav { margin-top: 1.5rem; }
.f-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.f-nav a { text-decoration: none; }
.f-nav a:hover { text-decoration: underline; }
.f-nav a span {
  display: block;
  color: var(--ink-faint);
  font-size: .8rem;
}
.f-nav a[aria-current="page"] { font-weight: 600; color: var(--ink); }

@media (min-width: 46rem) {
  body { font-size: 17.5px; }
  main { padding-top: 3rem; }
  .toc ol { columns: 2; column-gap: 2rem; }
}

@media print {
  header.site, footer.site, .backbar, .toc { display: none; }
  body { font-size: 11pt; color: #000; }
  .doc { max-width: none; }
}
