/* Shared styles for the static legal / pricing pages.
 * Kept deliberately framework-free so the pages have zero JS / build
 * dependencies — Vercel serves them as plain HTML and Paddle's
 * verifier can crawl them without executing anything. */

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

html, body {
  background: linear-gradient(160deg, #0f172a, #0b1220);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.site-header {
  border-bottom: 1px solid #1e293b;
  padding: 1rem 1.5rem;
  background: #0b1220;
}

.site-header .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  text-decoration: none;
}

.brand:hover { color: #34d399; }

.back-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
}
.back-link:hover { color: #cbd5e1; }

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #f1f5f9;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #f8fafc;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

p { margin-bottom: 0.875rem; color: #cbd5e1; }

ul, ol { margin-bottom: 0.875rem; padding-left: 1.5rem; color: #cbd5e1; }
li { margin-bottom: 0.375rem; }

a { color: #10b981; text-decoration: underline; }
a:hover { color: #34d399; }

strong, b { color: #f1f5f9; font-weight: 600; }

code, .mono {
  font-family: ui-monospace, "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.875em;
  color: #fcd34d;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

.notice {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  border-left: 3px solid #10b981;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  font-size: 0.9375rem;
}

.notice.warn { border-left-color: #f59e0b; }
.notice.info { border-left-color: #38bdf8; }

.en-summary {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
}

.en-summary h2 { color: #94a3b8; font-size: 1rem; }
.en-summary p { color: #94a3b8; font-size: 0.875rem; }

.site-footer {
  border-top: 1px solid #1e293b;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.site-footer .links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.site-footer .links a { color: #94a3b8; text-decoration: none; }
.site-footer .links a:hover { color: #cbd5e1; text-decoration: underline; }

/* Pricing-page-specific */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .tier-grid { grid-template-columns: 1fr 1fr; }
}

.tier {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
}

.tier.premium {
  border-color: #d97706;
  background: linear-gradient(160deg, rgba(217, 119, 6, 0.08), rgba(15, 23, 42, 0.55));
  position: relative;
}

.tier-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.tier.free .tier-badge { background: #1e293b; color: #94a3b8; }
.tier.premium .tier-badge {
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #1c1009;
}

.tier-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}
.tier-price small { font-size: 0.875rem; color: #94a3b8; font-weight: 400; }

.tier-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.tier-list li {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  font-size: 0.9375rem;
}
.tier-list li:first-child { border-top: none; }
.tier-list li::before { content: "✓ "; color: #10b981; font-weight: 700; }
.tier-list li.muted { color: #64748b; }
.tier-list li.muted::before { content: "✕ "; color: #475569; }

.cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #1c1009;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  width: 100%;
}
.cta:hover { color: #1c1009; opacity: 0.9; }

.cta-secondary {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  width: 100%;
}
.cta-secondary:hover { background: #334155; color: #f1f5f9; }
