/* Shared styles for privacy.html and terms.html.
   index.html stays self-contained on purpose — its CSS has to survive being
   inlined into a Claude artifact, so don't move it in here. */

:root {
  --ink:        #17222E;
  --ink-2:      #2E3D4E;
  --paper:      #FCFBF9;
  --paper-2:    #F2EFE9;
  --rule:       #E0DBD1;
  --muted:      #5D6773;
  --brand:      #2A5FAF;
  --brand-soft: #E2EAF8;
  --flag:       #8A5A12;
  --flag-bg:    #FBF1DC;
  --flag-rule:  #E8D3A6;

  --t-body: clamp(1rem, 0.97rem + 0.18vw, 1.08rem);
  --t-lg:   clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --t-h2:   clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --t-h1:   clamp(2.1rem, 1.6rem + 2.2vw, 3.2rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #EDEFF2;
    --ink-2:      #C7D0DA;
    --paper:      #0C151E;
    --paper-2:    #13202C;
    --rule:       #22313F;
    --muted:      #8D9AA8;
    --brand:      #86B1EE;
    --brand-soft: #17263B;
    --flag:       #E8C070;
    --flag-bg:    #2B2213;
    --flag-rule:  #4A3A1B;
  }
}
:root[data-theme="dark"] {
  --ink:        #EDEFF2;
  --ink-2:      #C7D0DA;
  --paper:      #0C151E;
  --paper-2:    #13202C;
  --rule:       #22313F;
  --muted:      #8D9AA8;
  --brand:      #86B1EE;
  --brand-soft: #17263B;
  --flag:       #E8C070;
  --flag-bg:    #2B2213;
  --flag-rule:  #4A3A1B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}
.mark { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.mark img { display: block; height: 34px; width: auto; }
.mark-name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
}
.back { font-size: .93rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--ink); }

/* ---------- document ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.doc h1 { font-size: var(--t-h1); margin-bottom: 1rem; }
.doc .standfirst { font-size: var(--t-lg); color: var(--muted); margin-bottom: 1.5rem; }
.dates {
  font-size: .85rem; color: var(--muted);
  padding-block: .9rem; border-block: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.doc section { margin-bottom: 2.5rem; }
.doc h2 {
  font-size: var(--t-h2);
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  margin-bottom: .9rem;
}
.doc section:first-of-type h2 { border-top: 0; padding-top: 0; }

.doc h2 .n {
  font-family: 'Karla', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  color: var(--brand); display: block; margin-bottom: .5rem;
}

dl.defs { margin: 0 0 1.1rem; }
dl.defs dt { font-weight: 700; margin-top: .9rem; }
dl.defs dd { margin: .2rem 0 0; color: var(--muted); }

.note {
  background: var(--paper-2);
  border-left: 2px solid var(--brand);
  padding: 1rem 1.2rem;
  margin-bottom: 1.1rem;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- draft banner + fill-in placeholders ---------- */
/* DELETE the .draft-banner block from each page once your attorney has
   reviewed it. The .fill spans mark every value you must supply. */
.draft-banner {
  background: var(--flag-bg);
  border-bottom: 1px solid var(--flag-rule);
  color: var(--flag);
  font-size: .9rem;
  padding-block: .85rem;
}
.draft-banner strong { font-weight: 700; }
.draft-banner .wrap { max-width: 52rem; }

.fill {
  background: var(--flag-bg);
  color: var(--flag);
  border-bottom: 1px dashed var(--flag-rule);
  padding: 0 .25rem;
  font-weight: 600;
  /* these strings are long; let them wrap or they push the page sideways */
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- footer ---------- */
footer.site { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: 2.25rem 2.75rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .93rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.disclosure { font-size: .8rem; line-height: 1.6; color: var(--muted); margin: 0; }

@media (max-width: 520px) {
  .mark-name { display: none; }
}
