/* Shared legal / privacy page shell — privacy policy, rights, sub-processors, PBOR, AI transparency */

.pp-page {
  --pp-ink: #1a2b3c;
  --pp-muted: #5a6b7c;
  --pp-line: rgba(16, 41, 80, 0.1);
  --pp-surface: rgba(255, 255, 255, 0.94);
  --pp-accent: var(--brand-primary, #005c99);
  --pp-deep: #102950;
  color: var(--pp-ink);
  background: transparent;
  padding-bottom: 3.5rem;
  overflow-x: clip;
}

.pp-page a {
  color: var(--pp-accent);
  text-underline-offset: 2px;
  word-break: break-word;
}

.pp-page a:hover {
  color: var(--pp-deep);
}

.pp-hero {
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--pp-line);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .pp-hero {
    padding: 2.5rem 0 1.75rem;
    margin-bottom: 2rem;
  }
}

.pp-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-accent);
  margin-bottom: 0.65rem;
}

.pp-hero h1 {
  font-size: clamp(1.55rem, 6.5vw, 2.6rem);
  font-weight: 700;
  color: var(--pp-deep);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.pp-lead {
  max-width: 42rem;
  color: var(--pp-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .pp-lead {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }
}

.pp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--pp-muted);
  margin-bottom: 1rem;
}

@media (min-width: 576px) {
  .pp-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}

.pp-meta strong {
  color: var(--pp-ink);
  font-weight: 600;
}

.pp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .pp-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.pp-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.5rem;
  border: 1px solid var(--pp-line);
  background: #fff;
  color: var(--pp-deep);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 44px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

@media (min-width: 576px) {
  .pp-actions a {
    justify-content: flex-start;
    min-height: 0;
    padding: 0.5rem 0.95rem;
  }
}

.pp-actions a:hover {
  background: #eef2f7;
}

.pp-actions a.pp-primary {
  background: var(--pp-accent);
  border-color: var(--pp-accent);
  color: #fff;
}

.pp-actions a.pp-primary:hover {
  background: var(--pp-deep);
  border-color: var(--pp-deep);
  color: #fff;
}

.pp-actions .btn {
  min-height: 44px;
  width: 100%;
}

@media (min-width: 576px) {
  .pp-actions .btn {
    width: auto;
  }
}

.pp-hero-links {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--pp-muted);
}

.pp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 992px) {
  .pp-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.pp-toc {
  position: sticky;
  top: calc(var(--navbar-height, 72px) + 1rem);
  max-height: calc(100vh - var(--navbar-height, 72px) - 2rem);
  overflow: auto;
  padding: 1rem 0;
  display: none;
}

@media (min-width: 992px) {
  .pp-toc {
    display: block;
  }
}

.pp-toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-muted);
  margin-bottom: 0.75rem;
}

.pp-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 2px solid var(--pp-line);
  padding-left: 0.85rem;
}

.pp-toc a {
  color: var(--pp-muted);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 0.28rem 0;
  transition: color 0.15s;
}

.pp-toc a:hover,
.pp-toc a.is-active {
  color: var(--pp-accent);
}

.pp-article {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: 0.85rem;
  padding: 1.1rem 1rem;
  box-shadow: 0 12px 40px rgba(16, 41, 80, 0.06);
  min-width: 0;
}

@media (min-width: 576px) {
  .pp-article {
    padding: 1.35rem 1.35rem;
    border-radius: 1rem;
  }
}

@media (min-width: 768px) {
  .pp-article {
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.pp-section {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--pp-line);
  scroll-margin-top: calc(var(--navbar-height, 72px) + 1rem);
}

@media (min-width: 768px) {
  .pp-section {
    padding: 1.75rem 0;
  }
}

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

.pp-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pp-section-title {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 700;
  color: var(--pp-deep);
  margin: 0 0 0.85rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.pp-subsection-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--pp-ink);
  margin: 1.2rem 0 0.55rem;
  line-height: 1.35;
}

.pp-article p,
.pp-article li {
  line-height: 1.7;
  color: var(--pp-ink);
  overflow-wrap: anywhere;
}

.pp-article p {
  margin-bottom: 0.9rem;
}

.pp-article ul:not(.pp-commitments):not(.list-unstyled):not(.pp-stat-list) {
  padding-left: 1.15rem;
  margin-bottom: 1rem;
}

.pp-article ul:not(.pp-commitments):not(.list-unstyled):not(.pp-stat-list) li {
  margin-bottom: 0.4rem;
}

.pp-article .list-unstyled li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

.pp-article .list-unstyled .fa-check-circle {
  color: var(--pp-accent) !important;
}

.pp-commitments {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .pp-commitments {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

.pp-commitments li {
  background: #f7fafc;
  border: 1px solid var(--pp-line);
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  margin: 0 !important;
  font-size: 0.92rem;
}

.pp-commitments li strong {
  display: block;
  color: var(--pp-deep);
  margin-bottom: 0.25rem;
}

.pp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 0.5rem;
  border: 1px solid var(--pp-line);
  border-radius: 0.75rem;
  max-width: 100%;
}

.pp-article table,
.pp-table-wrap table {
  margin: 0;
  border: 0;
  min-width: 520px;
  width: 100%;
}

.pp-article table thead th,
.pp-table-wrap table thead th {
  background: var(--pp-deep);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.pp-article table td,
.pp-article table th,
.pp-table-wrap table td,
.pp-table-wrap table th {
  padding: 0.7rem 0.8rem;
  vertical-align: top;
  border-color: var(--pp-line);
  font-size: 0.9rem;
}

.pp-article table tbody tr:nth-child(even),
.pp-table-wrap table tbody tr:nth-child(even) {
  background: #f7fafc;
}

.pp-contact {
  background: linear-gradient(135deg, rgba(0, 92, 153, 0.08), rgba(16, 41, 80, 0.05));
  border: 1px solid var(--pp-line);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  margin-top: 0.5rem;
}

.pp-contact li {
  margin-bottom: 0.4rem;
}

.pp-foot {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pp-line);
  color: var(--pp-muted);
  font-size: 0.85rem;
}

.pp-mobile-toc {
  display: block;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .pp-mobile-toc {
    display: none;
  }
}

.pp-mobile-toc summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pp-deep);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: 0.65rem;
}

.pp-mobile-toc summary::after {
  content: "▾";
  color: var(--pp-muted);
  font-size: 0.85rem;
}

.pp-mobile-toc[open] summary::after {
  content: "▴";
}

.pp-mobile-toc summary::-webkit-details-marker {
  display: none;
}

.pp-mobile-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.55rem;
  padding: 0.5rem;
  background: #f7fafc;
  border-radius: 0.75rem;
  border: 1px solid var(--pp-line);
}

.pp-mobile-toc a {
  text-decoration: none;
  color: var(--pp-muted);
  font-size: 0.875rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.4rem;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.pp-mobile-toc a:active,
.pp-mobile-toc a:hover {
  background: #fff;
  color: var(--pp-accent);
}

.pp-page code {
  background: #eef3f8;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
  word-break: break-word;
}

/* Callouts / rights cards / feature cards */
.pp-callout {
  border: 1px solid var(--pp-line);
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
  margin: 0 0 0.85rem;
  background: #f7fafc;
}

.pp-callout-info {
  background: rgba(0, 92, 153, 0.07);
  border-color: rgba(0, 92, 153, 0.18);
}

.pp-callout-muted {
  background: #f3f5f8;
}

.pp-right-card,
.pp-feature,
.feature {
  border: 1px solid var(--pp-line);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0 0 0.85rem;
  background: #fff;
}

.pp-right-card h3,
.pp-feature h2,
.feature h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pp-deep);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.pp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  vertical-align: middle;
  margin: 0.15rem 0 0 0.35rem;
  white-space: nowrap;
}

.pp-badge-auto {
  background: #fde8e8;
  color: #9b1c1c;
}

.pp-badge-assist {
  background: #e6f4ea;
  color: #166534;
}

.pp-badge-yes {
  background: #e8eef5;
  color: var(--pp-deep);
}

.pp-badge-no {
  background: #f3f5f8;
  color: var(--pp-muted);
}

.pp-stat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.pp-stat-list li {
  background: #f7fafc;
  border: 1px solid var(--pp-line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--pp-muted);
}

.pp-form-panel {
  border: 1px solid var(--pp-line);
  border-radius: 0.85rem;
  padding: 1rem;
  margin: 1rem 0;
  background: #f7fafc;
}

@media (min-width: 576px) {
  .pp-form-panel {
    padding: 1.15rem 1.25rem;
  }
}

.pp-form-panel .form-control {
  min-height: 44px;
}

.pp-form-panel textarea.form-control {
  min-height: 96px;
}

.pp-form-panel .btn {
  min-height: 44px;
  width: 100%;
}

@media (min-width: 576px) {
  .pp-form-panel .btn {
    width: auto;
  }
}

/* Sub-processor mobile: stack as cards under 640px */
@media (max-width: 639.98px) {
  .pp-sp-table thead {
    display: none;
  }

  .pp-sp-table,
  .pp-sp-table tbody,
  .pp-sp-table tr,
  .pp-sp-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .pp-sp-table tr {
    border-bottom: 1px solid var(--pp-line);
    padding: 0.85rem 0.75rem;
  }

  .pp-sp-table tr:last-child {
    border-bottom: 0;
  }

  .pp-sp-table td {
    padding: 0.2rem 0;
    border: 0 !important;
    text-align: left !important;
  }

  .pp-sp-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pp-muted);
    margin-bottom: 0.1rem;
  }

  .pp-sp-table td:first-child {
    margin-bottom: 0.35rem;
  }

  .pp-table-wrap.pp-sp-wrap {
    border: 1px solid var(--pp-line);
  }

  .pp-table-wrap.pp-sp-wrap table {
    min-width: 0;
  }
}
