/* Shared styling for Memoira's text pages: privacy, terms, support. */
:root {
  --canvas: #f7f1ea;
  --paper: #fffdf9;
  --ink: #2a2420;
  --ink-soft: #6b5d51;
  --ink-faint: #9b8d7f;
  --rose: #a05f5e;
  --brass: #8a6b3f;
  --rule: #e2d7c8;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Source Serif 4', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #17130f; --paper: #201b16; --ink: #efe6d9; --ink-soft: #a89a8a;
    --ink-faint: #7b6e60; --rose: #cc8886; --brass: #c69c60; --rule: #352d25;
  }
}
:root[data-theme="dark"] {
  --canvas: #17130f; --paper: #201b16; --ink: #efe6d9; --ink-soft: #a89a8a;
  --ink-faint: #7b6e60; --rose: #cc8886; --brass: #c69c60; --rule: #352d25;
}
:root[data-theme="light"] {
  --canvas: #f7f1ea; --paper: #fffdf9; --ink: #2a2420; --ink-soft: #6b5d51;
  --ink-faint: #9b8d7f; --rose: #a05f5e; --brass: #8a6b3f; --rule: #e2d7c8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.masthead {
  padding: 1.4rem var(--gutter);
  max-width: 52rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.22rem; color: var(--ink); text-decoration: none;
}
.wordmark img { width: 28px; height: 28px; border-radius: 22.4%; display: block; }
.masthead a.back {
  font-family: var(--sans); font-size: 0.9rem; color: var(--brass); text-decoration: none;
}
.masthead a.back:hover { text-decoration: underline; }

main {
  max-width: 52rem;
  margin-inline: auto;
  padding: 1.5rem var(--gutter) 4.5rem;
}
.doc { max-width: 38rem; display: flex; flex-direction: column; gap: 1.15rem; }

h1 {
  font-weight: 400; margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; text-wrap: balance;
}
h2 {
  font-weight: 400; margin: 2rem 0 0;
  font-size: 1.42rem; line-height: 1.25;
  padding-top: 1.6rem; border-top: 1px solid var(--rule);
}
h3 { font-size: 1.05rem; font-weight: 600; margin: 1rem 0 0; }
p, li { margin: 0; }
ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
a { color: var(--rose); }

.stamp {
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.summary {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.2rem 1.35rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.summary h2 {
  margin: 0; padding: 0; border: none;
  font-size: 1.1rem; font-family: var(--sans); font-weight: 700;
  letter-spacing: 0.02em;
}
.summary ul { gap: 0.4rem; }

/* Anything the owner must fill in before this goes live. */
.todo {
  background: #fdf2d8;
  color: #6b4f16;
  border-radius: 4px;
  padding: 0.05em 0.4em;
  font-family: var(--sans);
  font-size: 0.88em;
  font-weight: 600;
}
:root[data-theme="dark"] .todo { background: #4a3a12; color: #f2dda2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .todo { background: #4a3a12; color: #f2dda2; }
}

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brass); font-weight: 600; }

.foot {
  border-top: 1px solid var(--rule);
  padding: 2rem var(--gutter) 3rem;
  font-family: var(--sans); font-size: 0.88rem; color: var(--ink-faint);
}
.foot__inner {
  max-width: 52rem; margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; justify-content: space-between;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
/* 44px tap targets — this audience is 65+ and reads on a phone */
.foot nav a, .masthead a.back { display: inline-block; padding: 0.62rem 0; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--brass); }
