/* Master Classter — legal pages
   Single stylesheet. No external fonts, no CDN. */

:root {
  --bg: #f8fafc;          /* primaryBackground */
  --surface: #ffffff;     /* secondaryBackground */
  --ink: #000000;         /* primaryText */
  --ink-soft: #3f4654;    /* darkened secondaryText for body copy contrast */
  --ink-muted: #99a1af;   /* secondaryText */
  --line: #e5e7eb;        /* borderDefault */
  --card: #f9fafb;        /* cardBackground */
  --accent: #3390ec;      /* Primary */
  --accent-soft: #eff6ff; /* infoBackground */
  --maxw: 840px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Layout ---- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

/* ---- Main ---- */

main {
  padding: 40px 0 56px;
}

.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 44px;
}

.doc-meta {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 34px 0 12px;
  padding-top: 6px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
}

p {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.lead {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 22px;
}

ul, ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
  color: var(--ink-soft);
}

li {
  margin-bottom: 7px;
}

a {
  color: var(--accent);
}

strong {
  color: var(--ink);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* ---- Index list of documents ---- */

.doc-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.doc-list li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.doc-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.doc-list a {
  display: block;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}

.doc-list a:hover {
  color: var(--accent);
}

.doc-list a .arrow {
  float: right;
  color: var(--ink-muted);
  font-weight: 400;
}

.doc-list a:hover .arrow {
  color: var(--accent);
}

/* ---- Callout (used on delete-account) ---- */

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---- Other documents nav at page bottom ---- */

.more-docs {
  margin-top: 36px;
}

.more-docs h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.more-docs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.more-docs li {
  margin-bottom: 8px;
}

.more-docs a {
  text-decoration: none;
}

.more-docs a:hover {
  text-decoration: underline;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
  margin-top: 8px;
}

.site-footer .wrap {
  font-size: 14px;
  color: var(--ink-muted);
}

.site-footer p {
  margin: 0 0 6px;
  color: var(--ink-muted);
}

.site-footer a {
  color: var(--ink-soft);
}

/* ---- Placeholder marker (visible only as faint hint) ---- */

.placeholder {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  color: var(--ink-muted);
  font-size: 15px;
  margin: 16px 0;
}

/* ---- Mobile ---- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  main {
    padding: 24px 0 40px;
  }
  .doc {
    padding: 26px 20px;
    border-radius: 8px;
  }
  .wrap {
    padding: 0 16px;
  }
  h1 {
    font-size: 25px;
  }
  h2 {
    font-size: 18px;
  }
  .doc-list a {
    padding: 16px 2px;
  }
}
