/* ============================================
   PRIVACY & COMPLIANCE - matches Genicon design
   ============================================ */

.page-privacy { background:#fff; overflow-x:hidden; }
.page-privacy main { overflow-x:hidden; max-width:100%; }
.page-privacy section { overflow-x:hidden; }
.page-privacy .reader,
.page-privacy .reader-body,
.page-privacy .reader-body p,
.page-privacy .reader-body li,
.page-privacy .reader-body h1,
.page-privacy .reader-body h2,
.page-privacy .reader-body h3,
.page-privacy .reader-body h4 { word-wrap:break-word; overflow-wrap:anywhere; min-width:0; }

/* ===== HEADER OVERLAY (light/white text on dark hero) ===== */
/* Give the nav room and stop links wrapping into multi-line pills */
.page-privacy .header-nav { width:auto; flex:1; }
.page-privacy .header-nav ul { gap:4px; flex-wrap:nowrap; }
.page-privacy .header-nav a { white-space:nowrap; }

.header-light .header-nav-light a { color:rgba(255,255,255,.65); }
.header-light .header-nav-light a:hover,
.header-light .header-nav-light a.active { color:#fff; background:rgba(255,255,255,.12); }
.header-light .header-nav-light:hover a:not(:hover) { opacity:.4; }
.header-light .drawer-trigger-light { border-color:rgba(255,255,255,.2); color:#fff; }
.header-light .drawer-trigger-light:hover { background:#fff; color:var(--text); }
.header-light .header-social-light { display:flex; gap:10px; }
.header-light .header-social-light a { color:rgba(255,255,255,.65); transition:color .25s; }
.header-light .header-social-light a:hover { color:#fff; }
/* Logo assets are dark — invert them to white over the dark hero */
.header-light .logo-default { display:block; filter:brightness(0) invert(1); }
.header-light .logo-sticky { display:none; }
.header-light .mobile-trigger span { background:#fff; }

/* On scroll/sticky: switch to dark text */
.header-light.scrolled { background:rgba(255,255,255,.92); backdrop-filter:blur(12px); }
.header-light.scrolled .logo-default { filter:none; }
.header-light.scrolled .header-nav-light a { color:rgba(0,0,0,.66); }
.header-light.scrolled .header-nav-light a:hover,
.header-light.scrolled .header-nav-light a.active { color:#000; background:rgba(0,0,0,.06); }
.header-light.scrolled .drawer-trigger-light { border-color:rgba(0,0,0,.1); color:var(--text); }
.header-light.scrolled .header-social-light a { color:rgba(0,0,0,.5); }
.header-light.scrolled .header-social-light a:hover { color:#000; }
.header-light.scrolled .mobile-trigger span { background:var(--text); }

/* ===== DARK HERO (same pattern as About) ===== */
.privacy-hero {
  background:#2E3443;
  padding:160px 0 120px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.privacy-hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 30%, rgba(238,112,74,.18), transparent 42%),
    radial-gradient(circle at 82% 20%, rgba(112,180,175,.18), transparent 42%);
  pointer-events:none;
}
.privacy-hero .container { position:relative; z-index:1; }

.gradient-label--dark {
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(90deg, #EE704A, #70B4AF) !important;
  -webkit-background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
  background-clip:text !important;
  margin-bottom:28px;
}

.privacy-hero h1 {
  font-family:var(--font-head);
  font-size:64px;
  font-weight:600;
  color:#fff;
  line-height:1;
  letter-spacing:-.02em;
  margin-bottom:.4em;
}
.privacy-hero p {
  color:rgba(255,255,255,.6);
  font-size:18px;
  line-height:1.55;
  max-width:620px;
  margin:0 auto 3em;
}

.privacy-hero-stats {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  max-width:780px;
  margin:0 auto;
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
  padding:28px 0;
}
.stat-item {
  text-align:center;
  border-right:1px solid rgba(255,255,255,.08);
  padding:4px 12px;
}
.stat-item:last-child { border-right:0; }
.stat-num {
  display:block;
  font-family:var(--font-head);
  font-size:34px;
  font-weight:600;
  color:#fff;
  letter-spacing:-.02em;
  margin-bottom:6px;
}
.stat-label {
  font-family:var(--font-body);
  font-size:12px;
  color:rgba(255,255,255,.5);
  letter-spacing:.04em;
}

.hero-shape {
  position:absolute;
  bottom:-1px;
  left:0;
  width:100%;
  line-height:0;
  z-index:2;
}
.hero-shape svg {
  width:100%;
  height:100px;
  display:block;
}

/* ===== READING ROOM ===== */
.reading-room {
  padding:110px 0 90px;
}

.reading-intro {
  text-align:center;
  margin-bottom:60px;
}
.reading-intro .gradient-label { margin-bottom:20px; }
.reading-intro h2 {
  font-family:var(--font-head);
  font-size:48px;
  font-weight:600;
  line-height:1;
  letter-spacing:-.02em;
  margin-bottom:14px;
}
.reading-intro p {
  color:rgba(41,41,41,.6);
  font-size:16px;
  max-width:500px;
  margin:0 auto;
}

.reading-grid {
  display:grid;
  grid-template-columns:260px minmax(0, 1fr) 200px;
  gap:48px;
  align-items:flex-start;
  transition:grid-template-columns .4s ease;
}
.reading-grid.no-toc { grid-template-columns:260px minmax(0, 1fr); }
.reading-grid.no-toc .reader-toc { display:none; }

/* ---------- LEFT: INDEX SIDEBAR ---------- */
.reading-sidebar {
  position:sticky;
  top:100px;
}
.sidebar-inner { max-height:calc(100vh - 130px); display:flex; flex-direction:column; }
.sidebar-mobile-trigger { display:none; }
.sidebar-scroll {
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:8px;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.12) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width:4px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background:rgba(0,0,0,.12); border-radius:4px; }

.doc-nav-group { margin-bottom:32px; }
.group-header {
  display:flex;
  align-items:baseline;
  gap:10px;
  padding:0 0 10px;
  margin-bottom:8px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.group-num {
  font-family:var(--font-body);
  font-weight:500;
  font-size:11px;
  letter-spacing:.1em;
  color:var(--primary);
}
.group-title {
  font-family:var(--font-head);
  font-size:14px;
  font-weight:600;
  color:var(--text);
  letter-spacing:-.005em;
}

.doc-link {
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 14px;
  border-radius:8px;
  font-family:var(--font-body);
  font-size:14px;
  line-height:1.4;
  color:rgba(41,41,41,.65);
  cursor:pointer;
  transition:background .2s, color .2s;
}
.doc-link:hover { background:rgba(41,41,41,.04); color:var(--text); }
.doc-link.active {
  background:linear-gradient(90deg, rgba(112,180,175,.14), rgba(238,112,74,.08));
  color:var(--text);
  font-weight:500;
}
.doc-num {
  font-size:11px;
  font-weight:500;
  color:rgba(41,41,41,.4);
  flex-shrink:0;
  padding-top:3px;
}
.doc-link.active .doc-num { color:var(--primary); }
.doc-title { flex:1; }

.sidebar-foot {
  border-top:1px solid rgba(0,0,0,.08);
  margin-top:16px;
  padding:20px 4px 8px;
  font-size:13px;
  color:rgba(41,41,41,.6);
  line-height:1.5;
}
.sidebar-mail {
  display:inline-block;
  margin-top:8px;
  font-weight:500;
  font-size:13px;
  color:var(--text);
  background:linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  border-bottom:1px solid transparent;
  transition:border-color .25s;
}
.sidebar-mail:hover { border-bottom-color:var(--primary); }

/* ---------- CENTER: READER ---------- */
.reader {
  min-width:0;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:44px 48px;
  box-shadow:0 20px 60px rgba(0,0,0,.05);
}

.reader-meta {
  display:flex;
  align-items:center;
  gap:12px;
  font-family:var(--font-body);
  font-size:12px;
  color:rgba(41,41,41,.55);
  padding-bottom:16px;
  margin-bottom:28px;
  border-bottom:1px solid rgba(0,0,0,.06);
  flex-wrap:wrap;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .4s, transform .4s;
}
.reader-meta.visible { opacity:1; transform:translateY(0); }
.reader-meta:empty, .reader-foot:empty { display:none; }
.reader-meta .meta-sep {
  width:3px; height:3px; border-radius:50%;
  background:rgba(41,41,41,.25);
}
.reader-meta .meta-dot {
  width:7px; height:7px; border-radius:50%;
  background:var(--primary);
  box-shadow:0 0 0 3px rgba(112,180,175,.2);
}

.reader-body {
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.7;
  color:rgba(41,41,41,.82);
  max-width:68ch;
  transition:opacity .4s ease, transform .4s ease;
}
.reader-body.fading { opacity:0; transform:translateY(6px); }

.reader-body h1.doc-h1 {
  font-family:var(--font-head);
  font-size:40px;
  font-weight:600;
  line-height:1.05;
  letter-spacing:-.015em;
  color:var(--text);
  margin-bottom:10px;
}
.reader-body .doc-subtitle {
  font-size:14px;
  color:rgba(41,41,41,.5);
  margin-bottom:36px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.reader-body h2 {
  font-family:var(--font-head);
  font-size:24px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:-.01em;
  color:var(--text);
  margin:44px 0 14px;
  scroll-margin-top:110px;
  display:flex;
  align-items:baseline;
  gap:12px;
}
.reader-body h2::before {
  content:"";
  display:inline-block;
  width:6px; height:6px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink:0;
  transform:translateY(-3px);
}
.reader-body h3 {
  font-family:var(--font-head);
  font-size:17px;
  font-weight:600;
  color:var(--text);
  margin:32px 0 12px;
  scroll-margin-top:110px;
}
.reader-body h4 {
  font-family:var(--font-body);
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--primary);
  margin:28px 0 10px;
  scroll-margin-top:110px;
}
.reader-body p {
  margin-bottom:18px;
  color:rgba(41,41,41,.78);
}
.reader-body p strong { color:var(--text); font-weight:600; }

.reader-body ul.policy-list {
  list-style:none;
  padding:0;
  margin:0 0 22px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.reader-body ul.policy-list li {
  position:relative;
  padding-left:26px;
  color:rgba(41,41,41,.78);
}
.reader-body ul.policy-list li::before {
  content:"";
  position:absolute;
  left:0;
  top:11px;
  width:10px;
  height:2px;
  background:linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius:2px;
}

.reader-body .table-wrap {
  overflow-x:auto;
  margin:24px 0;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
}
.reader-body table {
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  line-height:1.5;
  background:#fff;
}
.reader-body table th,
.reader-body table td {
  border-bottom:1px solid rgba(0,0,0,.06);
  padding:13px 16px;
  text-align:left;
  vertical-align:top;
  color:rgba(41,41,41,.78);
}
.reader-body table tr:first-child td,
.reader-body table thead td,
.reader-body table th {
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  color:var(--text);
  background:#F6F8FB;
}
.reader-body table tr:last-child td { border-bottom:0; }

/* welcome state */
.reader-welcome { padding:24px 0; }
.reader-welcome h1 {
  font-family:var(--font-head);
  font-size:34px;
  font-weight:600;
  line-height:1.1;
  letter-spacing:-.015em;
  color:var(--text);
  margin-bottom:18px;
}
.reader-welcome h1 em {
  font-style:normal;
  background:linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.reader-welcome p {
  font-size:15px;
  color:rgba(41,41,41,.65);
  line-height:1.6;
  margin-bottom:14px;
  max-width:60ch;
}

.reader-foot {
  margin-top:48px;
  padding-top:24px;
  border-top:1px solid rgba(0,0,0,.06);
}
.reader-foot .foot-nav {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}
.reader-foot a {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
  font-family:var(--font-body);
  font-weight:500;
  font-size:13px;
  color:var(--text);
  transition:background .25s, border-color .25s;
  max-width:48%;
}
.reader-foot a:hover {
  background:#F6F8FB;
  border-color:rgba(0,0,0,.14);
}
.reader-foot .foot-label {
  display:block;
  font-size:10.5px;
  font-weight:500;
  color:rgba(41,41,41,.5);
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:2px;
}

/* ---------- RIGHT: TABLE OF CONTENTS ---------- */
.reader-toc {
  position:sticky;
  top:100px;
  max-height:calc(100vh - 130px);
  overflow-y:auto;
  padding:4px 0;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.12) transparent;
}
.reader-toc::-webkit-scrollbar { width:4px; }
.reader-toc::-webkit-scrollbar-thumb { background:rgba(0,0,0,.12); border-radius:4px; }
.toc-label {
  display:block;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(41,41,41,.5);
  padding-bottom:10px;
  margin-bottom:6px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.toc-list { list-style:none; padding:0; margin:0; }
.toc-list a {
  display:block;
  font-family:var(--font-body);
  font-size:13px;
  line-height:1.4;
  color:rgba(41,41,41,.55);
  padding:7px 0 7px 12px;
  border-left:1px solid rgba(0,0,0,.08);
  cursor:pointer;
  transition:color .2s, border-color .2s;
}
.toc-list a:hover { color:var(--text); }
.toc-list a.active {
  color:var(--text);
  font-weight:500;
  border-left-color:var(--primary);
}

/* ===== CLOSING NOTE ===== */
.privacy-closing { padding:60px 0 120px; }
.closing-card {
  background:linear-gradient(135deg, #FFE6E6 0%, #E9E5FF 100%);
  border-radius:24px;
  padding:70px 60px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.closing-card::before {
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 80% 20%, rgba(255,255,255,.5), transparent 50%);
  pointer-events:none;
}
.closing-text { position:relative; max-width:600px; margin:0 auto; }
.closing-text .gradient-label { margin-bottom:18px; }
.closing-text h2 {
  font-family:var(--font-head);
  font-size:44px;
  font-weight:600;
  line-height:1;
  letter-spacing:-.02em;
  margin-bottom:16px;
  color:var(--text);
}
.closing-text p {
  color:rgba(41,41,41,.7);
  line-height:1.6;
  margin-bottom:28px;
}
.closing-text .btn-solid {
  display:inline-block;
  background:var(--text);
  color:#fff;
  padding:14px 32px;
  border-radius:100px;
  font-size:15px;
  font-weight:500;
  transition:transform .25s, background .25s;
}
.closing-text .btn-solid:hover { background:#000; transform:translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width:1200px) {
  .reading-grid { grid-template-columns:230px minmax(0, 1fr) 180px; gap:36px; }
  .reading-grid.no-toc { grid-template-columns:230px minmax(0, 1fr); }
}
@media (max-width:1024px) {
  .privacy-hero { padding:130px 0 100px; }
  .privacy-hero h1 { font-size:48px; }
  .privacy-hero-stats { grid-template-columns:repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right:0; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom:1px solid rgba(255,255,255,.08); padding-bottom:20px; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { padding-top:20px; }

  .reading-grid { grid-template-columns:220px minmax(0, 1fr); gap:28px; }
  .reader-toc { display:none; }
  .reader { padding:32px 28px; }
  .reading-intro h2 { font-size:38px; }
}
@media (max-width:768px) {
  .privacy-hero { padding:110px 20px 80px; }
  .privacy-hero h1 { font-size:36px; }
  .privacy-hero p { font-size:16px; }
  .privacy-hero-stats { grid-template-columns:1fr 1fr; max-width:340px; }
  .privacy-hero-stats .stat-item { border-right:0 !important; border-bottom:1px solid rgba(255,255,255,.08); padding:14px 0; }
  .privacy-hero-stats .stat-item:nth-last-child(-n+2) { border-bottom:0; }
  .stat-num { font-size:26px; }
  .hero-shape svg { height:40px; }

  .reading-room { padding:70px 0 60px; }
  .reading-intro { margin-bottom:40px; }
  .reading-intro h2 { font-size:32px; }

  /* override .no-toc width too — same specificity wins on later definition */
  .reading-grid,
  .reading-grid.no-toc { grid-template-columns:1fr; gap:24px; }
  .reading-sidebar { position:relative; top:0; }
  .header-light .header-social-light { display:none; }
  .sidebar-mobile-trigger {
    display:flex;
    width:100%;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    background:#F6F8FB;
    border:1px solid rgba(0,0,0,.06);
    border-radius:100px;
    font-family:var(--font-body);
    font-weight:500;
    font-size:14px;
    color:var(--text);
  }
  .sidebar-mobile-trigger svg { transition:transform .3s; }
  .sidebar-mobile-trigger[aria-expanded="true"] svg { transform:rotate(180deg); }
  .sidebar-scroll {
    max-height:0;
    overflow:hidden;
    padding:0;
    transition:max-height .5s ease, padding .5s ease;
  }
  .sidebar-inner.open .sidebar-scroll {
    max-height:65vh;
    overflow-y:auto;
    padding:16px 8px 8px 0;
    margin-top:12px;
  }
  .sidebar-inner { max-height:none; }

  .reader { padding:28px 22px; border-radius:14px; }
  .reader-body { font-size:15px; }
  .reader-body h1.doc-h1 { font-size:28px; }
  .reader-body h2 { font-size:20px; margin-top:34px; }
  .reader-foot .foot-nav { flex-direction:column; align-items:stretch; }
  .reader-foot a { max-width:100%; }

  .privacy-closing { padding:40px 0 80px; }
  .closing-card { padding:50px 26px; border-radius:20px; }
  .closing-text h2 { font-size:32px; }
}
@media (max-width:480px) {
  .privacy-container { padding:0 16px; }
  .privacy-hero { padding:90px 18px 60px; }
  .privacy-hero h1 { font-size:30px; line-height:1.04; }
  .privacy-hero p { font-size:14.5px; }
  .privacy-hero-stats { grid-template-columns:1fr; max-width:240px; padding:18px 0; }
  .privacy-hero-stats .stat-item { border-right:0; border-bottom:1px solid rgba(255,255,255,.08); padding:12px 0; }
  .privacy-hero-stats .stat-item:last-child { border-bottom:0; }
  .stat-num { font-size:22px; }
  .stat-label { font-size:11px; }

  .reading-room { padding:50px 0 40px; }
  .reading-intro h2 { font-size:26px; }
  .reading-intro p { font-size:14px; }

  .reader { padding:22px 18px; border-radius:12px; }
  .reader-body { font-size:14.5px; line-height:1.65; }
  .reader-body h1.doc-h1 { font-size:24px; }
  .reader-body h2 { font-size:18px; margin-top:28px; }
  .reader-body h3 { font-size:15px; }
  .reader-body .doc-subtitle { font-size:12.5px; margin-bottom:24px; }
  .reader-meta { font-size:11px; gap:8px; }

  .sidebar-mobile-trigger { padding:12px 16px; font-size:13.5px; }
  .doc-link { font-size:13.5px; padding:9px 12px; }
  .group-title { font-size:13px; }

  .privacy-closing { padding:30px 0 60px; }
  .closing-card { padding:36px 20px; border-radius:16px; }
  .closing-text h2 { font-size:26px; }
  .closing-text p { font-size:14px; }
  .closing-text .btn-solid { padding:12px 26px; font-size:14px; }
}
