/* ================================================================
   QUALZY — Policy Pages
   Shared styles for all policy documents (privacy, cookies, T&Cs etc.)
   ================================================================ */


/* ── HEADER
   ---------------------------------------------------------------- */
.pol-header {
  background: var(--dk);
  padding: 120px 80px 72px;
  position: relative;
  z-index: 10; /* sits above the sticky TOC sidebar during scroll */
}

.pol-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.pol-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pol-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--t-fast);
}

.pol-breadcrumb a:hover { color: #fff; text-decoration: underline; }

.pol-breadcrumb-sep {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
}

.pol-breadcrumb-current {
  color: rgba(255,255,255,0.9);
}

.pol-dates {
  font-size: 12px;
  color: var(--mu);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
}

.pol-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.pol-header-lead {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 620px;
}


/* ── BODY LAYOUT
   ---------------------------------------------------------------- */
.pol-body {
  background: var(--wh);
  padding: 64px 80px 100px;
}

.pol-inner {
  max-width: 780px;
  margin: 0 auto;
}


/* ── CONTENT
   ---------------------------------------------------------------- */
.pol-content {
  min-width: 0;
}

.pol-content h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--dk);
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.pol-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Major section headings (Part A / B / C / D openers) */
.pol-content h2.pol-h-major {
  font-size: clamp(20px, 2.4vw, 28px);
  margin-top: 80px;
  padding-top: 64px;
  border-top: 3px solid var(--dk);
  color: var(--dk);
  letter-spacing: -0.02em;
}

.pol-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dk);
  margin: 28px 0 12px;
}

.pol-content p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 14px;
}

.pol-content ol,
.pol-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.pol-content li {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 10px;
}

.pol-content li ol,
.pol-content li ul {
  margin-top: 10px;
  margin-bottom: 4px;
}

.pol-content a {
  color: var(--o);
  text-decoration: none;
}

.pol-content a:hover { text-decoration: underline; }


.pol-updated {
  display: inline-block;
  font-size: 12px;
  color: var(--mu);
  background: var(--op);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 32px;
}

/* Cookie tables */
.pol-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

.pol-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pol-table th {
  background: var(--dk);
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
}

.pol-table td {
  padding: 10px 14px;
  color: var(--mid);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
}

.pol-table tr:last-child td { border-bottom: none; }
.pol-table tr:nth-child(even) td { background: rgba(0,0,0,0.02); }

.pol-table td:first-child {
  font-family: monospace;
  font-size: 12px;
  color: var(--dk);
  white-space: nowrap;
}


/* ── VERSION HISTORY NOTICE
   ---------------------------------------------------------------- */
.pol-version-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--op);
  border: 1.5px solid rgba(232, 97, 44, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 36px;
}

.pol-version-notice-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}

.pol-version-notice-text {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.6;
}

.pol-version-notice-text strong {
  color: var(--dk);
}

.pol-version-notice-text a {
  color: var(--o);
  font-weight: 600;
  text-decoration: none;
}

.pol-version-notice-text a:hover {
  text-decoration: underline;
}

/* Archived policy banner — sits in the header for superseded versions */
.pol-archived-banner {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pol-archived-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pol-archived-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  flex: 1;
}

.pol-archived-text a {
  color: var(--o);
  font-weight: 600;
  text-decoration: none;
}

.pol-archived-text a:hover { text-decoration: underline; }


/* ── RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pol-header { padding: 100px 40px 56px; }
  .pol-body { padding: 48px 40px 80px; }
}

@media (max-width: 640px) {
  .pol-header { padding: 88px 20px 48px; }
  .pol-body { padding: 32px 20px 64px; }
}
