/* Quietext legal site. Tokens mirror docs/DESIGN.md (Mist light / Deep dark). */
:root {
  --bg: #EEF3F2;
  --surface: #FFFFFF;
  --surface-2: #E1EAE8;
  --line: #CFDCD9;
  --text: #10201F;
  --text-2: #4E6361;
  --brand: #1D5C63;
  --on-brand: #FFFFFF;
  --radius-card: 24px;
  --radius-chip: 12px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1717;
    --surface: #142322;
    --surface-2: #1C2E2D;
    --line: #27403E;
    --text: #E6EFED;
    --text-2: #9BB1AE;
    --brand: #6FB7B5;
    --on-brand: #0C1717;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; padding-top: 16px; padding-bottom: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Typography */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 40px); margin: 40px 0 8px; }
h2 { font-size: 24px; margin: 40px 0 10px; }
h3 { font-size: 19px; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.meta { color: var(--text-2); font-size: 15px; margin-bottom: 28px; }
.lead { font-size: 19px; color: var(--text-2); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

/* Settle line motif */
.settle { display: block; width: 100%; height: 28px; margin: 8px 0 24px; color: var(--line); }
.settle .calm { color: var(--brand); }

/* Cards and tables */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px; margin: 0 0 16px;
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--surface-2); }

/* Buttons */
.button {
  display: inline-block; background: var(--brand); color: var(--on-brand);
  text-decoration: none; font-weight: 600; padding: 14px 26px; border-radius: 999px;
}
.button:hover { filter: brightness(1.05); }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(34px, 8vw, 52px); margin-top: 24px; }

ol.steps { padding-left: 22px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details > :last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; color: var(--text-2); font-size: 14px; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 32px; }
.site-footer .nav { margin-bottom: 10px; }
