/**
 * ====================================================================
 * Rapid Extreme - Privacy Policy Stylesheet (Figma Node 183:138)
 * Tactical Legal & Operational Privacy Presentation
 * ====================================================================
 */

body.privacy-policy,
body.page-template-template-privacy-policy {
  overflow-x: clip;
}

.pp-page {
  --pp-bg: #101310;
  --pp-surface: #151916;
  --pp-card: #1a1e1b;
  --pp-border: #262b27;
  --pp-border-row: #2e332f;
  --pp-text-primary: #f4f3ee;
  --pp-text-secondary: #c9ccc6;
  --pp-text-muted: #a3a8a2;
  --pp-accent-lime: #c6ff00;
  --pp-accent-cyan: #29dce8;
  --pp-accent-cyan-bg: #0f1a1b;
  --pp-accent-orange: #ff713c;
  --pp-accent-orange-bg: #2a1a12;

  background-color: var(--pp-bg);
  color: var(--pp-text-secondary);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  width: 100%;
  overflow-x: clip;
}

/* Global container constraints */
.pp-container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

/* ====================================================================
   1. Breadcrumbs
   ==================================================================== */
.pp-breadcrumb-nav {
  width: 100%;
  border-bottom: 1px solid var(--pp-border);
  background-color: var(--pp-bg);
}

.pp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.pp-breadcrumb__link {
  font-size: 13px;
  line-height: 1;
  color: var(--pp-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pp-breadcrumb__link:hover {
  color: var(--pp-text-primary);
}

.pp-breadcrumb__sep {
  font-size: 13px;
  line-height: 1;
  color: var(--pp-text-muted);
  user-select: none;
}

.pp-breadcrumb__current {
  font-size: 13px;
  line-height: 1;
  color: var(--pp-text-primary);
  font-weight: 500;
}

/* ====================================================================
   2. Header Section
   ==================================================================== */
.pp-header {
  width: 100%;
  border-bottom: 1px solid var(--pp-border);
  padding: 24px 0 56px;
  background-color: var(--pp-bg);
}

.pp-header__content {
  max-width: 820px;
}

.pp-header__meta {
  font-size: 13px;
  color: var(--pp-text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.pp-header__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 96px;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--pp-text-primary);
  margin: 0 0 18px;
}

.pp-header__title-accent {
  color: var(--pp-accent-lime);
}

.pp-header__sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--pp-text-secondary);
  max-width: 720px;
  margin: 0;
}

/* ====================================================================
   3. Main Body & Two-Column Layout
   ==================================================================== */
.pp-body {
  width: 100%;
  background-color: var(--pp-bg);
}

.pp-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 820px);
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 96px;
  align-items: start;
}

/* ====================================================================
   4. Sidebar (TOC)
   ==================================================================== */
.pp-sidebar {
  position: sticky;
  top: 96px;
  z-index: 10;
}

.pp-toc {
  background-color: var(--pp-surface);
  border: 1px solid var(--pp-border);
  padding: 22px 24px;
  border-radius: 2px;
}

.pp-toc__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pp-text-muted);
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.pp-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pp-toc__item {
  margin: 0;
  padding: 0;
}

.pp-toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-left 0.15s ease, padding-left 0.15s ease;
  border-left: 2px solid transparent;
}

.pp-toc__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-accent-lime);
  letter-spacing: 0.075px;
  text-transform: uppercase;
  width: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.pp-toc__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--pp-text-secondary);
  line-height: 1.3;
  transition: color 0.15s ease;
}

.pp-toc__link:hover {
  background-color: rgba(198, 255, 0, 0.05);
}

.pp-toc__link:hover .pp-toc__label {
  color: var(--pp-text-primary);
}

.pp-toc__link.is-active {
  background-color: rgba(198, 255, 0, 0.08);
  border-left-color: var(--pp-accent-lime);
  padding-left: 8px;
}

.pp-toc__link.is-active .pp-toc__label {
  color: var(--pp-text-primary);
}

/* Mobile TOC Quick Toggle Bar */
.pp-mobile-toc-toggle {
  display: none;
  width: 100%;
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  padding: 12px 16px;
  border-radius: 4px;
  color: var(--pp-text-primary);
  font-weight: 600;
  font-size: 14px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 24px;
}

.pp-mobile-toc-toggle svg {
  transition: transform 0.2s ease;
}

.pp-mobile-toc-toggle.is-open svg {
  transform: rotate(180deg);
}

/* ====================================================================
   5. Content Sections
   ==================================================================== */
.pp-content {
  display: flex;
  flex-direction: column;
}

.pp-section {
  position: relative;
  border-top: 1px solid var(--pp-border);
  padding-top: 40px;
  margin-top: 40px;
  scroll-margin-top: 110px;
}

.pp-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Section Header (Number + Title) */
.pp-section__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.pp-section__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--pp-accent-lime);
  letter-spacing: 0.1px;
  line-height: 1;
  flex-shrink: 0;
}

.pp-section__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.17px;
  text-transform: uppercase;
  color: var(--pp-text-primary);
  margin: 0;
}

/* Paragraphs */
.pp-p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--pp-text-secondary);
  margin: 0 0 16px;
}

.pp-p:last-child {
  margin-bottom: 0;
}

.pp-lead-p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--pp-text-secondary);
  margin: 0 0 20px;
}

.pp-closing-p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--pp-text-secondary);
  margin: 20px 0 0;
}

/* Plain language card (Section 01) */
.pp-plain-card {
  background-color: var(--pp-card);
  border: 1px solid var(--pp-border);
  padding: 25px;
  border-radius: 2px;
}

.pp-plain-card__badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pp-accent-lime);
  margin-bottom: 6px;
}

.pp-plain-card__subtitle {
  font-size: 13px;
  color: var(--pp-text-muted);
  margin: 0 0 20px;
}

/* Tactical Bullet List */
.pp-bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.pp-bullet-dot {
  width: 6px;
  height: 6px;
  background-color: var(--pp-accent-lime);
  margin-top: 10px;
  flex-shrink: 0;
  border-radius: 1px;
}

.pp-bullet-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--pp-text-secondary);
}

.pp-bullet-text strong {
  color: var(--pp-text-primary);
  font-weight: 700;
}

/* Tables */
.pp-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-bottom: 1px solid var(--pp-border-row);
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pp-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pp-text-muted);
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--pp-border-row);
  white-space: nowrap;
}

.pp-table td {
  font-size: 14px;
  line-height: 1.55;
  color: var(--pp-text-secondary);
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--pp-border-row);
  vertical-align: top;
}

.pp-table tbody tr:last-child td {
  border-bottom: none;
}

.pp-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

.pp-table__col-title {
  font-weight: 700;
  color: var(--pp-text-primary) !important;
  min-width: 160px;
}

.pp-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: var(--pp-text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Callout Cards (Cyan & Orange) */
.pp-callout {
  padding: 16px 20px 16px 23px;
  border-radius: 2px;
  margin-top: 24px;
}

.pp-callout--cyan {
  background-color: var(--pp-accent-cyan-bg);
  border-left: 3px solid var(--pp-accent-cyan);
}

.pp-callout--orange {
  background-color: var(--pp-accent-orange-bg);
  border-left: 3px solid var(--pp-accent-orange);
}

.pp-callout__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pp-callout--cyan .pp-callout__title {
  color: var(--pp-accent-cyan);
}

.pp-callout--orange .pp-callout__title {
  color: var(--pp-accent-orange);
}

.pp-callout__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--pp-text-secondary);
  margin: 0;
}

/* Interactive link styling */
.pp-link {
  color: var(--pp-text-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pp-accent-lime);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.pp-link:hover,
.pp-link:focus-visible {
  color: var(--pp-accent-lime);
  text-decoration-color: var(--pp-text-primary);
}

/* ====================================================================
   6. Responsive Layout Breakpoints
   ==================================================================== */
@media (max-width: 1200px) {
  .pp-container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .pp-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
  }

  .pp-header__title {
    font-size: 80px;
  }
}

@media (max-width: 1024px) {
  .pp-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .pp-layout {
    grid-template-columns: 100%;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .pp-sidebar {
    position: static;
    width: 100%;
  }

  .pp-mobile-toc-toggle {
    display: flex;
  }

  .pp-toc {
    display: none;
    margin-bottom: 24px;
  }

  .pp-toc.is-open {
    display: block;
  }

  .pp-header {
    padding: 20px 0 40px;
  }

  .pp-header__title {
    font-size: 64px;
  }

  .pp-section__title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .pp-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pp-breadcrumb {
    height: 48px;
  }

  .pp-header {
    padding: 16px 0 32px;
  }

  .pp-header__title {
    font-size: 44px;
    line-height: 0.95;
  }

  .pp-header__sub {
    font-size: 16px;
  }

  .pp-section {
    padding-top: 32px;
    margin-top: 32px;
    scroll-margin-top: 90px;
  }

  .pp-section__header {
    gap: 12px;
    margin-bottom: 16px;
  }

  .pp-section__num {
    font-size: 17px;
  }

  .pp-section__title {
    font-size: 24px;
  }

  .pp-plain-card {
    padding: 18px 16px;
  }

  .pp-table th,
  .pp-table td {
    padding-right: 12px;
  }

  .pp-callout {
    padding: 14px 16px;
  }
}
