/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0f1117;
  --bg-card: #1a1d27;
  --bg-section: #141722;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a3b1;
  --accent: #4a9eff;
  --accent-hover: #6db3ff;
  --border: #2a2d3a;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
}

/* === Navigation === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 6rem 2rem 5rem;
  max-width: 750px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* === Button === */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* === Sections === */
section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

section > p {
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === About === */
.about-section {
  background: var(--bg-section);
  border-radius: var(--radius);
  max-width: 800px;
  padding: 3.5rem 2.5rem;
}

.about-section p {
  text-align: left;
  max-width: none;
}

/* === Contact === */
#contact {
  text-align: center;
  padding-bottom: 6rem;
}

#contact .btn {
  margin-top: 0.5rem;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

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

.footer-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* === Legal Pages === */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

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

.legal-page .back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-page .back-link:hover {
  color: var(--accent-hover);
}

.legal-page h1 {
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.legal-page .effective-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

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

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links a {
    margin-left: 1rem;
  }

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

  .footer-links a {
    margin: 0 0.75rem;
  }

  .about-section {
    padding: 2.5rem 1.5rem;
  }
}
