/*
 * The privacy policy the Play Store listing links to.
 *
 * Same stack as the app: vuit.org.vn's own Arial.
 */
:root {
  --blue: #00528A;
  --link: #0069AE;
  --ink: #161A1D;
  --muted: #5D646B;
  --line: #DDE2E6;
  --wash: #F6F9FB;
}

* { box-sizing: border-box; }

/*
 * The column is measured in rem and the root grows on wide screens, so the
 * text block widens with the window instead of sitting in a fixed ribbon —
 * but it widens by getting bigger, not by running the lines longer. A line of
 * running text stops being comfortable past roughly 75 characters however
 * large the screen is, which is what caps this at 44rem.
 */
html { font-size: 16px; }

@media (min-width: 1100px) {
  html { font-size: 17px; }
}

@media (min-width: 1600px) {
  html { font-size: 18px; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.wrap {
  width: min(92vw, 44rem);
  margin-inline: auto;
}

.langbar {
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  font-size: 14px;
}
.langbar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.langbar a { color: var(--link); text-decoration: none; }
.langbar a:hover { text-decoration: underline; }
.langbar [aria-current='page'] { color: var(--muted); font-weight: 600; }

header { border-bottom: 3px solid var(--blue); }
header .wrap { padding-top: 32px; padding-bottom: 22px; }

.org {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

h1 { font-size: 26px; line-height: 1.3; font-weight: 700; margin: 10px 0 0; }
.meta { font-size: 14px; color: var(--muted); margin-top: 10px; }

main { padding-top: 26px; padding-bottom: 60px; }
h2 { font-size: 18px; line-height: 1.4; font-weight: 700; margin: 32px 0 8px; scroll-margin-top: 16px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 8px; }
a { color: var(--link); }

.contact { margin: 0 0 14px; }
.contact div { margin-bottom: 2px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Legal pages get printed and filed, so give the paper version a sane form. */
@media print {
  .langbar { display: none; }
  html { font-size: 11.5pt; }
  body { line-height: 1.55; }
  .wrap { width: auto; }
  a { color: inherit; text-decoration: none; }
  h2 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}
