/* ============================================================
   OurWorld Zanzibar — Shared Stylesheet
   Used by: index.html, privacy.html, terms.html,
            charter.html, regulated-entity-code.html,
            digital-assets-code.html, tax-code.html
   ============================================================ */

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

:root {
  --lagoon:   #0F9C54;
  --ocean:    #04A7E8;
  --gold:     #F6C343;
  --midnight: #040A14;
  --ink:      #0A1410;
  --ink-2:    #3A4F45;
  --ink-3:    #7A9486;
  --rule:     #DDE6E1;
  --bg:       #FFFFFF;
  --bg-2:     #F5F8F6;
  --font:     'DM Sans', sans-serif;
  --nav-h:    80px;
  --w:        1080px;
  --pad:      60px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #FFFFFF;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink-2);
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover { color: var(--lagoon); }
.nav-zdfz {
  font-size: 12px !important; font-weight: 600 !important;
  color: var(--lagoon) !important;
  border: 1.5px solid var(--lagoon) !important;
  padding: 7px 16px; border-radius: 3px;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.15s !important;
}
.nav-zdfz:hover { background: var(--lagoon) !important; color: #fff !important; }
.nav-contact {
  font-size: 12px !important; font-weight: 600 !important;
  color: #fff !important; background: var(--midnight);
  padding: 8px 18px; border-radius: 3px;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: opacity 0.15s !important;
}
.nav-contact:hover { opacity: 0.78 !important; }

/* ============================================================
   HERO (homepage only)
   ============================================================ */
.hero {
  padding-top: var(--nav-h);
  min-height: 92vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background: #040A14;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero-grad-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #04A7E8 0%, #F6C343 50%, #0F9C54 100%);
  z-index: 2;
}
.hero-inner {
  max-width: var(--w); margin: 0 auto; padding: 80px var(--pad);
  width: 100%; position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 600; line-height: 1.07; letter-spacing: -0.03em;
  color: #F3F5F7; margin-bottom: 28px; max-width: 680px;
}
.hero-desc {
  font-size: 18px; color: rgba(243,245,247,0.62); line-height: 1.78;
  font-weight: 300; max-width: 580px; margin-bottom: 48px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; padding: 13px 26px; border-radius: 3px;
  transition: all 0.15s;
}
.btn-g { background: var(--lagoon); color: #fff; }
.btn-g:hover { background: #0b7c42; }
.btn-o { background: transparent; color: rgba(243,245,247,0.85); border: 1.5px solid rgba(243,245,247,0.25); }
.btn-o:hover { border-color: rgba(243,245,247,0.6); color: #F3F5F7; }
.btn-d { background: rgba(255,255,255,0.1); color: rgba(243,245,247,0.85); border: 1.5px solid rgba(255,255,255,0.15); }
.btn-d:hover { background: rgba(255,255,255,0.18); color: #fff; }
.hero-decree {
  font-size: 12.5px; color: rgba(243,245,247,0.38); line-height: 1.65;
  font-style: italic; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 640px;
}

/* ============================================================
   GAZETTE BAND (homepage only)
   ============================================================ */
.gazette-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.gazette-inner { max-width: var(--w); margin: 0 auto; padding: 32px var(--pad); }
.gazette-inner p {
  font-size: 14px; color: var(--ink-2); line-height: 1.75;
  font-style: italic; font-weight: 300;
}
.gazette-inner a {
  color: var(--ink); font-weight: 600; font-style: normal; text-decoration: none;
  border-bottom: 1px solid var(--lagoon);
  transition: color 0.15s;
}
.gazette-inner a:hover { color: var(--lagoon); }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
section { padding: 96px var(--pad); border-bottom: 1px solid var(--rule); }
.si { max-width: var(--w); margin: 0 auto; }
.sh {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 56px; padding-bottom: 52px;
  border-bottom: 1px solid var(--rule); margin-bottom: 64px;
}
.sh-idx { padding-top: 6px; }
.sh-idx .s-num,
.sh-idx .s-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3);
}
.sh-idx .s-num { margin-bottom: 4px; }
.sh-h {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--ink);
  margin-bottom: 14px;
}
.sh-p {
  font-size: 16px; color: var(--ink-2); line-height: 1.8;
  font-weight: 300; max-width: 540px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.prose p {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.9; font-weight: 300;
}
.prose p + p { margin-top: 20px; }

/* Info cards */
.info-cards {
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; align-self: start;
}
.icard { padding: 22px 26px; border-bottom: 1px solid var(--rule); background: var(--bg); }
.icard:last-child { border-bottom: none; }
.icard:nth-child(even) { background: var(--bg-2); }
.icard h4 {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lagoon); margin-bottom: 7px;
}
.icard p { font-size: 14px; color: var(--ink-2); line-height: 1.72; font-weight: 300; }

/* Regulations section */
#regulations { background: var(--bg-2); }
.regs-prose p {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.9; font-weight: 300;
}
.regs-prose p + p { margin-top: 18px; }
.reg-groups { display: flex; flex-direction: column; gap: 32px; }
.rg-head {
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.reg-list { display: flex; flex-direction: column; }
.reg-row { border-bottom: 1px solid var(--rule); }
.reg-row:last-child { border-bottom: none; }
.reg-row a {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; padding: 14px 0;
  font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: color 0.15s;
}
.reg-row a:hover { color: var(--lagoon); }
.reg-name { flex: 1; }
.reg-ref {
  font-size: 11px; font-weight: 500; color: var(--ink-3);
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.04em; text-align: right; min-width: 130px;
}
.reg-arrow { color: var(--ink-3); flex-shrink: 0; margin-left: 8px; }
.reg-row a:hover .reg-arrow { color: var(--lagoon); }
.reg-tbd { padding: 14px 0; font-size: 14px; color: var(--ink-3); font-style: italic; }

/* Licensing */
#licensing { background: var(--bg); }
.lic-intro {
  display: grid; grid-template-columns: 1fr 288px;
  gap: 64px; margin-bottom: 56px; padding-bottom: 56px;
  border-bottom: 1px solid var(--rule); align-items: start;
}
.lic-prose p {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.9; font-weight: 300;
}
.lic-prose p + p { margin-top: 18px; }
.lic-prose a { color: var(--lagoon); text-decoration: none; font-weight: 500; }
.cbox { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.cbox-head {
  background: var(--bg-2); border-bottom: 1px solid var(--rule);
  padding: 13px 20px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lagoon);
}
.cbox-body { padding: 20px; }
.cbox-body p {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
  font-weight: 300; margin-bottom: 16px;
}
.cbox-link {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--lagoon);
  text-decoration: none; padding: 11px 0;
  border-top: 1px solid var(--rule); transition: color 0.15s;
}
.cbox-link:hover { color: var(--ocean); }
.cbox-link.blue { color: var(--ocean); }
.cbox-link.blue:hover { color: var(--lagoon); }

.services { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.svc {
  display: grid; grid-template-columns: 210px 1fr;
  gap: 44px; padding: 26px 28px;
  border-bottom: 1px solid var(--rule); align-items: start;
}
.svc:last-child { border-bottom: none; }
.svc:nth-child(even) { background: var(--bg-2); }
.svc:hover { background: rgba(15,156,84,0.025); }
.svc-name { font-size: 14.5px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.svc-badge {
  display: inline-block; font-size: 9.5px; font-weight: 600;
  color: var(--lagoon); background: rgba(15,156,84,0.08);
  border: 1px solid rgba(15,156,84,0.2); padding: 2px 8px;
  border-radius: 2px; letter-spacing: 0.1em; text-transform: uppercase;
}
.svc-desc { font-size: 14px; color: var(--ink-2); line-height: 1.82; font-weight: 300; }

/* CTA */
.cta-wrap { background: var(--midnight); position: relative; }
.cta-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #04A7E8 0%, #F6C343 50%, #0F9C54 100%);
}
.cta-inner {
  max-width: var(--w); margin: 0 auto; padding: 80px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.cta-inner h2 {
  font-size: 24px; font-weight: 600; color: #fff; letter-spacing: -0.015em; margin-bottom: 12px;
}
.cta-inner p {
  font-size: 15px; color: rgba(255,255,255,0.45); line-height: 1.75; font-weight: 300; max-width: 400px;
}
.cta-btns { display: flex; gap: 12px; flex-shrink: 0; }
.btn-w {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: #fff; color: var(--midnight); padding: 13px 24px;
  border-radius: 3px; text-decoration: none; transition: opacity 0.15s;
}
.btn-w:hover { opacity: 0.88; }
.btn-gw {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.18);
  padding: 13px 24px; border-radius: 3px; text-decoration: none; transition: all 0.15s;
}
.btn-gw:hover { border-color: rgba(255,255,255,0.45); color: #fff; }

/* ============================================================
   PAGE HEAD (used by privacy, terms, legal documents)
   ============================================================ */
.page-head {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 56px;
  padding-left: var(--pad);
  padding-right: var(--pad);
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-head::before {
  content: ''; position: absolute; top: var(--nav-h); left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #04A7E8 0%, #F6C343 50%, #0F9C54 100%);
}
.page-head-inner { max-width: var(--w); margin: 0 auto; }
.page-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
}
.page-head h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 18px;
}
.page-head .meta { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.page-head .meta span + span::before {
  content: '·'; margin: 0 10px; color: var(--ink-3);
}

/* ============================================================
   POLICY / LEGAL DOCUMENT CONTENT
   ============================================================ */
.policy { padding: 80px var(--pad) 96px; background: var(--bg); }
.policy-inner { max-width: 760px; margin: 0 auto; }
.policy-intro {
  font-size: 16px; color: var(--ink-2); line-height: 1.85; font-weight: 300;
  padding-bottom: 32px; margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

/* Parts (used for legal pages with PART I, PART II structure) */
.policy .part-head {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--lagoon);
  margin-top: 56px; margin-bottom: 8px;
  padding-top: 32px; border-top: 1px solid var(--rule);
}
.policy .part-head:first-child { padding-top: 0; border-top: none; margin-top: 0; }
.policy .part-title {
  font-size: 24px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 40px;
}

/* Sections / articles within policy */
.policy section.s {
  padding: 0; border: none; margin-bottom: 48px;
}
.policy h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
  flex-wrap: wrap;
}
.policy h2 .s-num { color: var(--lagoon); font-weight: 600; }
.policy h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 18px; line-height: 1.25;
}
.policy h4 {
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin-top: 22px; margin-bottom: 10px;
}
.policy p {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.9; font-weight: 300;
  margin-bottom: 16px;
}
.policy p:last-child { margin-bottom: 0; }
.policy a { color: var(--lagoon); text-decoration: none; font-weight: 500; }
.policy a:hover { text-decoration: underline; }
.policy strong { font-weight: 600; color: var(--ink); }

/* Lettered list: (a), (b), (c) ... */
.policy ol.lettered {
  list-style: none; padding-left: 0; margin-bottom: 16px;
  counter-reset: letters;
}
.policy ol.lettered > li {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.9; font-weight: 300;
  padding-left: 36px; position: relative; margin-bottom: 10px;
}
.policy ol.lettered > li::before {
  content: '(' counter(letters, lower-alpha) ')';
  counter-increment: letters;
  position: absolute; left: 0; top: 0;
  font-weight: 500; color: var(--ink); font-size: 14.5px;
  width: 28px;
}

/* Numbered list: 1., 2., 3. */
.policy ol.numbered {
  list-style: none; padding-left: 0; margin-bottom: 16px;
  counter-reset: numbers;
}
.policy ol.numbered > li {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.9; font-weight: 300;
  padding-left: 32px; position: relative; margin-bottom: 10px;
}
.policy ol.numbered > li::before {
  content: counter(numbers) '.';
  counter-increment: numbers;
  position: absolute; left: 0; top: 0;
  font-weight: 500; color: var(--ink); font-size: 14.5px;
  width: 24px;
}

/* Lowercase roman numerals: (i), (ii), (iii) ... */
.policy ol.roman {
  list-style: none; padding-left: 0; margin-bottom: 16px; margin-top: 8px;
  counter-reset: romans;
}
.policy ol.roman > li {
  font-size: 15px; color: var(--ink-2); line-height: 1.85; font-weight: 300;
  padding-left: 40px; position: relative; margin-bottom: 8px;
}
.policy ol.roman > li::before {
  content: '(' counter(romans, lower-roman) ')';
  counter-increment: romans;
  position: absolute; left: 0; top: 0;
  font-weight: 500; color: var(--ink-3); font-size: 14px;
  width: 32px;
}

/* Parenthetical lower-alpha used within nested levels: (a), (b)... */
.policy ol.paren-letters {
  list-style: none; padding-left: 0; margin-bottom: 16px; margin-top: 8px;
  counter-reset: parenletters;
}
.policy ol.paren-letters > li {
  font-size: 15px; color: var(--ink-2); line-height: 1.85; font-weight: 300;
  padding-left: 36px; position: relative; margin-bottom: 8px;
}
.policy ol.paren-letters > li::before {
  content: '(' counter(parenletters, lower-alpha) ')';
  counter-increment: parenletters;
  position: absolute; left: 0; top: 0;
  font-weight: 500; color: var(--ink-3); font-size: 14px;
  width: 28px;
}

/* Nested lists get a bit more left padding */
.policy ol ol { margin-left: 0; }

.policy .last-update {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-3); font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg); border-top: 1px solid var(--rule); padding: 64px var(--pad) 40px; }
.footer-inner { max-width: var(--w); margin: 0 auto; }
.footer-gradline {
  height: 2px; margin-bottom: 48px;
  background: linear-gradient(90deg, #04A7E8 0%, #F6C343 50%, #0F9C54 100%);
  border-radius: 1px;
}
.footer-top {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 80px; padding-bottom: 40px;
  border-bottom: 1px solid var(--rule); margin-bottom: 28px; align-items: start;
}
.footer-brand img { width: 180px; height: auto; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--ink-3); line-height: 1.75; font-weight: 300; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h5 {
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13.5px; color: var(--ink-3); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--lagoon); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--ink-3); flex-wrap: wrap;
}
.footer-bottom a { color: var(--ink-3); text-decoration: none; transition: color 0.15s; }
.footer-bottom a:hover { color: var(--lagoon); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --pad: 28px; }
  .hero-inner { padding: 60px var(--pad); }
  section { padding: 64px var(--pad); }
  .sh { grid-template-columns: 1fr; gap: 14px; }
  .two-col { grid-template-columns: 1fr; }
  .lic-intro { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 8px; }
  .cta-inner { flex-direction: column; padding: 56px var(--pad); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .policy { padding: 56px var(--pad) 72px; }
}
@media (max-width: 600px) {
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr; }
  footer { padding: 48px var(--pad) 32px; }
}
