/* Shared styling for Meresay's legal pages — brings them into the brand
   (Instrument Sans, warm paper/ink) so they read as part of the product,
   not a bolted-on document. The DRAFT banner and noindex stay: these pages
   are pending counsel and are not in effect. */

:root {
  --paper: #FAF7F0;
  --paper-2: #F3EEE3;
  --ink: #2B2620;
  --muted: #6B6356;
  --line: #E7DED0;
  --coral: #E85D4F;
  --warn: #9A5B1E;
  --warn-bg: #FBEFD9;
  --warn-line: #EDD3A6;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--coral); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 2px; }

/* Draft warning — deliberately loud. Do not soften while these are unreviewed. */
.draft-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid var(--warn-line);
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Branded top bar linking home. */
.legal-nav {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-nav .wordmark {
  display: inline-flex; align-items: center; gap: 0.42em;
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.legal-nav .wordmark img { height: 1.05em; width: auto; display: block; }
.legal-nav .back { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.legal-nav .back:hover { color: var(--ink); }

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 1.2rem 0 0.4rem;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}
p { margin-top: 0.9rem; }
ul, ol { margin-top: 0.9rem; padding-left: 1.3rem; }
li { margin: 0.5rem 0; }
strong { font-weight: 600; }

/* A jump-to menu for the long documents (privacy, terms). */
.toc {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.92rem;
}
.toc .toc-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.toc ol {
  margin-top: 0.6rem; padding: 0; list-style: none;
  columns: 2; column-gap: 2rem;
}
.toc li { margin: 0.25rem 0; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--coral); text-decoration: underline; }

/* Index card list. */
.doc-list { margin-top: 1.5rem; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.doc-list li { margin: 0; }
.doc-list a.card {
  display: block; padding: 1.1rem 1.25rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease;
}
.doc-list a.card:hover { border-color: var(--coral); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .doc-list a.card:hover { transform: none; } }
.doc-list a.card b { font-size: 1.05rem; font-weight: 600; }
.doc-list a.card span { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.92rem; }

/* Tables (privacy data inventory). */
.table-wrap { overflow-x: auto; margin-top: 1rem; border-radius: 12px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 34rem; }
th, td { padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th {
  background: var(--paper-2);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
tr:last-child td { border-bottom: 0; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em;
}

/* Callout box (DMCA designated agent). */
.agent-box {
  margin-top: 1rem; padding: 1rem 1.25rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
  line-height: 1.8;
}

footer {
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
}
footer p { margin-top: 0.6rem; }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 0.8rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
