/* Shared styles for Ketabian sub-pages (privacy, terms, support, /fifths) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fefcf8;
  color: oklch(0.13 0.028 261.692);
  font-family: 'Outfit', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; }

/* Layout */
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 768px; margin: 0 auto; padding: 0 24px; }

/* Nav (matches index) */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(254, 252, 248, 0.72); border-bottom: 1px solid rgba(17,24,39,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 9999px; border: 1px solid #111; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; letter-spacing: -0.04em; background: #fff; }
.brand-wm { display: flex; flex-direction: column; line-height: 1.05; font-size: 14px; font-weight: 700; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: #374151; transition: color 180ms ease; }
.nav-links a:hover { color: #000; }

/* Doc page */
.doc-header { padding: 96px 0 48px; border-bottom: 1px solid #e5e7eb; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #6b7280; margin: 0 0 16px; }
.doc-header h1 { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; }
.doc-header .meta { font-size: 14px; color: #6b7280; margin: 0; }

.doc-body { padding: 48px 0 96px; }
.doc-body h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 16px; }
.doc-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.doc-body p, .doc-body li { font-size: 16px; font-weight: 300; color: #374151; line-height: 1.7; }
.doc-body p { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { padding-left: 24px; margin: 0 0 16px; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: #111; border-bottom: 1px solid #111; text-decoration: none; }
.doc-body strong { font-weight: 600; color: #111; }

.doc-toc { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px 28px; margin-bottom: 40px; }
.doc-toc h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #6b7280; margin: 0 0 12px; }
.doc-toc ul { padding: 0; margin: 0; list-style: none; }
.doc-toc li { font-size: 14px; margin-bottom: 6px; font-weight: 400; }
.doc-toc a { border-bottom: none; color: #374151; }
.doc-toc a:hover { color: #000; text-decoration: underline; }

.doc-callout { background: #fff; border: 1px solid #e5e7eb; border-left: 2px solid #111; border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.doc-callout p:last-child { margin-bottom: 0; }

/* Footer (matches index) */
footer.site { background: #000; color: #fff; padding: 64px 0 32px; margin-top: 96px; }
footer.site .container { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; }
footer.site h5 { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 20px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 10px; font-size: 14px; }
footer.site a { color: #9ca3af; text-decoration: none; transition: color 180ms ease; }
footer.site a:hover { color: #fff; }
.footer-brand p { font-size: 14px; color: #9ca3af; line-height: 1.7; margin: 16px 0 0; max-width: 36ch; }
.footer-brand .brand-mark { background: #fff; color: #000; border-color: #fff; }
.footer-brand .brand-wm { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #1f2937; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #6b7280; }

@media (max-width: 880px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
