:root {
  color-scheme: light dark;
  --bg: #F3EEE5;
  --text: #1C1915;
  --body: #3B352E;
  --sub: #5F584E;
  --accent: #A5441C;
  --line: rgba(28, 25, 21, .14);
  --pill: #1C1915;
  --pill-text: #F3EEE5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --text: #F2ECE2;
    --body: #DAD2C5;
    --sub: #B4AB9E;
    --accent: #E2895F;
    --line: rgba(242, 236, 226, .16);
    --pill: #F2ECE2;
    --pill-text: #121110;
  }
}

/* The visitor's switch outranks the OS. */
:root[data-appearance="light"] {
  --bg: #F3EEE5;
  --text: #1C1915;
  --body: #3B352E;
  --sub: #5F584E;
  --accent: #A5441C;
  --line: rgba(28, 25, 21, .14);
  --pill: #1C1915;
  --pill-text: #F3EEE5;
}

:root[data-appearance="dark"] {
  --bg: #121110;
  --text: #F2ECE2;
  --body: #DAD2C5;
  --sub: #B4AB9E;
  --accent: #E2895F;
  --line: rgba(242, 236, 226, .16);
  --pill: #F2ECE2;
  --pill-text: #121110;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  font-variant-numeric: lining-nums;
}

a { color: var(--accent); }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px max(24px, env(safe-area-inset-right)) 64px max(24px, env(safe-area-inset-left));
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  line-height: 1;
}

.brand img { display: block; border-radius: 7px; }

.head {
  padding: clamp(36px, 7vw, 64px) 0 26px;
  border-bottom: 1px solid var(--text);
}

.meta {
  margin: 0;
  color: var(--sub);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 400;
  line-height: 1.04;
}

.intro {
  margin: 20px 0 0;
  color: var(--body);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(18px, 2.6vw, 21px);
  line-height: 1.45;
}

.clause { display: flex; gap: 14px; padding-top: 30px; }

.clause > div { flex: 1; min-width: 0; }

.clause-n {
  flex: none;
  width: 24px;
  color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.2;
}

h2 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.8;
  text-transform: uppercase;
}

.clause p {
  margin: 8px 0 0;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* Opened from the app with ?app=1: the app supplies its own navigation. */
.in-app .chrome { display: none; }
.in-app .head { padding-top: 12px; }

/* Every language is in the page; legal.js picks one. */
.doc[lang="vi"] { display: none; }
.lang-vi .doc[lang="vi"] { display: block; }
.lang-vi .doc[lang="en"] { display: none; }
