:root {
  --accent: #4154f1;
  --ink: #1f2937;
  --muted: #6b7280;
  --surface: #ffffff;
  --bg: #f5f7fa;
  --border: #e4e8ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.site {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.site-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.site-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.site-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.site-hero a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.site-hero a:hover {
  text-decoration: underline;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tool-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.tool-card p {
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff6df;
  color: #b7791f;
  font-size: 0.75rem;
  font-weight: 600;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer-links {
  display: inline-flex;
  gap: 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* --- Legal pages --------------------------------------------------------- */

.legal {
  max-width: 720px;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-header h1 {
  font-size: 2rem;
  margin: 0 0 0.35rem;
}

.legal-updated {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.legal-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  line-height: 1.65;
}

.legal-body h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-body h2:first-of-type {
  margin-top: 1rem;
}

.legal-body a {
  color: var(--accent);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-footer a {
  color: var(--accent);
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}
