/* Layaa legal pages.
   Set at 19px with a 68-character measure: these are read by adult children
   making a decision on a parent's behalf, and sometimes by the parent. */

:root {
  /* Direction A, "Quiet" — the same values the app ships. Names are kept from
     the earlier scheme so the legal pages restyle without edits. */
  --eucalypt: #0A6456;   /* the single accent */
  --clay: #8A4212;       /* a problem, never decoration */
  --sand: #DCF0EB;       /* the soft teal fill */
  --paper: #F7F9F8;      /* the page: deliberately not white */
  --surface: #FFFFFF;    /* raised only */
  --ink: #0E1512;
  --ink-muted: #5A6B68;
  --line: #E4E9E7;
  --measure: 68ch;

  /* The bar at the top sits on its own, deliberately. It used to be white on a
     near-white page, which read as nothing at all. Deep teal gives the site a
     definite edge and holds against either theme's ground, so these two are the
     one pair that does not flip below. */
  --nav: #074C42;
  --nav-ink: #FFFFFF;
}

/* The app is light only, for eyesight reasons. The website is read on
   laptops at night, so it honours the browser's setting. */
@media (prefers-color-scheme: dark) {
  :root {
    --eucalypt: #6FC2AE;
    --clay: #E8A07C;
    --sand: #13241F;
    --paper: #0E1512;
    --surface: #16201D;
    --ink: #F2F5F4;
    --ink-muted: #A8B5B2;
    --line: #2A3A36;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.65;
}

.masthead {
  background: var(--nav);
  padding: 20px 24px;
}

.masthead a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--nav-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
}

/* The mark's stroke is currentColor so it tracks the bar's ink; the figure
   stays clay, which is the one warm note in the identity. */
.masthead a:hover { color: var(--nav-ink); }

.masthead a:focus-visible {
  outline: 2px solid var(--nav-ink);
  outline-offset: 4px;
  border-radius: 4px;
}

.masthead svg { display: block; }

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

h1, h2, h3 {
  font-family: Lexend, "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  margin: 0 0 8px;
}

h2 {
  font-size: clamp(23px, 4vw, 27px);
  line-height: 1.25;
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}

p, li { color: var(--ink); }

a { color: var(--clay); }
a:hover { color: var(--eucalypt); }

.updated {
  color: var(--ink-muted);
  font-size: 16px;
  margin: 0 0 40px;
}

.lede {
  font-size: 21px;
  color: var(--ink-muted);
  margin-bottom: 36px;
}

/* A plain-English summary above each dense section. The legal text still
   governs, but nobody should have to read it to know what it says. */
.plain {
  background: var(--sand);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 16px 0 24px;
}

.plain strong { color: var(--eucalypt); }

.callout {
  border: 1.5px solid var(--clay);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 28px 0;
}

.draft {
  background: #fff4e5;
  border: 2px solid #b8791f;
  color: #4a3208;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 40px;
}

@media (prefers-color-scheme: dark) {
  .draft { background: #2e2310; color: #f3e2c4; border-color: #b8791f; }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 17px;
}

th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { color: var(--ink-muted); font-weight: 700; }

.table-scroll { overflow-x: auto; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 8px; }

.contact {
  background: var(--sand);
  border-radius: 16px;
  padding: 24px;
  margin-top: 48px;
}

.contact p { margin: 6px 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px 64px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
}

footer a { margin: 0 10px; }

/* Touch targets stay comfortable for older hands. */
a, button { min-height: 44px; }
main a { text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
  border-radius: 4px;
}
