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

:root {
  --color-bg: #fafafa;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-accent: #3d5afe;
  --color-accent-hover: #2a3fc7;
  --color-border: #e0e0e0;
  --color-surface: #ffffff;
  --max-width: 720px;
  --max-width-wide: 960px;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* --- Header / Nav --- */

header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

nav {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

nav ul a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* --- Main --- */

main {
  flex: 1;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

/* --- Hero (index) --- */

.hero {
  padding: 2rem 0 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 540px;
}

.hero .cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.7rem 1.6rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s;
}

.hero .cta:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

/* --- Services --- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* --- Section headings --- */

.section-heading {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.legal {
  max-width: var(--max-width);
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.legal .last-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal ul {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

/* --- Footer --- */

footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* --- Responsive --- */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  main {
    padding: 2rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
