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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #2d3748;
  background: linear-gradient(180deg, #eef2f7 0%, #e6ecf3 100%);
  background-attachment: fixed;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Typography ===== */
h1, h2, h3 {
  line-height: 1.3;
  color: #0c2340;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.875rem;
  padding-left: 0.875rem;
  border-left: 3px solid #9db5ce;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a3a5c;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #1a5fb4;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #0f4c91;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #1a5fb4;
  outline-offset: 2px;
  border-radius: 2px;
}

ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid #e8edf3;
  margin: 2rem 0;
}

/* ===== Layout ===== */
.site-header {
  background-color: #ffffff;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 1px 2px rgba(12, 35, 64, 0.05),
              0 2px 8px rgba(12, 35, 64, 0.02);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c2340;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.site-name:hover {
  color: #163a5f;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

/* ===== Home Page ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  flex: 1;
}

.hero-card {
  background: #ffffff;
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04),
              0 4px 12px rgba(12, 35, 64, 0.03),
              0 12px 32px rgba(12, 35, 64, 0.03);
  padding: 4rem 3rem 3.5rem;
  max-width: 560px;
  width: 100%;
}

.hero .brand {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0c2340;
  letter-spacing: -0.025em;
  margin-bottom: 0.625rem;
}

.hero .tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #5a7390;
  margin-bottom: 1.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 1.5rem;
}

.hero .tagline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background-color: #1a5fb4;
  border-radius: 1px;
}

.hero .description {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.85;
  margin-bottom: 0;
}

/* ===== Legal Pages ===== */
.legal-content {
  background: #ffffff;
  border: 1px solid rgba(12, 35, 64, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04),
              0 4px 12px rgba(12, 35, 64, 0.03),
              0 12px 32px rgba(12, 35, 64, 0.03);
  padding: 2.75rem 3rem 3.25rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.legal-content .page-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0c2340;
  margin-bottom: 0.375rem;
}

.legal-content .last-updated {
  font-size: 0.875rem;
  color: #6b7a8d;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #e8edf3;
  margin-bottom: 2rem;
}

.legal-content strong {
  color: #1e2d3d;
}

.legal-content li::marker {
  color: #9db5ce;
}

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
  color: #6b7a8d;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #1a5fb4;
  text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #f7f9fc;
  border-top: 1px solid #dde3eb;
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  justify-content: center;
}

.footer-links li {
  padding: 0 1rem;
}

.footer-links li + li {
  border-left: 1px solid #d0d7e0;
}

.footer-links a {
  font-size: 0.85rem;
  color: #5a6a7e;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #1a5fb4;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.78rem;
  color: #8b95a5;
  margin-top: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .hero-card {
    padding: 2.75rem 1.75rem 2.5rem;
    border-radius: 10px;
  }

  .hero .brand {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .hero .description {
    font-size: 0.95rem;
  }

  h1, .legal-content .page-title {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .legal-content {
    padding: 2rem 1.5rem 2.25rem;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    border-radius: 10px;
  }

  .footer-links li {
    padding: 0 0.75rem;
  }
}
