/*
  legal.css: the shared look for terms.html and privacy.html.
  One file so both legal pages always match. Same palette as index.html (the app's own colors), light-only on purpose.
  Legal pages are for READING, so: one narrow column (~70 characters a line), generous line height, clear headings.
*/
:root {
  --bg: #f5f8fa; --panel: #ffffff; --edge: #dfe3eb;
  --ink: #213343; --muted: #516f90; --dim: #7c98b6;
  --coral: #ff7a59; --coral-ink: #c8492b; --coral-soft: #fff1ec;
  --teal: #00799a; --teal-soft: #e5f3f6;
  --blank: #fff4c2;   /* yellow highlight for [BLANKS] Danny or the lawyer must fill in */
  --font: "Lexend Deca", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }

/* Top bar: the mark + name, linking home */
.top { padding-block: 18px; border-bottom: 1px solid var(--edge); background: var(--panel); }
.wrap { max-width: 760px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.brand img { width: 28px; height: 28px; }

main { padding-block: 40px 72px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 6px; text-wrap: balance; letter-spacing: -0.015em; }
.date { color: var(--muted); font-size: 0.92rem; margin: 0 0 24px; }
h2 { font-size: 1.15rem; margin: 36px 0 8px; padding-top: 22px; border-top: 1px solid var(--edge); text-wrap: balance; }
h2 .n { color: var(--coral-ink); margin-right: 6px; }   /* section number */
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 1.25em; }
li { margin: 4px 0; }
strong { font-weight: 600; }

/* "Draft" banner: delete the whole <div class="draft"> once the lawyer has reviewed the page */
.draft { background: var(--blank); border: 1px solid #e8d27a; border-radius: 12px; padding: 14px 18px; font-size: 0.92rem; margin-bottom: 28px; }
/* A blank to fill in. Search the file for class="blank" to find them all. */
.blank { background: var(--blank); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* The short summary at the top of each page */
.summary { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 18px 22px; margin-bottom: 8px; }
.summary h3 { margin: 0 0 6px; font-size: 1rem; }
.summary ul { margin: 0; }

/* "Clearly and conspicuously": the not-a-lawyer notice and the liability limits must stand out, not hide in grey text */
.notice { background: var(--coral-soft); border-left: 4px solid var(--coral); border-radius: 8px; padding: 14px 18px; margin: 12px 0 16px; }
.notice p:last-child { margin-bottom: 0; }
.caps { text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.01em; }

/* The list of outside services: a table that scrolls sideways on a phone instead of widening the page */
.table-scroll { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--edge); }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

footer { border-top: 1px solid var(--edge); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: 0.85rem; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--muted); }
