/* ═══════════════════════════════════════════════════════════
   DigitalConvex Magazine — Legal Pages Stylesheet
   Website: www.digitalconvex.com
   Powered by DIGITALCONFEX
   Last Updated: May 2026
═══════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --brand:       #9C27B0;
  --brand-dark:  #1e1a6f;
  --brand-deep:  #14104f;
  --brand-light: #3d38b0;
  --accent:      #f5a623;
  --accent-dark: #d4891a;
  --accent-pale: #fff7e8;
  --white:       #ffffff;
  --off-white:   #f7f7fc;
  --text:        #1a1a2e;
  --muted:       #5c5c7a;
  --border:      #e0dff5;
  --bg:          #f4f4fb;
  --purple-pale: #eceaf9;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, var(--brand-light) 100%);
  border-bottom: 3px solid var(--accent);
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 20%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(245,166,35,0.07);
  pointer-events: none;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 40px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-name span { color: var(--accent); }
.logo-tag {
  display: inline-block;
  background: rgba(245,166,35,0.18);
  border: 1px solid rgba(245,166,35,0.35);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-top: 8px;
}
.header-badge { text-align: right; flex-shrink: 0; }
.header-badge .badge-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.header-badge .badge-val {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ═══════════════════════════════════════════
   TAB NAVIGATION
═══════════════════════════════════════════ */
.tab-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(46,42,143,0.08);
}
.tab-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 15px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--brand); }
.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.main-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 52px 40px 80px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 56px;
  align-items: start;
}

/* ═══════════════════════════════════════════
   SIDEBAR / TABLE OF CONTENTS
═══════════════════════════════════════════ */
.sidebar {
  position: sticky;
  top: 62px;
}
.toc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--brand);
}
.toc-list { list-style: none; }
.toc-list a {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 8px 5px 0;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.4;
}
.toc-list a:hover {
  color: var(--brand);
  border-left-color: var(--accent);
  padding-left: 10px;
}

/* ═══════════════════════════════════════════
   POLICY SECTIONS
═══════════════════════════════════════════ */
.policy-section { display: none; }
.policy-section.active { display: block; }

/* ── POLICY HERO BANNER ── */
.policy-hero {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  padding: 36px 40px;
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
}
.policy-hero::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.policy-tag {
  display: inline-block;
  background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.policy-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.policy-title span { color: var(--accent); }
.policy-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}
.policy-meta strong { color: var(--accent); }

/* ── ARTICLE BODY ── */
.article-body section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.article-body section:last-child { border-bottom: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.section-num-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
}

.article-body p {
  font-size: 14.5px;
  color: #2a2a42;
  margin-bottom: 12px;
  line-height: 1.8;
}
.article-body ul {
  list-style: none;
  margin: 10px 0 14px 0;
  padding: 0;
}
.article-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  font-size: 14px;
  color: #2a2a42;
  line-height: 1.65;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
}
.article-body ul.dash li::before {
  content: '›';
  background: none;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  top: 0;
  width: auto;
  height: auto;
  opacity: 1;
}

/* ── SUB HEADING ── */
.sub-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--purple-pale);
  display: inline-block;
  padding: 3px 10px;
  margin: 16px 0 8px;
}

/* ── CALLOUT BOX ── */
.callout {
  background: var(--accent-pale);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 16px 0 20px;
}
.callout strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.callout p {
  font-size: 14px !important;
  color: var(--brand-dark) !important;
  margin-bottom: 0 !important;
}

/* ── CONTACT BLOCK ── */
.contact-block {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  padding: 28px 32px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.contact-block::before {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.contact-block .c-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.c-icon {
  width: 32px;
  height: 32px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-row span {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.contact-row a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
}
.contact-row a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--brand-deep);
  border-top: 3px solid var(--accent);
  padding: 28px 40px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.footer-brand span { color: var(--accent); font-weight: 600; }
.footer-links {
  display: flex;
  list-style: none;
}
.footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 4px 16px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: color 0.15s;
}
.footer-links li:last-child a { border-right: none; }
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET  (max 960px)
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .main-wrap {
    grid-template-columns: 200px 1fr;
    gap: 36px;
    padding: 40px 28px 70px;
  }
  .header-inner { padding: 28px 28px 24px; }
  .tab-nav-inner { padding: 0 28px; }
  .site-footer { padding: 24px 28px; }
  .policy-title { font-size: 28px; }
  .policy-hero { padding: 32px 28px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE  (max 768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Layout: single column, no sidebar */
  .main-wrap {
    grid-template-columns: 1fr;
    padding: 28px 16px 60px;
    gap: 0;
  }
  .sidebar { display: none; }

  /* Header stacked */
  .header-inner {
    padding: 20px 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .logo-name { font-size: 22px; }
  .logo-tag { font-size: 9px; padding: 3px 8px; letter-spacing: 0.12em; }
  .header-badge { text-align: left; }
  .header-badge .badge-val { font-size: 11px; }

  /* Tab nav: scrollable, equal padding */
  .tab-nav-inner { padding: 0 12px; }
  .tab-btn { padding: 13px 14px; font-size: 11px; letter-spacing: 0.04em; }

  /* Policy hero */
  .policy-hero {
    padding: 24px 18px;
    margin-bottom: 32px;
  }
  .policy-tag { font-size: 8px; padding: 3px 10px; }
  .policy-title { font-size: 22px; }
  .policy-meta { font-size: 11px; }

  /* Section headings */
  .section-header { gap: 10px; margin-bottom: 12px; }
  .section-num-badge { width: 30px; height: 30px; font-size: 10px; border-radius: 3px; }
  .section-title { font-size: 15px; }

  /* Body text */
  .article-body p { font-size: 14px; line-height: 1.75; }
  .article-body ul li { font-size: 13.5px; padding-left: 18px; }
  .article-body section { margin-bottom: 36px; padding-bottom: 36px; }

  /* Callout */
  .callout { padding: 14px 16px; }
  .callout p { font-size: 13px !important; }

  /* Contact block */
  .contact-block { padding: 22px 18px; }
  .contact-row span { font-size: 12px; }
  .c-icon { width: 28px; height: 28px; font-size: 12px; }

  /* Sub-head */
  .sub-head { font-size: 10px; padding: 3px 8px; }

  /* Footer */
  .site-footer { padding: 18px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-brand { font-size: 11px; }
  .footer-links a { padding: 4px 12px; font-size: 10px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (max 400px)
═══════════════════════════════════════════ */
@media (max-width: 400px) {
  .logo-name { font-size: 20px; }
  .policy-title { font-size: 20px; }
  .tab-btn { padding: 12px 12px; font-size: 10px; }
  .section-title { font-size: 14px; }
  .article-body p { font-size: 13.5px; }
  .contact-block { padding: 18px 14px; }
  .footer-links { flex-wrap: wrap; gap: 4px; }
  .footer-links a { border-right: none; padding: 2px 10px; }
}



/* ===== MOBILE TAB FIX ===== */

@media (max-width: 768px){

  .tab-nav{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .tab-nav-inner{
    display:flex;
    flex-wrap:nowrap;
    width:max-content;
    min-width:100%;
    gap:0;
    padding:0;
  }

  .tab-btn{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:10px;
    padding:14px 12px;
  }
}

@media (max-width: 420px){

  .tab-btn{
    font-size:9px;
    padding:12px 10px;
    letter-spacing:0.02em;
  }
}
