/* Shared styling for the legal pages. Palette mirrors index.html. */
:root {
  --navy: #113747;
  --navy-deep: #0b2732;
  --blue: #2f7f9d;
  --blue-soft: #dbe8ed;
  --ink: #17242a;
  --muted: #5f6d73;
  --paper: #ffffff;
  --offwhite: #f6f8f8;
  --line: #d8e0e3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }

/* ---- logo (identical to index.html) ---- */
.fs-logo {
  display: inline-flex; align-items: baseline; gap: .18em;
  font-family: 'STIX Two Text', Georgia, 'Times New Roman', serif;
  font-size: 38px; line-height: 1; white-space: nowrap; text-decoration: none;
}
.fs-mono { font-weight: 700; color: #1C3A5E; letter-spacing: -.01em; }
.fs-s { margin-left: -.065em; }
.fs-word { font-weight: 400; color: #85888B; font-size: 1em; }
.fs-logo--dark .fs-mono { color: #F3F1EC; }
.fs-logo--dark .fs-word { color: rgba(243,241,236,.72); }
.footer-logo { font-size: 28px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,29,37,.97);
  border-bottom: 1px solid #26434e;
  backdrop-filter: blur(8px);
  color: white;
}
.nav-wrap {
  min-height: 74px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav-right { display: flex; align-items: center; gap: 20px; font-size: .95rem; }
.nav-right a { text-decoration: none; }
.nav-right a:hover { color: #9fd1e3; }
.language-switch {
  border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: white;
  border-radius: 3px; padding: 6px 11px;
  font: inherit; font-size: .85rem; cursor: pointer;
}
.language-switch:hover { border-color: #9fd1e3; color: #9fd1e3; }

/* ---- content ---- */
main { padding: 60px 0 80px; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 8px; color: var(--navy); }
h2 { font-size: 1.15rem; margin: 38px 0 10px; color: var(--navy); }
h3 { font-size: 1rem; margin: 24px 0 6px; color: var(--navy); }
p, li { color: #35474e; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: .94rem; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--offwhite); font-weight: 600; color: var(--navy); width: 34%; }
.updated { color: var(--muted); font-size: .9rem; margin: 0 0 28px; }

/* Text still to be supplied. Search for "todo" to find every one. */
.todo {
  background: #fff4d6; border-bottom: 1px solid #e0c168;
  padding: 1px 5px; border-radius: 2px; font-style: normal;
}

/* Placeholder banner — delete once the text has been reviewed. */
.draft-banner {
  background: #fff8e6; border: 1px solid #e6cf8f; border-left: 4px solid #d9a521;
  padding: 14px 18px; border-radius: 4px; margin-bottom: 34px; font-size: .92rem;
}
.draft-banner strong { color: #8a6100; }

/* ---- language blocks ----
   `revert` restores each element's natural display, so inline <span>s in the
   footer stay inline while <div>/<p> blocks stay blocks. */
[data-lang] { display: none; }
[data-lang].active { display: revert; }

/* ---- footer ---- */
.site-footer { background: #071d25; color: #bfd0d6; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid strong { color: white; display: block; margin-bottom: 8px; }
.footer-grid a { color: #bfd0d6; text-decoration: none; }
.footer-grid a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #26434e; margin-top: 30px;
  padding-top: 20px; font-size: .85rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  main { padding: 40px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .fs-logo { font-size: 30px; }
}
