/* Shared styling for the legal pages. Tokens mirror index.html so the
   documents read as part of the same site. */
:root {
  --bg: #F6F3EE; --surface: #FFFFFF; --card: #FBF9F4;
  --ink: #1A1A2E; --ink2: #4A463F; --ink3: #7A7160;
  --rule: #D9D2C4; --rule-soft: #EBE4D6;
  --product: #7B5EA7; --product-tint: #F0EAF8; --product-dark: #5C3D8F;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw: 760px; --gutter: clamp(20px, 5vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--product-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--product); }

.masthead {
  border-bottom: 1px solid var(--rule); background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.masthead .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-family: var(--serif); font-size: 19px; font-weight: 600; text-decoration: none; color: var(--ink); }
.masthead nav { display: flex; gap: 18px; font-size: 14px; }
.masthead nav a { text-decoration: none; color: var(--ink3); }
.masthead nav a[aria-current="page"] { color: var(--product-dark); font-weight: 600; }

main { max-width: var(--maxw); margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 96px; }

h1 { font-family: var(--serif); font-size: clamp(30px, 6vw, 42px); line-height: 1.15; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.dates { color: var(--ink3); font-size: 15px; margin: 0 0 32px; }
h2 { font-family: var(--serif); font-size: clamp(21px, 3.6vw, 25px); font-weight: 600; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--rule-soft); letter-spacing: -0.005em; }
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 17px; font-weight: 600; margin: 26px 0 8px; color: var(--ink); }
p, li { color: var(--ink2); }
ul, ol { padding-left: 22px; }
li { margin: 7px 0; }
li::marker { color: var(--ink3); }
strong { color: var(--ink); font-weight: 600; }

.lede { font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--ink2); margin-bottom: 32px; }

.toc { background: var(--card); border: 1px solid var(--rule-soft); border-radius: 12px; padding: 20px 24px; margin: 0 0 40px; }
.toc h2 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink3); margin: 0 0 10px; border: none; padding: 0; font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; columns: 2; column-gap: 32px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.callout { background: var(--product-tint); border-left: 3px solid var(--product); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout p:first-child { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
@media (min-width: 620px) { table { display: table; } }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink3); font-weight: 600; background: var(--card); }
td { color: var(--ink2); }

/* Deliberately loud: an unfilled placeholder must be impossible to publish by
   accident. Search the source for FILL to find every one. */
.fill { background: #FFE8A3; color: #6B4E00; border: 1px dashed #B38600; border-radius: 4px; padding: 0 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; font-weight: 600; white-space: nowrap; }

footer { border-top: 1px solid var(--rule); background: var(--surface); }
footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter); font-size: 14px; color: var(--ink3); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--ink3); }
