/* Cape Town Life legal pages (privacy.html, terms.html): a calm, light, readable layout in the game's palette. */
:root {
  --ink: #1f3d37;
  --ink-2: #4b6560;
  --green: #27594b;
  --line: #d9e3de;
  --paper: #fffdf7;
  --sand: #f3efe2;
  --sea: #b8d6d0;
  --note: #fff6d8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sea) 0, #dcebe7 220px, var(--sand) 520px) no-repeat, var(--sand);
}
.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(255, 253, 247, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top a { color: var(--green); font-weight: 600; text-decoration: none; font-size: 15px; }
.top a:hover { text-decoration: underline; }
.top nav { display: flex; gap: 14px; font-size: 14px; }
main {
  max-width: 780px; margin: 28px auto 48px; padding: 28px clamp(18px, 5vw, 48px) 40px;
  background: var(--paper); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(31, 61, 55, .08);
}
@media (max-width: 820px) { main { margin: 0; border-radius: 0; border-left: 0; border-right: 0; } }
.eyebrow { font-size: 11px; letter-spacing: .18em; font-weight: 700; color: #7f9a8e; text-transform: uppercase; margin: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 6px 0 4px; color: var(--green); }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 24px; line-height: 1.25; margin: 40px 0 8px; color: var(--green); scroll-margin-top: 70px; }
h3 { font-size: 16px; margin: 22px 0 4px; scroll-margin-top: 70px; }
p, li { color: var(--ink); }
.meta { color: var(--ink-2); font-size: 14px; margin: 0 0 20px; }
a { color: var(--green); }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.summary, .notice, .box {
  border-radius: 14px; padding: 14px 18px; margin: 18px 0;
}
.summary { background: #eef6f3; border: 1px solid #cfe3dc; }
.notice { background: var(--note); border: 1px solid #ecdca4; }
.box { background: #f7f5ee; border: 1px solid var(--line); }
.summary h2, .notice h2, .box h2 { margin-top: 4px; font-size: 20px; }
.toc { columns: 2 220px; column-gap: 28px; font-size: 15px; padding-left: 20px; }
.toc li { break-inside: avoid; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { background: #f1f5f2; font-weight: 600; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef2ef; padding: 1px 5px; border-radius: 5px; }
dl.supplier { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 6px 14px; margin: 10px 0; }
dl.supplier dt { font-weight: 600; color: var(--ink-2); }
dl.supplier dd { margin: 0; }
@media (max-width: 520px) { dl.supplier { grid-template-columns: 1fr; } dl.supplier dd { margin-bottom: 8px; } }
/* Details the owner still has to fill in before launch. */
.ph { background: #ffe9a8; border-radius: 4px; padding: 0 3px; font-weight: 600; }
footer { max-width: 780px; margin: 0 auto 40px; padding: 0 20px; font-size: 13px; color: var(--ink-2); text-align: center; }
footer a { margin: 0 6px; }
@media print { .top { position: static; } body { background: #fff; } main { box-shadow: none; border: 0; } }
