/* Shared styling for Attune's static pages (privacy, terms, safety, contact,
   accessibility). Plain CSS, no build step and no JavaScript, so these stay
   readable even if the app itself is broken — which is exactly when someone is
   most likely to be looking for the contact page. */

/* The navy theme (owner, 2 and 4 Oct 2026; release 0.11.0): the same colour and font tokens as the
   app (app/src/style.css), kept here because these pages have no build step. Fonts are served from
   /fonts/ (SIL OFL 1.1; the CSP is 'self'), latin only. One light theme. */
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('/fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url('/fonts/source-serif-4-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --navy: #12304A; --cream: #FAF7F1; --sand: #EFE6D9; --clay: #B5643C;
  --ink: #233240; --muted: #5C6B78; --line: #E3DED4; --white: #FFFFFF;
  --on-navy: #FAF7F1; --on-navy-muted: #C9D2DA; --line-on-navy: rgba(250, 247, 241, 0.16); --navy-hover: #1C4266;
  --ok: #1E6B3A; --ok-surface: #E6F2EA; --err-text: #8A1C12; --err-surface: #FBEDEA;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  /* The names these pages already use. */
  --bg: var(--cream); --card: var(--white); --coral: var(--clay); --violet: var(--navy); --focus: var(--navy);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 72px; }

header.site {
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  padding: 20px 0;
}
header.site .wrap { padding-bottom: 0; display: flex; align-items: center; gap: 12px; }
header.site a.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: -0.01em;
  color: var(--navy); text-decoration: none;
  white-space: nowrap;   /* "I Can Wait" stays on one line; the links wrap instead */
}
header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
header.site nav a:hover { color: var(--navy); text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; }
h1 { font-size: 2.5rem; font-weight: 500; line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.015em; }
h2 { font-size: 1.6rem; font-weight: 500; line-height: 1.2; margin: 48px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 28px 0 6px; }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }
/* Under the date on the legal pages (rename, 5 Oct 2026): pulled up to sit with it. */
.name-change { color: var(--muted); font-size: 0.9rem; margin: -24px 0 32px; }
.lede { font-size: 1.12rem; color: var(--ink); }

p, li { color: var(--ink); }
ul { padding-left: 20px; }
li { margin: 6px 0; }
a { color: var(--navy); text-underline-offset: 3px; }

.note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0;
}
.note strong { display: block; margin-bottom: 4px; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.94rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* Long values (data categories, provider names) must not force a sideways
   scroll on a phone. */
td, th { overflow-wrap: anywhere; }
/* The decisions table on /privacy/: each decision's short name gets room, so on a phone it
   wraps between words rather than inside one. */
table.decisions td:first-child, table.decisions th:first-child { width: 30%; overflow-wrap: break-word; }
/* The supplier table on /privacy/ (4 Oct 2026): who and where get room too, so "Google (Gmail and
   Google Meet)" and "United States and other countries ..." wrap between words. */
table.suppliers td:first-child, table.suppliers th:first-child,
table.suppliers td:last-child, table.suppliers th:last-child { width: 22%; overflow-wrap: break-word; }

/* The footer: a navy band, as on the front page. */
footer.site {
  border-top: 1px solid var(--line-on-navy);
  margin-top: 56px;
  padding: 40px 0 60px;
  background: var(--navy);
  color: var(--on-navy-muted);
  font-size: 0.9rem;
}
footer.site .wrap { padding-bottom: 0; }
footer.site .cols { display: flex; gap: 48px; flex-wrap: wrap; }
footer.site h4 { color: var(--on-navy); font-size: 11px; font-weight: 600; text-transform: uppercase;
                 letter-spacing: 0.18em; margin: 0 0 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 7px 0; color: var(--on-navy); }
footer.site p { color: var(--on-navy-muted); }
footer.site a { color: var(--on-navy); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .fine { margin-top: 26px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
footer.site a:focus-visible { outline-color: var(--cream); }

input[type="checkbox"], input[type="radio"] { accent-color: var(--navy); }
/* Buttons on these pages (the listing form): solid navy, 12px radius. */
button { font-family: inherit; }
button[type="submit"] { background: var(--navy); color: var(--on-navy); }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  footer.site .cols { gap: 28px; }
  header.site nav { width: 100%; margin-left: 0; }
}
