:root {
  --teal:    #1a3a5c;
  --teal-m:  #122a44;
  --green:   #2cbc63;
  --green-d: #22a356;
  --sand:    #ffffff;
  --mint:    #eef5f2;
  --text:    #1a1a1a;
  --muted:   #555f6e;
  --border:  #e2e8e5;
  --white:   #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  line-height: 1.7;
}
h1, h2, h3, h4 { font-family: 'Inter Tight', sans-serif; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }

/* ══ NAVBAR ══ */
.tp-nav {
  background: var(--teal);
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.tp-nav .inner {
  max-width: 1200px; margin: 0 auto;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.tp-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.tp-logo-img {
  height: 31px;
  width: auto;
  display: block;
}
.tp-nav-cta {
  background: var(--green);
  color: #fff; font-weight: 700; font-size: .88rem;
  padding: 10px 22px; border-radius: 50px;
  text-decoration: none; border: none;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tp-nav-cta:hover { background: var(--green-d); color: #fff; transform: translateY(-1px); }

/* ══ PAGE HEADER ══ */
.page-header {
  background: var(--teal);
  padding: 100px 0 50px;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin: 0 0 12px;
}
.page-header p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ══ CONTAINER ══ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══ LEGAL NOTICE ══ */
.legal-notice {
  background: var(--mint);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 32px 0;
  font-size: .9rem;
  color: var(--muted);
}

/* ══ SECTION TITLES ══ */
.sec-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px; display: block;
}
.sec-title {
  font-size: 1.5rem;
  font-weight: 900; color: var(--teal); margin-bottom: 24px;
}

/* ══ DOCUMENT TABLE ══ */
.doc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 40px;
}
.doc-table thead th {
  background: var(--teal);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
.doc-table thead th:first-child { border-radius: 12px 0 0 0; }
.doc-table thead th:last-child { border-radius: 0 12px 0 0; }
.doc-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
.doc-table tbody tr:hover { background: var(--mint); }
.doc-table tbody tr:last-child td { border-bottom: none; }

.badge-version {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.badge-archival {
  background: #d1d5db;
  color: #555;
}

.btn-open {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--teal);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-open:hover { background: var(--teal-m); color: #fff; transform: translateY(-1px); }

/* ══ ARCHIVE TOGGLE ══ */
.archive-section { margin: 48px 0; }
.archive-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 2px solid var(--border);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 600;
  padding: 10px 20px; border-radius: 50px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.archive-toggle:hover { border-color: var(--teal); color: var(--teal); }
.archive-toggle .arrow { transition: transform .3s; }
.archive-toggle.open .arrow { transform: rotate(180deg); }
.archive-content {
  display: none;
  margin-top: 20px;
}
.archive-content.show { display: block; }

/* ══ DOCUMENT PAGE ══ */
.doc-content {
  padding: 48px 0 80px;
}
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.doc-meta-item {
  font-size: .82rem; color: var(--muted);
}
.doc-meta-item strong {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--teal);
  margin-bottom: 2px;
}
.doc-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mint);
}
.doc-body p {
  margin: 0 0 12px;
  font-size: .92rem;
  line-height: 1.75;
}
.doc-body ul, .doc-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.doc-body li {
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 4px;
}

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--green); font-weight: 600; }

.banner-archival {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: .88rem;
  color: #92400e;
}
.banner-archival a { color: #b45309; font-weight: 700; text-decoration: underline; }

.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 32px;
}
.btn-back:hover { color: var(--green-d); }

/* ══ FOOTER ══ */
footer {
  background: var(--teal);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 32px 24px;
  font-size: .82rem;
}
footer a { color: rgba(255,255,255,.8); }
footer a:hover { color: #fff; }
.footer-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.footer-logo-img { height: 32px; width: auto; filter: brightness(0) invert(1); }

/* ══ RESPONSIVE ══ */
@media (max-width: 640px) {
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td {
    display: block; width: 100%;
  }
  .doc-table tbody tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
  }
  .doc-table tbody td {
    padding: 4px 0;
    border-bottom: none;
    font-size: .88rem;
  }
  .doc-table tbody td:before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--teal);
    display: block;
    margin-bottom: 2px;
  }
  .doc-table tbody td:last-child { margin-top: 8px; }
  .doc-meta { flex-direction: column; gap: 12px; }
}
