/* Shared styles for Mosaic's legal pages (terms.html, privacy.html). Palette follows index.html and docs/BRAND_FOUNDATION.md. */
:root {
  --navy: #0b2343;
  --navy-deep: #061528;
  --blue: #376da4;
  --sky: #669bd0;
  --tile-1: #3f86d0;
  --tile-2: #7aa8dc;
  --tile-3: #a9c8ec;
  --page: #f6f8fb;
  --surface: #ffffff;
  --ink: #14233a;
  --ink-soft: #4a5b72;
  --rule: #dfe5ed;
  --link: #2d6aa8;
  --fill-bg: #fff4cc;
  --fill-ink: #6b4e00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #061528;
    --surface: #0b1d36;
    --ink: #e8eef6;
    --ink-soft: #9fb0c6;
    --rule: #1d3352;
    --link: #8fbbea;
    --fill-bg: #4a3a08;
    --fill-ink: #ffe28a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Navy band with the mark and wordmark, as on the home page */
.masthead {
  background:
    radial-gradient(40rem 20rem at 20% 0%, rgba(55,109,164,.35), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 20px 16px 44px;
}
.masthead-inner, .content { max-width: 760px; margin: 0 auto; }
.masthead h1 {
  clear: both;
  margin: 36px 0 6px;
  font-family: "Montserrat", sans-serif; font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.2;
}
.masthead .dates { color: #9fb0c6; font-size: .9rem; margin: 0; }

.draft {
  max-width: 760px; margin: -22px auto 0; position: relative;
  background: var(--fill-bg); color: var(--fill-ink);
  border-radius: 10px; padding: 12px 16px; font-size: .9rem;
}
@media (max-width: 792px) { .draft { margin-left: 16px; margin-right: 16px; } }

.content { padding: 28px 16px 56px; }
.content h2 {
  font-family: "Montserrat", sans-serif; font-weight: 600;
  font-size: 1.25rem; line-height: 1.3;
  margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.content h3 { font-size: 1rem; margin: 24px 0 4px; }
.content p, .content li { color: var(--ink); }
.content ul, .content ol { padding-left: 1.4em; }
.content li { margin: 4px 0; }
.content a { color: var(--link); }
.lead { font-size: 1.075rem; color: var(--ink-soft); }
.caps { text-transform: uppercase; font-size: .9rem; letter-spacing: .01em; }

.toc {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 14px 20px; margin: 24px 0 8px;
}
.toc strong { font-family: "Montserrat", sans-serif; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { columns: 2; column-gap: 32px; margin: 8px 0 0; font-size: .95rem; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: .925rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--ink-soft); font-size: .825rem; text-transform: uppercase; letter-spacing: .04em; }

/* Blanks the owner must fill in before publishing */
mark.fill { background: var(--fill-bg); color: var(--fill-ink); padding: 0 3px; border-radius: 3px; }

@media print {
  .masthead { background: none; color: #000; padding: 0; }
  .site-header, .site-footer { display: none; }
  .masthead .dates { color: #000; }
  body { background: #fff; color: #000; }
}

/* With the site header and footer (assets/css/site.css) */
.site-header { background: var(--navy); }
.masthead { padding-top: 8px; }
.content h2, .content h3 { color: var(--ink); }
.content p, .content ul, .content ol { margin: 0 0 1em; }
.content li > ul { margin: 6px 0 0; }
.toc { margin-bottom: 8px; }
.toc ol { margin: 8px 0 0; }
.content p.caps { margin-top: 1em; }
