/* ================================
   SYMBOL STRUCTURE — Prose Pages
   Standalone stylesheet for terms.html and about.html.
   Design tokens mirror main.css; body scroll intentionally unlocked.
   ================================ */

/* ---- Design tokens (mirrored from main.css) ---- */
:root {
  --primary:       #27200f;
  --accent:        #5b8597;
  --accent-hover:  #7fafc1;
  --bg:            #FEF8EF;
  --card-bg:       #ffffff;
  --muted:         #7e6e5e;
  --copper:        #af8662;
  --radius:        10px;
}

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

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--primary);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ================================
   HEADER — identical visual to main app
   ================================ */
.sf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='3.5' fill='rgba(0%2C0%2C0%2C0.18)'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #27200f 0%, #3b1720 60%, #27200f 100%);
  background-size: 28px 28px, 100% 100%;
  border-bottom: 2px solid var(--copper);
  color: var(--bg);
  flex-shrink: 0;
}
.sf-header-brand { display: flex; align-items: baseline; gap: 10px; }
.sf-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--copper);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  text-decoration: none;
}
.sf-tagline {
  font-size: 0.68rem;
  font-weight: 300;
  opacity: 0.7;
  white-space: nowrap;
  color: var(--bg);
}

/* ---- Back button ---- */
.sf-back-btn {
  padding: 5px 12px;
  border: 1.5px solid var(--copper);
  border-radius: 20px;
  background: transparent;
  color: var(--bg);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.sf-back-btn:hover { background: var(--copper); color: var(--primary); }

/* ================================
   PROSE LAYOUT
   ================================ */
.sf-prose-main {
  flex: 1;
  padding: 40px 20px 60px;
  display: flex;
  justify-content: center;
}

.sf-prose {
  width: 100%;
  max-width: 660px;
}

/* ---- Page title ---- */
.sf-prose h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--primary);
}

.sf-prose-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ---- Sections ---- */
.sf-prose section {
  margin-bottom: 32px;
}

.sf-prose h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(175,134,98,0.25);
}

/* ---- Body text ---- */
.sf-prose p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--primary);
  margin-bottom: 12px;
}
.sf-prose p:last-child { margin-bottom: 0; }

/* ---- Lists ---- */
.sf-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.sf-prose ul li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--primary);
  padding: 2px 0 2px 18px;
  position: relative;
}
.sf-prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 300;
}

/* ---- Inline links ---- */
.sf-prose-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(91,133,151,0.4);
  text-underline-offset: 2px;
}
.sf-prose-link:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* ================================
   FOOTER — shared with main app footer
   ================================ */
.sf-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--primary);
  border-top: 1px solid rgba(175,134,98,0.15);
  font-size: 0.65rem;
}
.sf-footer-link {
  color: var(--bg);
  text-decoration: none;
  opacity: 0.5;
  letter-spacing: 0.02em;
  transition: opacity 0.15s, color 0.15s;
}
.sf-footer-link:hover { opacity: 1; color: var(--copper); }
.sf-footer-sep { color: var(--bg); opacity: 0.25; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 520px) {
  .sf-prose-main { padding: 24px 16px 40px; }
  .sf-prose h1   { font-size: 1.3rem; }
  .sf-tagline    { display: none; }
  .sf-header     { padding: 8px 14px; }
}
