/* ==================================================================
   PROSPER FINANCE — STYLES FOR INFO/LEGAL PAGES
   Shared CSS for: sobre, privacidade, termos, contato, suporte
   Reuses the landing's tokens + adds long-form prose styling.
================================================================== */

:root {
  /* Mirror landing tokens — keep in sync */
  --ink-900: #0A0F1F;
  --ink-800: #141A2E;
  --ink-700: #2A3148;
  --ink-500: #5B6478;
  --ink-400: #8189A0;
  --ink-300: #A8B0C0;
  --ink-200: #D2D8E3;
  --ink-100: #EAEDF3;
  --ink-50:  #F4F6FB;

  --surface-0:   #FFFFFF;
  --surface-50:  #FAFBFD;
  --surface-100: #F4F6FB;

  --accent:        #1A6B47;
  --accent-dark:   #0F5234;
  --accent-light:  #E1F5EE;
  --accent-glow:   rgba(26,107,71,.22);
  --accent-soft:   rgba(26,107,71,.08);

  --brand:         #1B5F5A;
  --brand-dark:    #134541;
  --brand-light:   #E5F0EE;

  --success: #10B981;
  --warning: #F59E0B;
  --error:   #EF4444;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(10,15,31,.04), 0 1px 3px rgba(10,15,31,.06);
  --shadow-md: 0 4px 12px rgba(10,15,31,.06), 0 2px 4px rgba(10,15,31,.04);
  --shadow-lg: 0 16px 40px rgba(10,15,31,.10), 0 4px 12px rgba(10,15,31,.06);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --container: 1180px;
  --container-narrow: 760px;
  --gutter: 24px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: 0; background: 0; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }

/* ── Type ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -.035em; line-height: 1.05; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #6D8AFF 60%, var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 56px; margin-bottom: 16px; }
h3 { font-size: 18px; margin-top: 28px; margin-bottom: 10px; font-weight: 600; }
p  { color: var(--ink-700); margin-bottom: 14px; text-wrap: pretty; }
strong { color: var(--ink-900); font-weight: 600; }

/* ── Layout ──────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }

/* ── Header (shared with landing) ─────────────────── */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--ink-100);
}
header.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--ink-900);
}
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6D8AFF);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; gap: 32px; margin-left: auto; margin-right: 24px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-500); transition: color .15s; }
.nav-links a:hover { color: var(--ink-900); }

/* Hamburger + mobile menu */
.hamburger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; border: 0; background: transparent; cursor: pointer; }
.hamburger:hover { background: var(--ink-100); }
.hamburger i { font-size: 24px; color: var(--ink-900); }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 16px 24px 24px; background: rgba(255,255,255,.98); backdrop-filter: blur(18px); border-bottom: 1px solid var(--ink-100); position: sticky; top: 72px; z-index: 99; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 16px; font-weight: 500; color: var(--ink-700); padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
.mobile-menu a:hover { color: var(--ink-900); }
.mobile-menu .btn { margin-top: 12px; }

/* Back link breadcrumb */
.page-breadcrumb {
  background: var(--surface-50);
  border-bottom: 1px solid var(--ink-100);
  padding: 14px 0;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-500); transition: color .15s, transform .15s;
}
.back-link i { font-size: 16px; transition: transform .15s; }
.back-link:hover { color: var(--accent); }
.back-link:hover i { transform: translateX(-3px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; border-radius: var(--r-md); white-space: nowrap;
  min-height: 42px; padding: 0 18px; font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-secondary { background: var(--surface-0); color: var(--ink-900); border: 1px solid var(--ink-200); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-300); }

/* ── Page hero ─────────────────────────────────────── */
.page-hero {
  padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(ellipse 60% 60% at 15% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 25%, rgba(27,95,90,.07), transparent 60%),
    var(--surface-0);
  border-bottom: 1px solid var(--ink-100);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,15,31,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,15,31,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 16px;
}
.page-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }
.page-eyebrow::after  { content: ''; width: 22px; height: 1.5px; background: currentColor; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-500); max-width: 620px; margin: 0 auto; }
.page-hero .meta {
  margin-top: 18px; font-size: 13px; color: var(--ink-400);
}

/* ── Long-form prose ──────────────────────────────── */
.prose {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter);
}
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { color: var(--ink-800); }
.prose p, .prose li { font-size: 16.5px; color: var(--ink-700); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 0; margin: 12px 0 18px; }
.prose ul li, .prose ol li {
  padding-left: 28px; position: relative; margin-bottom: 8px;
}
.prose ul li::before {
  content: ''; position: absolute; left: 4px; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; }
.prose ol li::before {
  content: counter(o) '.';
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-weight: 600; color: var(--accent);
  font-size: 15px;
}
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-dark); }
.prose hr { border: 0; border-top: 1px solid var(--ink-100); margin: 40px 0; }

.toc {
  background: var(--surface-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.toc h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500);
  margin-bottom: 12px;
}
.toc ol { padding-left: 0; }
.toc ol li { padding-left: 28px; }
.toc ol li::before {
  content: counter(o, decimal-leading-zero);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  color: var(--ink-400); font-weight: 500;
}
.toc a { color: var(--ink-700); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.toc a:hover { color: var(--accent); }

.callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 22px; margin: 16px 0;
}
.callout p { margin-bottom: 0; color: var(--ink-700); font-size: 15px; }
.callout strong { color: var(--ink-900); }
.callout.brand { background: var(--brand-light); border-color: var(--brand); }
.callout.warning { background: #FEF9E8; border-color: var(--warning); }

.kv-list {
  display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px;
  background: var(--surface-50); border: 1px solid var(--ink-100);
  border-radius: var(--r-md); padding: 20px 24px;
  margin: 16px 0;
}
.kv-list dt { font-weight: 600; color: var(--ink-900); font-size: 14.5px; }
.kv-list dd { color: var(--ink-700); font-size: 14.5px; }

/* ── Bottom CTA strip ─────────────────────────────── */
.bottom-cta {
  background:
    radial-gradient(ellipse 50% 70% at 50% 100%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 0%, rgba(27,95,90,.25), transparent 60%),
    var(--ink-900);
  color: #fff;
  padding: clamp(56px, 7vw, 80px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bottom-cta h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 14px; margin-top: 0; }
.bottom-cta p { font-size: 16px; max-width: 540px; margin: 0 auto 24px; color: rgba(255,255,255,.7); }

/* ── Footer (mirrors landing) ────────────────────── */
footer.site-footer {
  background: var(--ink-900); color: rgba(255,255,255,.6);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
  color: rgba(255,255,255,.5); font-size: 14px;
  margin-top: 18px; max-width: 320px; line-height: 1.6;
}
.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 18px; font-family: var(--font-body); margin-top: 0;
}
.footer-col a {
  display: block; font-size: 14.5px; color: rgba(255,255,255,.55);
  padding: 6px 0; transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,.4);
}

/* ── Contact-page form ────────────────────────────── */
.contact-form {
  background: var(--surface-0); border: 1px solid var(--ink-100);
  border-radius: var(--r-lg); padding: 36px;
  box-shadow: var(--shadow-md); margin-top: 28px;
}
.contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  font: inherit; color: var(--ink-900); background: #fff;
  margin-bottom: 18px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,111,255,.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.contact-form .form-grid label { margin-bottom: 0; }
.contact-form .form-grid > div { margin-bottom: 18px; }
.contact-form .form-grid input { margin-bottom: 0; }

.channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 32px 0;
}
.channel {
  background: var(--surface-0); border: 1px solid var(--ink-100);
  border-radius: var(--r-md); padding: 22px;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.channel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.channel-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
  margin-bottom: 14px;
}
.channel h3 { font-size: 16px; margin-top: 0; margin-bottom: 4px; }
.channel p { font-size: 13.5px; margin-bottom: 8px; color: var(--ink-500); }
.channel a { color: var(--accent); font-weight: 500; font-size: 14px; }

/* ── Support cards ─────────────────────────────────── */
.support-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin: 28px 0;
}
.support-card {
  background: var(--surface-0); border: 1px solid var(--ink-100);
  border-radius: var(--r-md); padding: 26px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}
.support-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.support-card h3 { font-size: 17px; margin-top: 0; margin-bottom: 6px; color: var(--ink-900); }
.support-card p { font-size: 14px; color: var(--ink-500); margin-bottom: 0; }
.support-card .arrow { color: var(--accent); margin-top: 12px; font-size: 14px; font-weight: 500; }

/* ── Sobre page extras ─────────────────────────────── */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 28px 0 12px;
}
.value-card {
  background: var(--surface-0);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md); padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.value-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card h3 { font-size: 17px; margin-top: 4px; margin-bottom: 8px; }
.value-card p { font-size: 14.5px; color: var(--ink-500); margin-bottom: 0; line-height: 1.6; }

.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  background:
    radial-gradient(ellipse 50% 70% at 50% 100%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 0%, rgba(27,95,90,.25), transparent 60%),
    var(--ink-900);
  color: #fff;
  border-radius: var(--r-lg); padding: 36px;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
}
.stat-strip .stat-value {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  letter-spacing: -.03em; color: #fff; line-height: 1;
}
.stat-strip .stat-value.accent {
  background: linear-gradient(135deg, #93A8FF, #6D8AFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-strip .stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .channels, .support-grid, .values-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
  .kv-list { grid-template-columns: 1fr; gap: 4px; }
  .kv-list dt { margin-top: 8px; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  header.site-header .btn:not(.btn-block) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
