/* =========================================================================
   sumwon.ai — legal/doc pages (privacy, terms)
   Sign palette: paper white, signage red, black ink.
   Display: Fraunces (serif) · Body/UI: Saira Semi Condensed.
   The landing (index.html) is self-contained; this stylesheet serves the docs.
   ========================================================================= */

:root {
  --paper:    #FBFAF7;
  --enamel:   #FFFFFF;
  --red:      #DA251D;
  --red-deep: #B81C16;
  --ink:      #0A0A0A;
  --ink-soft: #2B2A28;
  --body:     #3A3833;
  --muted:    #6E6A62;
  --hairline: #E4DFD5;
  --hair-soft: #EEEAE1;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Saira Semi Condensed", ui-sans-serif, system-ui, sans-serif;
  --font-cond:    "Saira Condensed", var(--font-sans);

  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.5vw + 14px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint plaster grain, like the sign's wall */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04; mix-blend-mode: multiply;
}

a { color: inherit; }
::selection { background: rgba(218, 37, 29, 0.18); }

.doc {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 32px) 120px;
}

/* top bar */
.doc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: clamp(32px, 6vw, 56px);
  border-bottom: 2px solid var(--red);
}
.doc-top .home { display: inline-flex; text-decoration: none; }
.doc-top .home .logo-img { height: 25px; width: auto; display: block; }
.doc-top .back {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.doc-top .back:hover { color: var(--red); }

.doc h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.doc .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.doc .meta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.6rem;
}

/* draft / counsel banner */
.banner {
  border: 1px solid rgba(218, 37, 29, 0.4);
  background: rgba(218, 37, 29, 0.05);
  border-left: 3px solid var(--red);
  border-radius: 3px;
  padding: 14px 18px;
  margin: 0 0 2.8rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.banner strong { color: var(--red-deep); font-weight: 700; }

.doc h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 2.8rem 0 0.5rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--hair-soft);
}
.doc h2 .num {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-right: 0.8em;
  vertical-align: 0.22em;
}
.doc h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.6rem 0 0.3rem;
}

.doc p, .doc li { color: var(--body); max-width: var(--measure); }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.doc li { margin: 0 0 0.5rem; }
.doc li::marker { color: var(--red); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a:not(.home):not(.back) {
  color: var(--red-deep);
  border-bottom: 1px solid rgba(218, 37, 29, 0.35);
  text-decoration: none;
}
.doc a:not(.home):not(.back):hover { border-color: var(--red-deep); }

/* placeholder tokens awaiting real values / counsel */
.ph {
  color: var(--red-deep);
  background: rgba(218, 37, 29, 0.09);
  border-bottom: 1px dashed rgba(218, 37, 29, 0.55);
  padding: 0 0.25em;
  border-radius: 2px;
  font-style: normal;
  white-space: nowrap;
}

.doc-foot {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--red);
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}
.doc-foot nav { display: flex; gap: 20px; }
.doc-foot a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.doc-foot a:hover { color: var(--red); }
