/* actual.love legal pages — editorial stylesheet (v2.0) */
:root {
  --bg: #FBF7F2;
  --surface: #F4EDE4;
  --ink: #1E1A1D;
  --ink-soft: #4A4247;
  --muted: #7A7075;
  --rule: #E4D9CD;
  --accent: #9E2A4B;
  --accent-soft: rgba(158, 42, 75, .08);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161214;
    --surface: #211B1E;
    --ink: #F3ECE6;
    --ink-soft: #D6CCC6;
    --muted: #A2968F;
    --rule: #3A3034;
    --accent: #E48AA4;
    --accent-soft: rgba(228, 138, 164, .10);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 18px 16px;
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.logo {
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--accent); }
.site-header .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-header .back:hover { color: var(--accent); }

/* Layout */
.layout {
  max-width: 1080px; margin: 0 auto; padding: 40px 16px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
.doc { max-width: 720px; width: 100%; margin: 0 auto; min-width: 0; }

@media (min-width: 1040px) {
  .layout { grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 56px; }
  .doc { margin: 0; }
  .toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
}

/* Table of contents */
.toc {
  font-size: 14px; line-height: 1.5;
  border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; background: var(--surface);
}
.toc h2 {
  font-family: var(--body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 10px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; color: var(--muted); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 1040px) { .toc { background: transparent; border: 0; border-left: 1px solid var(--rule); border-radius: 0; padding: 4px 0 4px 20px; } }

/* Typography */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px;
}
.doc h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6vw, 48px);
  line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px;
  font-variation-settings: "opsz" 144;
}
.doc h2 {
  font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -.01em;
  margin: 48px 0 12px; padding-top: 8px;
  font-variation-settings: "opsz" 48;
}
.doc h3 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.doc h2 .anchor, .doc h3 .anchor {
  color: var(--muted); text-decoration: none; font-weight: 400; margin-left: 6px; opacity: 0; transition: opacity .15s;
}
.doc h2:hover .anchor, .doc h3:hover .anchor, .doc .anchor:focus { opacity: 1; }
.doc p { margin: 0 0 14px; color: var(--ink-soft); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .lede { font-size: 18px; line-height: 1.6; color: var(--ink); }
.doc .caps { font-size: 14px; letter-spacing: .01em; }

.meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 0 0 24px;
}

/* Callouts */
.note {
  font-size: 14px; color: var(--muted); font-style: italic; margin: 0 0 20px;
}
.box {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 16px 18px; background: var(--accent-soft); margin: 18px 0 22px;
}
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.doc th { font-weight: 600; color: var(--ink); background: var(--surface); }
.doc td:first-child { color: var(--ink); font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 16px 40px; font-size: 14px; color: var(--muted); }
.site-footer .inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--accent); }
.site-footer a[aria-current="page"] { text-decoration: underline; }

@media print {
  .toc, .site-footer nav, .anchor { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { display: block; padding: 0; }
}
.doc code { font-size: .9em; background: var(--surface); padding: 1px 6px; border-radius: 4px; }
