/* --- Design System: CSS Variables --- */
:root {
  --primary-color: #007aff;
  --primary-hover: #0056b3;
  --primary-gradient-end: #00c6ff;
  --text-dark: #212529;
  --text-light: #6c757d;
  --background-main: #f8f9fa;
  --surface-color: #ffffff;
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07);
  --border-radius: 8px;
}

/* --- General Reset and Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', "Segoe UI", "Helvetica Neue", sans-serif;
  background-color: var(--background-main);
  color: var(--text-dark);
  line-height: 1.7;
}

/* --- Layout --- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
}

header, footer {
  background-color: var(--surface-color);
  padding: 1.5rem 2rem;
  text-align: center;
}

header {
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

footer {
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
}

/* --- Typography & Links --- */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 0.5em;
  line-height: 1.3;
}
header h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; color: var(--text-dark); margin-top: 2rem; }
p { margin-bottom: 1rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.logo-link {
  text-decoration: none;
}
.logo-link:hover {
  text-decoration: none;
}

/* --- Navigation --- */
nav { margin-top: 1rem; }
nav a {
  margin: 0 1rem;
  font-weight: 500;
}
footer nav { margin-top: 0.5rem; }

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-gradient-end) 100%);
  color: white;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}
.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 1rem auto 2rem;
}

/* --- Buttons --- */
.button {
  background-color: var(--primary-color);
  color: var(--surface-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}
.button:hover {
  background-color: var(--primary-hover);
  color: var(--surface-color);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero .button {
  background-color: var(--surface-color);
  color: var(--primary-color);
}
.hero .button:hover {
  background-color: #f1f3f5;
  color: var(--primary-hover);
}

/* --- Sections and Lists (Cards) --- */
section {
  margin-bottom: 3rem;
}

#features h3 {
  text-align: center;
}

#features ul {
  list-style-type: none;
  padding-left: 0;
  display: grid;
  gap: 1.5rem; /* Increased gap slightly */
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width */
}

#features li {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start; /* Align items to the top */
  gap: 1rem; /* Space between icon and text */
}

#features li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}


.feature-icon {
  font-size: 2rem; /* Make the emoji bigger */
  line-height: 1; /* Ensure it doesn't add extra vertical space */
  margin-top: 0.25rem;
}

#features li div {
  flex: 1; /* Allow the text block to take up remaining space */
}

#features li p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0; /* Remove bottom margin from the paragraph inside the card */
}

#features li strong {
  display: block;
  margin-bottom: 0.25rem;
}

.service-list li {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.legal-page ul {
  list-style-type: none;
  padding-left: 0;
  margin: 1rem 0;
}

.legal-page ul:not(.service-list) li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.legal-page ul:not(.service-list) li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -1px;
}

.legal-page section:not(:first-of-type) {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.document-meta {
  background-color: #f0f3f5; /* A very light gray background */
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.document-meta p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

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

.last-updated {
  color: var(--text-light);
  margin-bottom: 2rem;
}

address {
  font-style: normal;
  line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  main {
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  header h1 { font-size: 1.75rem; }
  .hero { padding: 3rem 1.5rem; }
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; }
  nav a {
    display: block;
    margin: 0.5rem 0;
  }
}
