:root {
  --pc-bg-primary: #f4faff;
  --pc-bg-surface: #ffffff;
  --pc-bg-subtle: #eef7ff;
  --pc-text-primary: #0c1746;
  --pc-text-secondary: #33466e;
  --pc-text-muted: #64779b;
  --pc-border-color: #dceafa;
  --pc-accent-primary: #086bff;
  --pc-accent-hover: #0054d6;
  --pc-accent-soft: #e7f2ff;
  --pc-teal: #08b7a5;
  --pc-violet: #8d35f6;
  --pc-badge-general-bg: #e5f1ff;
  --pc-badge-general-text: #075fe0;
  --pc-badge-tool-bg: #dcfbf5;
  --pc-badge-tool-text: #008b83;
  --pc-badge-hybrid-bg: #f0e7ff;
  --pc-badge-hybrid-text: #7932d4;
  --pc-badge-service-bg: #fff0dc;
  --pc-badge-service-text: #b96700;
  --pc-warning-bg: #fff8e8;
  --pc-warning-border: #f59e0b;
  --pc-warning-text: #8b4e00;
  --pc-danger-bg: #fff0f0;
  --pc-danger-border: #ef4444;
  --pc-danger-text: #a11b25;
  --pc-radius-md: 10px;
  --pc-radius-lg: 16px;
  --pc-shadow-sm: 0 4px 14px rgba(26, 88, 160, 0.055);
  --pc-shadow-md: 0 12px 32px rgba(26, 88, 160, 0.10);
  --pc-font-sans: var(--font-body, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  --pc-font-heading: var(--font-heading, "Manrope", sans-serif);
  --pc-font-mono: var(--font-code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
}

body.page-privacy {
  font-family: var(--pc-font-sans);
  font-size: 11px;
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 43%, #f3faff 100%);
  color: var(--pc-text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.page-privacy h1,
body.page-privacy h2,
body.page-privacy h3,
body.page-privacy h4,
body.page-privacy h5,
body.page-privacy h6,
.policy-hero .hero-title,
.policy-hero .brand-name,
.panel-title {
  font-family: var(--pc-font-heading);
}

body.page-privacy :is(p, li, a, span:not(.brand-name, .brand-mark), input, button, label, td, th, dt, dd, code, mark, small):not(:is(h1, h2, h3, h4, h5, h6, .hero-title, .brand-name, .panel-title, .brand-mark) *) {
  font-size: 11px;
}

/* Policy Hero Header */
.policy-hero {
  background: radial-gradient(ellipse at 78% 10%, rgba(45, 167, 255, 0.19), transparent 43%),
    linear-gradient(110deg, #f4fbff 0%, #eaf6ff 56%, #f8fcff 100%);
  color: var(--pc-text-primary);
  padding: 38px 28px 28px;
  border-bottom: 1px solid #d9ebfc;
  position: relative;
  overflow: hidden;
}

.policy-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -150px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(7, 111, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(7, 111, 255, 0.025), 0 0 0 70px rgba(7, 111, 255, 0.02);
  pointer-events: none;
}

.policy-hero .header-container {
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.policy-hero .brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 19px;
}

.policy-hero .brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.policy-hero .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #18c2c5, #0870ff 68%, #674bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 13px rgba(0, 105, 255, 0.19);
}

.policy-hero .brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.25px;
  color: var(--pc-text-primary);
}

.policy-hero .brand-sub {
  font-size: 11px;
  color: #63779b;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

.policy-hero .header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.policy-hero .btn-utility {
  background: #fff;
  color: var(--pc-accent-primary);
  border: 1px solid #b8d6ff;
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(28, 92, 158, 0.045);
}

.policy-hero .btn-utility:hover {
  background: #edf6ff;
  border-color: #7eb8ff;
}

.policy-hero .hero-title {
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  font-weight: 850;
  letter-spacing: -1.25px;
  line-height: 1.12;
  margin-bottom: 0.65rem;
  color: #0c1746;
  max-width: 900px;
}

.policy-hero .hero-subtitle {
  color: #41557e;
  font-size: 11px;
  max-width: 940px;
  margin-bottom: 1.15rem;
  line-height: 1.65;
}

.policy-hero .meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 11px;
  color: #53688f;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 121, 197, 0.15);
}

.policy-hero .meta-strip span {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(212, 232, 252, 0.8);
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 11px;
}

.policy-hero .meta-strip strong {
  color: #10285d;
}

/* Two-column legal portal layout */
.portal-wrapper {
  max-width: 1280px;
  margin: 28px auto 36px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Sidebar Navigation */
.sidebar-nav {
  background: var(--pc-bg-surface);
  border: 1px solid #dfebf9;
  border-radius: 16px;
  box-shadow: var(--pc-shadow-sm);
  position: sticky;
  top: 96px;
  overflow: hidden;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.search-box-container {
  padding: 15px;
  border-bottom: 1px solid #e2edf8;
  background: linear-gradient(180deg, #f7fbff, #eff7ff);
}

.search-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cddff2;
  border-radius: 9px;
  font-size: 11px;
  font-family: var(--pc-font-sans);
  color: var(--pc-text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  border-color: #5a9dff;
  box-shadow: 0 0 0 3px rgba(8, 107, 255, 0.1);
}

.search-hint {
  font-size: 11px;
  color: var(--pc-text-muted);
  margin-top: 7px;
  display: block;
  line-height: 1.45;
}

.nav-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6480a8;
  padding: 16px 15px 6px;
  background: #fff;
}

.tab-list {
  list-style: none;
  padding: 0 8px 10px;
  margin: 0;
}

.tab-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s ease;
  margin-bottom: 3px;
  border-left: 3px solid transparent;
  font-family: inherit;
}

.tab-btn:hover {
  background: #f4f9ff;
}

.tab-btn[aria-selected="true"] {
  background: #eaf4ff;
  border-color: #d5e9ff;
  border-left-color: var(--pc-accent-primary);
}

.tab-btn-title {
  font-size: 11px;
  font-weight: 750;
  color: #10214e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.tab-btn[aria-selected="true"] .tab-btn-title {
  color: #075fe0;
}

.tab-btn-desc {
  font-size: 11px;
  color: #687da0;
  line-height: 1.35;
}

.nav-pill {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-core {
  background: #e4f0ff;
  color: #075fe0;
}

.pill-local {
  background: #dffaf4;
  color: #007f79;
}

.pill-hybrid {
  background: #f0e7ff;
  color: #7c35d3;
}

.pill-b2b {
  background: #fff0dd;
  color: #ad6100;
}

/* Content Area */
.content-area {
  min-width: 0;
}

.policy-panel {
  display: none;
  background: #fff;
  border: 1px solid #e0ebf8;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(16, 71, 128, 0.055);
  padding: clamp(21px, 3vw, 36px);
}

.policy-panel.active {
  display: block;
}

.panel-header {
  border-bottom: 1px solid #dceafa;
  padding-bottom: 22px;
  margin-bottom: 25px;
}

.panel-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  padding: 5px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.panel-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.7px;
  color: #0c1746;
  line-height: 1.2;
  margin-bottom: 8px;
}

.panel-subtitle {
  font-size: 11px;
  color: #607497;
  margin-bottom: 19px;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #f6faff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e0edfb;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  color: #7185a7;
  font-weight: 800;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 11px;
  font-weight: 700;
  color: #1c315f;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.legal-callout {
  padding: 15px 17px;
  border-radius: 11px;
  margin: 20px 0;
  border-left: 4px solid var(--pc-accent-primary);
  background: #edf6ff;
  font-size: 11px;
  color: #33496e;
  line-height: 1.65;
}

.legal-callout.warning {
  background: #fff8e8;
  border-left-color: #f5a400;
  color: #815018;
}

.legal-callout.danger {
  background: #fff1f1;
  border-left-color: #ef4444;
  color: #8f2631;
}

.legal-callout strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 800;
  color: inherit;
}

.policy-section {
  margin-bottom: 30px;
  scroll-margin-top: 96px;
}

.policy-section h2,
.policy-section h4 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.25px;
  color: #11204c;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e1edf9;
}

.policy-section h3 {
  font-size: 0.98rem;
  font-weight: 750;
  color: #142754;
  margin: 19px 0 8px;
}

.policy-section p {
  color: #3d4f72;
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.policy-section ul,
.policy-section ol {
  margin: 7px 0 15px 1.4rem;
  color: #3d4f72;
  font-size: 11px;
}

.policy-section li {
  margin-bottom: 7px;
  padding-left: 2px;
  font-size: 11px;
}

.policy-section strong {
  color: #1b315f;
}

.policy-panel code,
.policy-panel .code-path {
  font-family: var(--pc-font-mono);
  font-size: 11px;
  background: #edf5ff;
  color: #173568;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid #d6e6fa;
  word-break: break-all;
}

mark.search-match {
  background: #fff09a;
  color: #102149;
  padding: 0 2px;
  border-radius: 3px;
}

/* Privacy CTA Banner */
.privacy-cta {
  max-width: 1280px;
  margin: 0 auto 32px;
  padding: 0 28px;
}

.privacy-cta-inner {
  background: linear-gradient(105deg, #075de7 0%, #0876ff 56%, #0655d9 100%);
  border-radius: 15px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 94, 226, 0.15);
}

.privacy-cta-inner::before,
.privacy-cta-inner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.privacy-cta-inner::before {
  width: 190px;
  height: 190px;
  right: -45px;
  top: -110px;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.04);
}

.privacy-cta-inner::after {
  width: 130px;
  height: 130px;
  left: -65px;
  bottom: -88px;
  box-shadow: 0 0 0 25px rgba(255, 255, 255, 0.045);
}

.privacy-cta-copy {
  position: relative;
  z-index: 1;
}

.privacy-cta h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-bottom: 5px;
  color: #fff;
}

.privacy-cta p {
  font-size: 11px;
  color: #e8f3ff;
  line-height: 1.55;
  margin: 0;
}

.privacy-cta .btn-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: #075fe5;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.privacy-cta .btn-cta:hover {
  background: #edf6ff;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .portal-wrapper {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    padding: 0 20px;
  }

  .policy-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .privacy-cta {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 860px) {
  .portal-wrapper {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .sidebar-nav {
    position: static;
    max-height: none;
  }

  .tab-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 10px 12px;
    scroll-snap-type: x proximity;
  }

  .tab-list li {
    flex: 0 0 auto;
    min-width: 180px;
    scroll-snap-align: start;
  }

  .nav-group-title {
    padding-top: 12px;
  }

  .tab-btn {
    height: 100%;
  }

  .search-box-container {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .search-input {
    flex: 1;
    min-width: 0;
  }

  .search-hint {
    max-width: 220px;
    margin-top: 0;
  }

  .policy-hero {
    padding-top: 28px;
  }
}

@media (max-width: 560px) {
  .policy-hero {
    padding: 24px 16px 20px;
  }

  .policy-hero .brand-bar {
    align-items: flex-start;
  }

  .policy-hero .header-actions {
    width: 100%;
  }

  .policy-hero .btn-utility {
    font-size: 11px;
    padding: 0.5rem 0.65rem;
  }

  .policy-hero .hero-title {
    font-size: 13px;
    letter-spacing: -0.8px;
  }

  .policy-hero .hero-subtitle {
    font-size: 11px;
  }

  .policy-hero .meta-strip {
    gap: 7px;
  }

  .policy-hero .meta-strip span {
    font-size: 11px;
  }

  .portal-wrapper {
    padding: 0 12px;
    margin: 14px auto 20px;
  }

  .search-box-container {
    display: block;
  }

  .search-hint {
    margin-top: 6px;
    max-width: none;
  }

  .policy-panel {
    padding: 19px 15px;
    border-radius: 13px;
  }

  .panel-title {
    font-size: 1.45rem;
  }

  .panel-subtitle {
    font-size: 11px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
  }

  .summary-value {
    font-size: 11px;
  }

  .policy-section h2,
  .policy-section h4 {
    font-size: 1.06rem;
  }

  .policy-section p,
  .policy-section ul,
  .policy-section ol {
    font-size: 11px;
  }

  .legal-callout {
    padding: 13px;
    font-size: 11px;
  }

  .privacy-cta {
    padding: 14px 12px 20px;
  }

  .privacy-cta-inner {
    padding: 21px 18px;
    display: block;
  }

  .privacy-cta h2 {
    font-size: 1.2rem;
  }

  .privacy-cta p {
    font-size: 11px;
    margin-bottom: 15px;
  }

  .privacy-cta .btn-cta {
    font-size: 11px;
  }
}

@media print {
  body.page-privacy {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .privacy-cta {
    display: none !important;
  }

  .policy-hero {
    background: #fff;
    color: #000;
    border-bottom: 2px solid #111;
    padding: 1rem 0;
  }

  .policy-hero::after {
    display: none;
  }

  .hero-title,
  .brand-name,
  .meta-strip strong {
    color: #000;
  }

  .hero-subtitle,
  .meta-strip {
    color: #333;
  }

  .sidebar-nav,
  .header-actions {
    display: none !important;
  }

  .portal-wrapper {
    display: block;
    margin: 0;
    padding: 0;
  }

  .policy-panel {
    display: block !important;
    border: 0;
    box-shadow: none;
    padding: 1rem 0;
    page-break-after: always;
  }

  .policy-section {
    break-inside: avoid;
  }

  .policy-section h2 {
    break-after: avoid;
  }
}