/* Fina App — Legal Pages Shared Styles */

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

:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-brand: #6366f1;
  --color-brand-light: #eef2ff;
  --color-text-primary: #0f172a;
  --color-text-secondary: #64748b;
  --color-text-tertiary: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --radius-card: 16px;
  --radius-pill: 999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.055);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────── */

.page-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  padding: 40px 0 32px;
  text-align: center;
}

.site-header .app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-brand-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.site-header .app-icon {
  width: 20px;
  height: 20px;
}

.page-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: 10px;
}

.page-meta {
  font-size: 14px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.01em;
}

/* ── Nav breadcrumb ─────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  opacity: 0.5;
}

/* ── Card ───────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  padding: 32px;
  margin-bottom: 16px;
}

/* ── Section typography ─────────────────────────────── */

.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 8px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul,
.card ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.card li {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 4px;
}

/* ── Highlight box ──────────────────────────────────── */

.highlight-box {
  background: var(--color-brand-light);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.highlight-box p {
  color: #4338ca;
  font-size: 14px;
  margin-bottom: 0;
}

/* ── Divider ────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 20px 0;
}

/* ── License block ──────────────────────────────────── */

.license-block {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: "SF Mono", "Fira Code", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  margin-top: 8px;
}

/* ── No-dep badge ───────────────────────────────────── */

.no-dep-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.no-dep-banner .check-icon {
  width: 36px;
  height: 36px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.no-dep-banner .text strong {
  display: block;
  font-size: 15px;
  color: #15803d;
  font-weight: 700;
  margin-bottom: 2px;
}

.no-dep-banner .text span {
  font-size: 13px;
  color: #4ade80;
  color: #16a34a;
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  padding: 32px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-tertiary);
  border-top: 1px solid var(--color-border-light);
  margin-top: 8px;
}

.site-footer a {
  color: var(--color-brand);
  text-decoration: none;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 480px) {
  .card {
    padding: 22px 18px;
  }
  .site-header {
    padding: 28px 0 22px;
  }
}
