/* Shared styles for Kip's hosted legal/support pages. Same palette and type
   as the app itself (core/theme.ts, app.json's splash colors) and the original
   2026-09-09 privacy-policy artifact these pages replace. */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #FBF4EB;
  --bg-raised: #F1E4D2;
  --text: #241A12;
  --text-muted: #6B5946;
  --accent: #683014;
  --accent-soft: #8A4322;
  --line: rgba(104, 48, 20, 0.16);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18130C;
    --bg-raised: #241A10;
    --text: #F3E7D6;
    --text-muted: #C4AD91;
    --accent: #F0975A;
    --accent-soft: #F0975A;
    --line: rgba(243, 231, 214, 0.14);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 88px; }

header.masthead { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
header.masthead a { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.mark { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 22px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 10px;
}

h1.title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12; margin: 0 0 14px; text-wrap: balance;
}

.meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--text-muted);
  margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.meta strong { color: var(--text); font-weight: 600; }

.summary {
  background: var(--bg-raised); border-left: 3px solid var(--accent-soft);
  border-radius: 4px 10px 10px 4px; padding: 20px 22px; margin: 0 0 40px;
}
.summary p { margin: 0; }

nav.toc { background: var(--bg-raised); border-radius: 10px; padding: 20px 22px; margin-bottom: 44px; }
nav.toc h2 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 10px;
}
nav.toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 20px; }
nav.toc li { break-inside: avoid; margin-bottom: 6px; font-size: 14.5px; }
nav.toc li a { color: var(--text); text-decoration: none; }
nav.toc li a:hover { color: var(--accent-soft); text-decoration: underline; }
@media (max-width: 560px) { nav.toc ol { columns: 1; } }

section.clause { scroll-margin-top: 20px; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
section.clause:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

h2.clause-title { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 14px; text-wrap: balance; }
h3.sub { font-size: 14.5px; font-weight: 700; margin: 20px 0 8px; }

p, li { max-width: 66ch; }
section.clause p { margin: 0 0 14px; }
section.clause ul, section.clause ol { margin: 0 0 14px; padding-left: 22px; }
section.clause li { margin-bottom: 6px; }

ul.data-list { list-style: none; padding: 0 !important; }
ul.data-list li {
  display: grid; grid-template-columns: 170px 1fr; gap: 4px 16px;
  padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 15px; max-width: none;
}
ul.data-list li:last-child { border-bottom: none; }
ul.data-list .k { font-weight: 600; }
ul.data-list .v { color: var(--text-muted); }
@media (max-width: 560px) { ul.data-list li { grid-template-columns: 1fr; gap: 2px; } }

.callout {
  background: var(--bg-raised); border-left: 3px solid var(--accent-soft);
  border-radius: 4px 10px 10px 4px; padding: 20px 22px; margin-top: 8px;
}
.callout h3.sub:first-child { margin-top: 0; }
.callout ol { margin-bottom: 0; }

.email-card {
  background: var(--bg-raised); border-radius: 12px; padding: 20px 22px; margin-bottom: 36px;
}
.email-card a { font-size: 18px; font-weight: 600; word-break: break-all; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: none; }

footer.colophon {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
}
footer.colophon nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.colophon a { color: var(--text-muted); }
