/* Shared styles for subpages (privacy, terms, brokers) — matches the main site */
:root {
  --teal: #2f7d94;
  --teal-hover: #3a94ae;
  --navy: #1f3a4d;
  --navy-deep: #173040;
  --page: #f7f5f1;
  --ink: #2a2723;
  --muted: #5c574e;
  --muted-2: #6b665d;
  --muted-3: #8a857a;
  --line: #e6e2da;
  --todo-bg: #fdf3ee;
  --todo-ink: #b4562f;
  --pad: 40px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

/* top bar — mirrors the main site */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad); background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 24px; height: 24px; border: 3px solid var(--teal); flex: 0 0 auto; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: 0.04em; color: var(--navy); }
.topbar-right { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted-2); }
.btn {
  display: inline-block; border-radius: 2px; font-weight: 600; text-align: center;
  background: var(--teal); color: #fff; padding: 11px 22px;
}

/* document */
.doc { max-width: 800px; margin: 0 auto; padding: 56px var(--pad) 80px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.18em; color: var(--teal);
  text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
}
h1 {
  margin: 0 0 10px; font-weight: 800; color: var(--navy);
  font-size: clamp(30px, 4.5vw, 40px); line-height: 1.1; letter-spacing: -0.01em;
}
.dates { font-size: 13.5px; color: var(--muted-3); margin: 0 0 34px; }
.intro {
  font-size: 16px; color: var(--muted); line-height: 1.7;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
h2 {
  margin: 34px 0 10px; font-weight: 800; color: var(--navy);
  font-size: 18px; line-height: 1.25;
}
h2 .n { color: var(--teal); font-weight: 700; margin-right: 8px; }
h3 { margin: 20px 0 6px; font-size: 15px; font-weight: 700; color: var(--navy); }
p { margin: 0 0 12px; color: var(--muted); }
ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
li { margin-bottom: 7px; }
strong { color: var(--navy); font-weight: 700; }

table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-3); font-weight: 700; background: #efece6;
}
td { color: var(--muted); }
td strong { color: var(--navy); }

/* unmistakable placeholder — must be replaced before publishing */
.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  border: 1px dashed var(--todo-ink); border-radius: 2px;
  padding: 1px 7px; font-weight: 700; font-size: 0.94em; white-space: nowrap;
}

.callout {
  background: #eef1f0; border-left: 3px solid var(--teal);
  padding: 16px 18px; border-radius: 2px; margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

.toc {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 18px 22px; margin: 26px 0 8px;
}
.toc-title {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--muted-3); margin-bottom: 10px;
}
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14px; }
.toc li { margin-bottom: 5px; break-inside: avoid; }
.toc a { color: var(--teal); font-weight: 600; }

/* footer — mirrors the main site */
.foot {
  padding: 36px var(--pad); background: var(--navy-deep); color: #b9c6cf;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.foot-mark { width: 18px; height: 18px; border: 3px solid #7ec7db; flex: 0 0 auto; }
.foot-name { font-weight: 800; font-size: 18px; letter-spacing: 0.02em; color: #fff; }
.foot-info { font-size: 14px; line-height: 1.7; }
.foot-info a { color: #7ec7db; font-weight: 600; }
.foot-sep { color: #4a6b7d; }

@media (max-width: 900px) { :root { --pad: 28px; } }
@media (max-width: 600px) {
  :root { --pad: 20px; }
  body { font-size: 14.5px; }
  .topbar { padding: 14px var(--pad); }
  .topbar-addr { display: none; }
  .brand-name { font-size: 16px; white-space: nowrap; }
  .topbar .btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .doc { padding: 36px var(--pad) 56px; }
  .toc ol { columns: 1; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  td { border: 0; padding: 3px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 12px 0; display: block; }
}

@media print {
  .topbar, .foot { display: none; }
  body { background: #fff; font-size: 10.5pt; }
  .doc { max-width: none; padding: 0; }
  h2, table, .callout { break-inside: avoid; }
}
