/* Terms of use and privacy policy: plain reading pages, linked from the parent area of both builds (the iPad opens
   them in Safari). No app script, so they load anywhere and print cleanly. */
@font-face { font-family: "Nunito"; src: url("../assets/fonts/Nunito-Variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #2B2D42; --ink-soft: #5E6273; --paper: #FFF8EC; --card: #FFFFFF; --accent: #E58A0C; --line: #EDE6DA; --todo: #FFE7A3;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.65 "Nunito", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 760px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 28px) 16px calc(env(safe-area-inset-bottom) + 48px); }
header.doc { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
header.doc img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
header.doc .app { font-weight: 800; color: var(--ink-soft); font-size: 15px; }
h1 { margin: 0; font-size: clamp(26px, 5vw, 34px); line-height: 1.2; font-weight: 900; }
h2 { margin: 34px 0 10px; font-size: 22px; line-height: 1.3; font-weight: 900; }
h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 800; }
p, li { overflow-wrap: anywhere; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
a { color: var(--accent); font-weight: 700; }
.meta { color: var(--ink-soft); font-size: 15px; font-weight: 700; margin: 4px 0 0; }
.summary { background: var(--card); border-radius: 20px; padding: 16px 20px; box-shadow: 0 3px 0 var(--line); margin: 20px 0; }
.summary h2 { margin-top: 4px; }
.summary ul { margin: 0; }
.note { background: #FFF1DC; border-radius: 16px; padding: 12px 16px; font-weight: 600; }
.draft { background: var(--todo); border-radius: 14px; padding: 10px 14px; font-weight: 800; font-size: 15px; margin-bottom: 18px; }
mark.todo { background: var(--todo); padding: 0 4px; border-radius: 4px; color: inherit; }
.table { overflow-x: auto; margin: 10px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: #FBF3E4; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
footer { margin-top: 40px; color: var(--ink-soft); font-size: 15px; }
@media print {
  body { background: #fff; font-size: 12pt; }
  .summary, table { box-shadow: none; border: 1px solid #ccc; }
  a { color: inherit; }
}
