/* =========================================================
   STATIC PAGES
   Privacy, Terms, About, Contact, Data Source
========================================================= */

.static-page {
  padding: 28px 0 56px;
  background:
    radial-gradient(
      circle at top right,
      rgba(19, 142, 124, .08),
      transparent 30%
    ),
    var(--page-bg, #f5f7f9);
  color: var(--text, #17202a);
}

.static-layout {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted, #667085);
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumb a {
  color: var(--primary, #087f70);
  font-weight: 600;
  text-decoration: none;
}

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

.breadcrumb-separator {
  color: var(--muted, #98a2b3);
}

/* =========================================================
   MAIN CARD
========================================================= */

.static-card {
  overflow: hidden;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 20px;
  background: var(--surface, #fff);
  box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
}

/* =========================================================
   HERO
========================================================= */

.static-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 48px 38px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  background:
    linear-gradient(
      135deg,
      rgba(8, 127, 112, .09),
      rgba(255, 255, 255, .3) 55%
    ),
    var(--surface-soft, #f8fbfb);
}

.static-hero::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 34px;
  width: 74px;
  height: 74px;
  border: 12px solid rgba(8, 127, 112, .08);
  border-radius: 50%;
  pointer-events: none;
}

.static-hero::before {
  content: "";
  position: absolute;
  right: 98px;
  bottom: -48px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(8, 127, 112, .035);
  pointer-events: none;
}

.static-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(8, 127, 112, .2);
  border-radius: 999px;
  background: rgba(8, 127, 112, .08);
  color: var(--primary, #087f70);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.static-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: var(--heading, #101828);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.static-hero > p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted, #596579);
  font-size: 16px;
  line-height: 1.75;
}

.static-updated {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted, #667085);
  font-size: 13px;
}

.static-updated time {
  color: var(--heading, #1d2939);
  font-weight: 700;
}

/* =========================================================
   CONTENT
========================================================= */

.static-content {
  padding: 40px 48px 48px;
}

.static-content section {
  scroll-margin-top: 100px;
}

.static-content section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line, #e9edf2);
}

.static-content h2 {
  margin: 0 0 14px;
  color: var(--heading, #101828);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.static-content h3 {
  margin: 24px 0 10px;
  color: var(--heading, #1d2939);
  font-size: 17px;
  line-height: 1.45;
}

.static-content p,
.static-content li {
  color: var(--text-soft, #475467);
  font-size: 15px;
  line-height: 1.8;
}

.static-content p {
  margin: 0 0 14px;
}

.static-content p:last-child {
  margin-bottom: 0;
}

.static-content ul,
.static-content ol {
  margin: 12px 0 16px;
  padding-left: 22px;
}

.static-content li + li {
  margin-top: 8px;
}

.static-content strong {
  color: var(--heading, #1d2939);
}

.static-content a {
  color: var(--primary, #087f70);
  font-weight: 600;
  text-decoration: none;
}

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

/* =========================================================
   TABLE OF CONTENTS
========================================================= */

.static-toc {
  margin: 0 0 38px;
  padding: 22px 24px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: var(--surface-soft, #f8fafc);
}

.static-toc > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--heading, #101828);
  font-size: 15px;
}

.static-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 28px;
  margin: 0;
  padding-left: 20px;
}

.static-toc li {
  padding-left: 2px;
  color: var(--muted, #667085);
  font-size: 14px;
  line-height: 1.55;
}

.static-toc a {
  color: var(--text, #344054);
  font-weight: 500;
  text-decoration: none;
}

.static-toc a:hover {
  color: var(--primary, #087f70);
  text-decoration: underline;
}

/* =========================================================
   NOTICE / INFORMATION BOXES
========================================================= */

.static-note {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #bfe3dd;
  border-left: 4px solid var(--primary, #087f70);
  border-radius: 10px;
  background: var(--primary-soft, #edf9f7);
  color: var(--text-soft, #344054);
  font-size: 14px;
  line-height: 1.75;
}

.static-note strong {
  color: var(--primary-dark, #06685c);
}

.static-warning {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  background: #fffaf0;
  color: #854d0e;
  font-size: 14px;
  line-height: 1.75;
}

.static-warning strong {
  color: #713f12;
}

.static-info-box {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line, #dce5ea);
  border-radius: 12px;
  background: var(--surface-soft, #f8fafc);
}

.static-info-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.static-info-box p {
  margin: 0;
  font-size: 14px;
}

/* =========================================================
   ABOUT PAGE
========================================================= */

.static-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.static-feature {
  padding: 20px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: var(--surface-soft, #f8fafc);
}

.static-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--primary-soft, #e9f8f5);
  color: var(--primary, #087f70);
}

.static-feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.static-feature h3 {
  margin: 0 0 7px;
  color: var(--heading, #101828);
  font-size: 16px;
}

.static-feature p {
  margin: 0;
  color: var(--text-soft, #475467);
  font-size: 14px;
  line-height: 1.7;
}

.static-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.static-stat {
  padding: 18px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 13px;
  background: var(--surface, #fff);
  text-align: center;
}

.static-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary, #087f70);
  font-size: 23px;
  line-height: 1.2;
}

.static-stat span {
  color: var(--muted, #667085);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-grid,
.static-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 20px;
  margin-top: 22px;
}

.contact-card,
.static-contact-card {
  padding: 22px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: var(--surface-soft, #f8fafc);
}

.contact-card h2,
.contact-card h3,
.static-contact-card h2,
.static-contact-card h3 {
  margin-top: 0;
}

.contact-list,
.static-contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li,
.static-contact-list li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 11px;
  background: var(--surface, #fff);
}

.contact-list strong,
.static-contact-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--heading, #101828);
  font-size: 14px;
}

.contact-list span,
.static-contact-list span {
  color: var(--muted, #667085);
  font-size: 13px;
  line-height: 1.55;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin: 8px 0 14px;
  padding: 12px 15px;
  border: 1px solid rgba(8, 127, 112, .22);
  border-radius: 10px;
  background: var(--primary-soft, #edf9f7);
  color: var(--primary, #087f70);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  border-color: var(--primary, #087f70);
  text-decoration: none;
}

.contact-email svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-guideline {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 11px;
  background: #fff;
  border: 1px dashed var(--line, #d9e1e7);
}

.contact-guideline strong {
  display: block;
  margin-bottom: 7px;
}

.contact-guideline ul {
  margin-bottom: 0;
}

/* =========================================================
   DATA SOURCE PAGE
========================================================= */

.data-source-grid,
.static-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.data-source-card,
.static-source-card {
  padding: 20px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  background: var(--surface-soft, #f8fafc);
}

.data-source-card h3,
.static-source-card h3 {
  margin: 0 0 8px;
  color: var(--heading, #101828);
  font-size: 16px;
}

.data-source-card p,
.static-source-card p {
  margin: 0;
  color: var(--text-soft, #475467);
  font-size: 14px;
  line-height: 1.7;
}

.data-fields,
.static-data-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.data-fields li,
.static-data-fields li {
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(8, 127, 112, .17);
  border-radius: 999px;
  background: var(--primary-soft, #edf9f7);
  color: var(--primary-dark, #06685c);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.source-process,
.static-process {
  position: relative;
  margin: 22px 0 0;
  padding-left: 30px;
}

.source-process::before,
.static-process::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 9px;
  width: 2px;
  background: var(--line, #dfe7eb);
}

.source-process-item,
.static-process-item {
  position: relative;
  padding: 0 0 22px 14px;
}

.source-process-item:last-child,
.static-process-item:last-child {
  padding-bottom: 0;
}

.source-process-item::before,
.static-process-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -27px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--surface, #fff);
  border-radius: 50%;
  background: var(--primary, #087f70);
  box-shadow: 0 0 0 1px rgba(8, 127, 112, .25);
}

.source-process-item strong,
.static-process-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--heading, #101828);
  font-size: 15px;
}

.source-process-item p,
.static-process-item p {
  margin: 0;
  font-size: 14px;
}

/* =========================================================
   BUTTONS / CALL TO ACTION
========================================================= */

.static-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.static-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--primary, #087f70);
  border-radius: 10px;
  background: var(--primary, #087f70);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.static-button:hover {
  border-color: var(--primary-dark, #06685c);
  background: var(--primary-dark, #06685c);
  transform: translateY(-1px);
}

.static-button.is-secondary {
  background: transparent;
  color: var(--primary, #087f70) !important;
}

.static-button.is-secondary:hover {
  background: var(--primary-soft, #edf9f7);
}

/* =========================================================
   RELATED LINKS
========================================================= */

.static-related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding: 18px 20px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: var(--surface-soft, #f8fafc);
}

.static-related span {
  color: var(--muted, #667085);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.static-related a {
  color: var(--primary, #087f70);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.static-related a::after {
  content: " →";
}

.static-related a:hover {
  text-decoration: underline;
}

.static-related-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.static-related-list a {
  font-size: 14px;
  font-weight: 700;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 820px) {
  .static-feature-grid,
  .data-source-grid,
  .static-source-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .static-contact-grid {
    grid-template-columns: 1fr;
  }

  .static-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .static-page {
    padding: 20px 0 40px;
  }

  .static-layout {
    width: min(100% - 20px, 980px);
  }

  .static-card {
    border-radius: 15px;
  }

  .static-hero {
    padding: 30px 22px 27px;
  }

  .static-hero::after {
    top: 20px;
    right: 18px;
    width: 50px;
    height: 50px;
    border-width: 8px;
  }

  .static-hero::before {
    right: 42px;
    width: 80px;
    height: 80px;
  }

  .static-hero h1 {
    max-width: calc(100% - 32px);
    font-size: 30px;
  }

  .static-hero > p {
    font-size: 15px;
    line-height: 1.7;
  }

  .static-content {
    padding: 28px 22px 32px;
  }

  .static-toc {
    padding: 18px;
  }

  .static-toc ol {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .static-content h2 {
    font-size: 20px;
  }

  .static-content h3 {
    font-size: 16px;
  }

  .static-content p,
  .static-content li {
    font-size: 14px;
    line-height: 1.75;
  }

  .static-feature,
  .data-source-card,
  .static-source-card,
  .contact-card,
  .static-contact-card {
    padding: 18px;
  }

  .static-related {
    align-items: flex-start;
    flex-direction: column;
  }

  .static-related-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .static-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .static-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .static-layout {
    width: min(100% - 16px, 980px);
  }

  .static-hero {
    padding: 26px 18px 24px;
  }

  .static-content {
    padding: 24px 18px 28px;
  }

  .static-stats {
    grid-template-columns: 1fr;
  }

  .static-toc {
    padding: 16px;
  }

  .static-note,
  .static-warning,
  .static-info-box {
    padding: 14px 15px;
  }

  .contact-email {
    width: 100%;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.static-content a:focus-visible,
.static-button:focus-visible,
.breadcrumb a:focus-visible,
.static-toc a:focus-visible,
.static-related a:focus-visible,
.contact-email:focus-visible {
  outline: 3px solid rgba(8, 127, 112, .25);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .static-content section {
    scroll-margin-top: 0;
  }

  .static-button {
    transition: none;
  }
}