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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333;
  background-color: #FAFAFA;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.site-header {
  background-color: #1a1a1a;
  padding: 1rem 1.5rem;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: 40px;
  height: 40px;
}

.header-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.header-title:hover {
  color: #00674B;
}

.header-nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}

.header-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #00674B;
}

/* ===== Main Content ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ===== Landing Page ===== */
.landing-hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.landing-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1.25rem;
}

.landing-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.landing-hero p {
  font-size: 1.125rem;
  color: #666;
}

.policy-cards {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.policy-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}

.policy-card:hover {
  border-color: #00674B;
  transform: translateY(-2px);
}

.policy-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.policy-card p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

/* ===== Hero Refinements ===== */
.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

.hero-description {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

/* ===== Features Section ===== */
.features-section {
  max-width: 800px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.features-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

/* ===== Data Transparency Section ===== */
.data-transparency-section {
  max-width: 800px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.data-transparency-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1rem;
}

.data-intro {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.data-table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.data-table th {
  background-color: #1a1a1a;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
  color: #333;
}

.data-table tr:nth-child(even) td {
  background-color: #f5f5f5;
}

.data-note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.data-note strong {
  color: #1a1a1a;
}

.data-note a {
  color: #00674B;
  text-decoration: underline;
  font-weight: 500;
}

/* ===== Policy Pages ===== */
.policy-meta {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.policy-meta h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.policy-meta p {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 0.125rem;
}

.policy-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.policy-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.policy-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-content p {
  margin-bottom: 1rem;
}

.policy-content a {
  color: #00674B;
  text-decoration: underline;
  font-weight: 500;
}

.policy-content a:hover {
  text-decoration: underline;
}

.policy-content ul, .policy-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content strong {
  font-weight: 600;
  color: #1a1a1a;
}

.policy-content hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2rem 0;
}

/* ===== Table (Privacy Policy) ===== */
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.policy-content th {
  background-color: #1a1a1a;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
}

.policy-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

.policy-content tr:nth-child(even) td {
  background-color: #f5f5f5;
}

/* ===== Caps text blocks (disclaimers) ===== */
.policy-content .caps-block {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #444;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #e5e5e5;
  padding: 2rem 1.5rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: #00674B;
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
  }

  .header-nav {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .header-nav a {
    font-size: 0.8125rem;
  }

  .landing-hero h1 {
    font-size: 1.75rem;
  }

  .policy-meta h1 {
    font-size: 1.5rem;
  }

  .policy-content h2 {
    font-size: 1.2rem;
  }

  .policy-content table {
    font-size: 0.8rem;
  }

  .policy-content th, .policy-content td {
    padding: 0.5rem 0.6rem;
  }

  .container {
    padding: 1.5rem 1rem 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th, .data-table td {
    padding: 0.5rem 0.6rem;
  }
}

/* ===== Print ===== */
@media print {
  .site-header, .site-footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .policy-content a {
    color: #000;
    text-decoration: underline;
  }

  .policy-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
