*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #f8f5ef;
  --white: #ffffff;
  --ink: var(--primary);
  --ink2: var(--primary);
  --ink3: var(--primary);
  --forest: var(--primary);
  --forest2: var(--primary);
  --sec-color: #b8892a;
  --gold2: #d4a745;
  --goldfade: rgba(184, 137, 42, 0.1);
  --goldborder: rgba(184, 137, 42, 0.22);
  --cream: #f2eddf;
  --r: 12px;
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden
}


/* ── HERO BAND ── */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2638D9;
  --primary-soft: rgba(38, 56, 217, 0.08);
}

/* SECTION */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 7% 80px;
  background:
    radial-gradient(circle at top left,
      rgba(38, 56, 217, 0.08),
      transparent 35%),
    var(--bg);
}

/* SOFT GLOW */

.legal-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(38, 56, 217, 0.08);
  filter: blur(80px);
  z-index: 0;
}

/* CONTENT */

.legal-hero>* {
  position: relative;
  z-index: 2;
}

/* BREADCRUMB */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 34px;
}

.breadcrumb i {
  font-style: normal;
  opacity: .5;
}

/* EYEBROW */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* HEADING */

.legal-hero h1 {
  max-width: 780px;
  font-size: 72px;
  line-height: 1.03;
  letter-spacing: -2px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
}

.legal-hero h1 em {
  color: var(--primary);
  font-style: normal;
}

/* PARAGRAPH */

.legal-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 34px;
}

/* UPDATED PILL */

.updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  margin-bottom: 55px;
  box-shadow: 0 18px 40px rgba(38, 56, 217, 0.18);
}

/* TAB NAV */

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* BUTTON */

.tab-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: .35s ease;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.tab-nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(38, 56, 217, 0.08),
      transparent);
  opacity: 0;
  transition: .35s ease;
}

.tab-nav-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 56, 217, 0.2);
}

.tab-nav-btn:hover::before {
  opacity: 1;
}

/* ACTIVE */

.tab-nav-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--dark-fade);
}

.tab-nav-btn.active::before {
  opacity: 0;
}

/* ICON */

.tab-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE */

@media(max-width:991px) {

  .legal-hero h1 {
    font-size: 54px;
    line-height: 1.08;
  }

}

@media(max-width:768px) {

  .legal-hero {
    padding: 100px 6% 70px;
  }

  .legal-hero h1 {
    font-size: 42px;
    line-height: 1.12;
  }

  .legal-hero p {
    font-size: 16px;
  }

  .tab-nav {
    flex-direction: column;
  }

  .tab-nav-btn {
    width: 100%;
    justify-content: flex-start;
  }

}

/* ── TAB NAV ── */

/* ── CONTENT AREA ── */
.legal-body {
  background: var(--bg);
  border-top: 3px solid rgba(17, 24, 16, .06);
  min-height: 60vh;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

/* Sidebar TOC */
.toc-sidebar {
  padding: 48px 32px 48px 0;
  border-right: 1px solid rgba(17, 24, 16, .07);
  position: sticky;
  top: 88px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.toc-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 16px
}

.toc-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.toc-link {
  display: block;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  transition: all .2s;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--ink);
  background: rgba(17, 24, 16, .04);
  border-left-color: var(--sec-color)
}

.toc-link.active {
  color: var(--sec-color);
  background: var(--goldfade);
  border-left-color: var(--sec-color);
  font-weight: 600
}

.toc-divider {
  height: 1px;
  background: rgba(17, 24, 16, .07);
  margin: 14px 0
}

.toc-meta {
  margin-top: 24px;
  padding: 16px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 16, .06)
}

.toc-meta p {
  font-size: .76rem;
  color: var(--ink2);
  line-height: 1.65
}

.toc-meta a {
  color: var(--sec-color);
  text-decoration: none;
  font-weight: 600
}

/* Main content */
.legal-content {
  padding: 48px 0 80px 56px;
}

/* Tab panels */
.tab-panel {
  display: none
}

.tab-panel.active {
  display: block;
  animation: fadeIn .35s ease
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Section blocks */
.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 100px
}

.legal-section:last-child {
  margin-bottom: 0
}

.section-num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sec-color);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-num::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--sec-color)
}

.legal-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  color: var(--ink);
}

.legal-section p {
  font-size: .92rem;
  line-height: 1.85;
  color: var(--ink2);
  margin-bottom: 14px;
}

.legal-section p:last-child {
  margin-bottom: 0
}

.legal-section strong {
  color: var(--ink);
  font-weight: 700
}

/* Highlight box */
.highlight-box {
  background: var(--goldfade);
  border: 1px solid var(--goldborder);
  border-left: 3px solid var(--sec-color);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.7;
}

.highlight-box strong {
  color: var(--sec-color)
}

/* Info box */
.info-box {
  background: var(--white);
  border: 1px solid rgba(17, 24, 16, .08);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: .88rem;
  color: var(--ink2);
  line-height: 1.7;
  box-shadow: 0 2px 12px rgba(17, 24, 16, .05);
}

.info-box .ib-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px
}

/* Lists */
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding-left: 4px;
}

.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--ink2);
  line-height: 1.7;
}

.legal-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sec-color);
  flex-shrink: 0;
  margin-top: 9px;
}

.legal-list.alpha {
  list-style: lower-alpha inside;
  padding-left: 20px
}

.legal-list.alpha li::before {
  display: none
}

.legal-list.alpha li {
  padding-left: 0
}

/* Table */
.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0
}

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem
}

table.legal-table thead tr {
  background: var(--forest)
}

table.legal-table thead th {
  padding: 14px 18px;
  text-align: left;
  color: rgba(255, 255, 255, .7);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase
}

table.legal-table tbody tr {
  border-bottom: 1px solid rgba(17, 24, 16, .06);
  transition: background .15s
}

table.legal-table tbody tr:hover {
  background: rgba(184, 137, 42, .04)
}

table.legal-table tbody td {
  padding: 13px 18px;
  color: var(--ink2);
  vertical-align: top
}

table.legal-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink)
}

/* Contact card */
.contact-card {
  background: var(--forest);
  border-radius: 14px;
  padding: 32px;
  margin-top: 32px;
}

.contact-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px
}

.contact-card p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
  margin-bottom: 20px
}

.cc-rows {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.cc-row {
  display: flex;
  align-items: center;
  gap: 12px
}

.cc-icon {
  width: 36px;
  height: 36px;
  background: rgba(184, 137, 42, .15);
  border: 1px solid var(--goldborder);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0
}

.cc-text {
  font-size: .85rem;
  color: rgba(255, 255, 255, .7)
}

.cc-text a {
  color: var(--gold2);
  text-decoration: none
}

.cc-text a:hover {
  text-decoration: underline
}

/* Print notice */
.print-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid rgba(17, 24, 16, .07);
  border-radius: 10px;
  margin-bottom: 32px;
  gap: 12px;
  flex-wrap: wrap;
}

.print-row p {
  font-size: .8rem;
  color: var(--ink2)
}

.print-btn {
  background: var(--forest);
  color: var(--gold2);
  border: none;
  padding: 9px 18px;
  border-radius: 7px;
  font-family: 'Epilogue', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .2s
}

.print-btn:hover {
  background: var(--forest2)
}

/* ── CTA BOTTOM ── */
.legal-cta {
  background: var(--forest);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.legal-cta::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 42, .1) 0%, transparent 65%)
}

.legal-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-bottom: 10px
}

.legal-cta p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
  max-width: 500px
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 200px
}

.btn-gold {
  background: var(--sec-color);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: all .2s
}

.btn-gold:hover {
  background: var(--gold2);
  transform: translateY(-1px)
}

.btn-ghost-w {
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .65);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: all .2s
}

.btn-ghost-w:hover {
  border-color: rgba(255, 255, 255, .4);
  color: #fff
}

/* ── FOOTER ── */
footer {
  background: #08120a;
  padding: 56px 56px 32px;
  border-top: 1px solid rgba(184, 137, 42, .12)
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 56px;
  margin-bottom: 44px
}

.footer-brand p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .32);
  line-height: 1.72;
  margin-top: 14px;
  margin-bottom: 18px
}

.fh {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sec-color);
  margin-bottom: 16px
}

.flinks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px
}

.flinks a {
  font-size: .8rem;
  color: rgba(255, 255, 255, .38);
  text-decoration: none;
  transition: color .2s
}

.flinks a:hover {
  color: #fff
}

.flinks a.active-link {
  color: var(--gold2);
  font-weight: 600
}

.nl-row {
  display: flex;
  gap: 8px;
  margin-top: 8px
}

.nl-row input {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: .8rem;
  font-family: 'Epilogue', sans-serif;
  outline: none;
  flex: 1
}

.nl-row button {
  background: var(--sec-color);
  color: var(--forest);
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .76rem;
  cursor: pointer;
  font-family: 'Epilogue', sans-serif;
  white-space: nowrap
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  color: rgba(255, 255, 255, .22)
}

.footer-bottom a {
  color: rgba(255, 255, 255, .3);
  text-decoration: none
}

/* ── PROGRESS BAR ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--sec-color);
  z-index: 9999;
  transition: width .1s linear;
  width: 0%
}

/* ── BACK TO TOP ── */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold2);
  border: 1px solid var(--goldborder);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  transition: all .2s;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
}

.back-top.visible {
  opacity: 1;
  pointer-events: all
}

.back-top:hover {
  background: var(--forest2);
  transform: translateY(-2px)
}

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 0 32px
  }

  .toc-sidebar {
    display: none
  }

  .legal-content {
    padding: 40px 0 60px
  }

  .legal-cta {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px
  }

  nav,
  .topbar,
  .legal-hero,
  .legal-cta,
  footer {
    padding-left: 32px;
    padding-right: 32px
  }

  .tab-nav-btn {
    padding: 13px 22px
  }
}

@media(max-width:640px) {
  .nav-links {
    display: none
  }

  .topbar {
    display: none
  }

  nav,
  .legal-hero,
  .legal-cta,
  footer {
    padding-left: 20px;
    padding-right: 20px
  }

  .legal-layout {
    padding: 0 20px
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .tab-nav {
    overflow-x: auto;
    width: 100%
  }

  .tab-nav-btn {
    padding: 12px 18px;
    font-size: .75rem;
    white-space: nowrap
  }
}

@media print {

  .topbar,
  .nav-cta,
  .back-top,
  .reading-progress,
  .toc-sidebar,
  .legal-cta,
  footer,
  nav {
    display: none !important
  }

  .legal-layout {
    grid-template-columns: 1fr;
    padding: 0
  }

  .legal-content {
    padding: 0
  }

  .tab-panel {
    display: block !important
  }
}
