/* ============ Resumize · Legal & Info Pages — Shared Stylesheet ============ */
/* Single source of truth for /terms /privacy /refund-policy /disclaimer /about /contact */

:root {
  --bg-base: #F3F3F1;
  --bg-surface: #FFFFFF;
  --ink: #111111;
  --ink-soft: #555555;
  --ink-mute: #8a8a8a;
  --accent: #E63946;
  --accent-hover: #D62828;
  --muted: #EBEBE8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg-base);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 0.2s ease, border-color 0.2s ease; }
a:hover { color: var(--accent); border-color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--bg-base); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* ============ NAV ============ */
nav.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 243, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; border: none; }
.brand:hover { color: var(--ink); border: none; }
.brand-mark {
  width: 32px; height: 32px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 20px;
  font-style: italic;
}
.brand-text { font-family: 'Fraunces', serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; font-variation-settings: "opsz" 48, "SOFT" 40, "WONK" 1; }
.brand-text em { font-style: italic; color: var(--accent); }
.nav-links { display: none; gap: 36px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; border: none; }
.nav-links a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--ink); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 768px) { .nav-links { display: inline-flex; } }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  background: var(--accent); color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-hover); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); color: #fff; border-color: var(--ink); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  background: transparent;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
}
.btn-secondary:hover { background: var(--ink); color: #fff; border: none; }

.mobile-toggle { display: inline-flex; padding: 9px; border: 1px solid var(--ink); background: transparent; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-menu { display: none; padding: 24px; border-top: 1px solid var(--ink); background: var(--bg-base); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid #d8d8d4; font-weight: 500; border-top: none; border-left: none; border-right: none; }

/* ============ Page Hero ============ */
.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--ink);
}
@media (min-width: 768px) { .page-hero { padding: 80px 0 56px; } }

.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.page-hero h1 em { color: var(--accent); font-style: italic; font-weight: 800; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1, "wght" 900; }
.page-hero .lead {
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0;
}
.page-hero .meta {
  margin-top: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============ Document content ============ */
.doc-section { padding: 60px 0; border-bottom: 1px solid var(--ink); }
.doc-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 1024px) { .doc-grid { grid-template-columns: 0.35fr 1fr; gap: 64px; } }

/* Sticky TOC sidebar */
.doc-toc { position: relative; }
@media (min-width: 1024px) { .doc-toc { position: sticky; top: 90px; align-self: start; } }
.doc-toc h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.doc-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.doc-toc ol li {
  counter-increment: toc;
  padding: 8px 0 8px 32px;
  border-bottom: 1px dashed #cfcfca;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
}
.doc-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.doc-toc ol li a { border: none; color: var(--ink); }
.doc-toc ol li a:hover { color: var(--accent); }

/* Main doc body */
.doc-body { max-width: 760px; }
.doc-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
  scroll-margin-top: 80px;
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.doc-body h2 .num {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-right: 14px;
  font-weight: 500;
  text-transform: uppercase;
}
.doc-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
  font-variation-settings: "opsz" 36, "SOFT" 20, "WONK" 1;
}
.doc-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
}
.doc-body p.muted { color: var(--ink-soft); }
.doc-body strong { font-weight: 700; color: var(--ink); }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 20px; }
.doc-body ul li, .doc-body ol li { padding: 6px 0; line-height: 1.6; color: var(--ink); }
.doc-body ul li::marker { color: var(--accent); }
.doc-body ol li::marker { color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-weight: 600; }

.doc-callout {
  border-left: 3px solid var(--accent);
  background: var(--muted);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 15px;
}
.doc-callout strong { color: var(--accent); }

.doc-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.doc-table th, .doc-table td { padding: 12px 14px; border-bottom: 1px solid #d8d8d4; text-align: left; vertical-align: top; }
.doc-table th { background: var(--ink); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }

.doc-cta-card {
  margin-top: 56px;
  padding: 36px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.doc-cta-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
  font-variation-settings: "opsz" 48, "SOFT" 50, "WONK" 1;
}
.doc-cta-card p { color: rgba(255,255,255,0.78); margin: 0 0 20px; font-size: 15px; }
.doc-cta-card .btn-primary { background: var(--accent); border-color: var(--accent); }
.doc-cta-card .btn-primary:hover { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }

/* ============ Contact form ============ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-info h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  line-height: 1.1;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 1;
}
.contact-info h2 em { color: var(--accent); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1, "wght" 900; }
.contact-channel {
  display: block;
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--bg-surface);
  margin-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-channel:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); border-color: var(--ink); }
.contact-channel a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.contact-channel .ch-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-channel .ch-value {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36, "SOFT" 20, "WONK" 1;
}
.contact-channel .ch-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--ink);
  padding: 36px;
}
.contact-form label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background: var(--bg-base);
  color: var(--ink);
  margin-bottom: 20px;
  border-radius: 0;
}
.contact-form textarea { resize: vertical; min-height: 130px; font-family: 'DM Sans', sans-serif; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .form-success {
  padding: 14px;
  background: var(--accent);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: none;
}
.contact-form .form-success.show { display: block; }

/* ============ About page ============ */
.about-pillars {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--ink);
  background: var(--bg-surface);
  margin: 40px 0;
}
@media (min-width: 768px) { .about-pillars { grid-template-columns: repeat(3, 1fr); } }
.about-pillar { padding: 32px 28px; border-bottom: 1px solid var(--ink); }
.about-pillar:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .about-pillar { border-bottom: none; border-right: 1px solid var(--ink); }
  .about-pillar:last-child { border-right: none; }
}
.about-pillar .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 60px;
}
.about-pillar h3 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1;
}
.about-pillar p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.about-quote {
  margin: 60px 0;
  padding: 40px 28px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  position: relative;
}
.about-quote p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  margin: 0 0 18px;
  max-width: 820px;
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1;
}
.about-quote .credit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============ Footer ============ */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--ink);
  padding: 56px 0 28px;
}
.footer-mega {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.9;
  letter-spacing: 0;
  margin: 0 0 18px;
  color: var(--ink);
  text-align: center;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.footer-mega em { color: var(--accent); font-weight: 800; font-style: normal; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1, "wght" 900; }
.footer-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--ink);
  padding-top: 28px;
  margin-top: 28px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  border-top: 1px solid var(--ink);
  padding: 32px 0;
}
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h5 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols ul li { padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.footer-cols ul li a { border: none; color: var(--ink-soft); }
.footer-cols ul li a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  border-top: 1px solid #d8d8d4;
  padding-top: 22px;
}
