/* =========================================================
   Global Reset & Base Styles
========================================================= */
body, h1, p {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fbfd;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   Header (Shared Across All Pages)
========================================================= */
header {
  background: #0056b3;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 55px;
  margin-right: 12px;
}

.brand span {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* =========================================================
   Index Page (Landing)
========================================================= */
body.index {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
}

body.index main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

body.index main img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

body.index main h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

body.index main p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Float Animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* =========================================================
   Legal Pages (Privacy, Terms, etc.)
========================================================= */
.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 28px;
  color: #1a1a1a;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 10px;
}

h2 {
  color: #1a1a1a;
  margin-top: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.summary-points {
  background-color: #f4f9ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #0056b3;
}

.toc {
  list-style-type: none;
  padding: 0;
}

.toc li {
  margin: 6px 0;
}

.toc a {
  color: #0056b3;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

/* =========================================================
   Footer (Shared Across All Pages)
========================================================= */
footer {
  background: #0056b3;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: auto;
}

footer a {
  color: #fff;
  margin-left: 10px;
  text-decoration: underline;
  transition: color 0.3s;
}

footer a:hover {
  color: #dbeafe;
}

/* =========================================================
   Responsive Styles
========================================================= */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin-left: 0;
    margin-right: 15px;
  }

  .brand img {
    height: 45px;
  }

  .brand span {
    font-size: 1.2rem;
  }

  body.index main h1 { font-size: 2rem; }
  body.index main p { font-size: 1rem; }
}
