/* =========================================================
   POLICIES PAGE — pol-* styles
   Save as: styles/policies.css
   Loaded only by policies.html
   Depends on: styles/cow.css (for CSS variables)
   ========================================================= */

/* ── ANCHOR STRIP ── */
.pol-anchor-strip {
  position: sticky;
  top: 108px;
  z-index: 90;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.05);
}
.pol-anchor-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pol-anchor-strip__inner::-webkit-scrollbar { display: none; }
.pol-anchor-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.pol-anchor-strip__link:hover { color: var(--navy); }
.pol-anchor-strip__link.active { color: var(--navy); border-bottom-color: var(--gold); }
.pol-anchor-strip__link svg { flex-shrink: 0; opacity: 0.7; }
.pol-anchor-strip__link.active svg { opacity: 1; }
@media (max-width: 640px) {
  .pol-anchor-strip { top: 60px; }
  .pol-anchor-strip__inner { padding: 0 16px; }
  .pol-anchor-strip__link { padding: 12px 10px; font-size: 12px; }
}

/* ── PAGE WRAPPER ── */
.pol-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}
@media (max-width: 640px) { .pol-inner { padding: 0 20px 64px; } }

/* ── SECTION BASE ── */
.pol-section {
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}
.pol-section:first-child { border-top: none; padding-top: 56px; }
.pol-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.pol-section__title {
  font-family: "Lora", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.pol-section__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 760px;
  margin-bottom: 32px;
}
.pol-subsection-title {
  font-family: "Lora", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  margin-top: 32px;
}
.pol-inline-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.pol-inline-link:hover { color: oklch(0.6 0.13 72); text-decoration: underline; }

/* ── RULE BLOCKS ── */
.pol-rule-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.pol-rule-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pol-rule-block__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.pol-rule-block__icon--blue { background: oklch(0.95 0.03 240); color: var(--navy); border-color: oklch(0.85 0.04 240); }
.pol-rule-block__icon--red { background: oklch(0.96 0.04 25); color: #dc2626; border-color: oklch(0.88 0.07 25); }
.pol-rule-block__icon--gold { background: oklch(0.96 0.04 72); color: oklch(0.5 0.13 68); border-color: oklch(0.86 0.06 72); }
.pol-rule-block__icon--green { background: oklch(0.95 0.04 155); color: #059669; border-color: oklch(0.85 0.06 155); }
.pol-rule-block__title {
  font-family: "Lora", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.pol-rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pol-rule-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.pol-rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── TWO-COLUMN RULE LAYOUT ── */
.pol-rules-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) { .pol-rules-two-col { grid-template-columns: 1fr; } }

/* ── PROHIBITED GRID ── */
.pol-prohibited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.pol-prohibited-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.pol-prohibited-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
  margin-top: 6px;
}
.pol-prohibited-item__dot--red { background: #dc2626; }
.pol-prohibited-grid--ragging .pol-prohibited-item {
  background: oklch(0.98 0.01 25);
  border-color: oklch(0.9 0.04 25);
}

/* ── EMERGENCY BOX ── */
.pol-emergency-box {
  background: var(--navy);
  border-radius: 14px;
  padding: 28px 28px 22px;
  margin-top: 8px;
}
.pol-emergency-box__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dc2626;
  margin-bottom: 10px;
}
.pol-emergency-box__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.pol-emergency-box__title {
  font-family: "Lora", serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}
.pol-emergency-chain {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pol-chain-step {
  flex: 1;
  min-width: 160px;
  background: oklch(1 0 0 / 0.07);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 10px;
  padding: 14px 14px;
}
.pol-chain-step__num {
  font-family: "Lora", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.pol-chain-step__text {
  font-size: 13px;
  color: oklch(1 0 0 / 0.85);
  line-height: 1.5;
}
.pol-chain-step__text strong { color: white; }
.pol-chain-arrow {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(1 0 0 / 0.3);
  font-size: 18px;
}
.pol-emergency-box__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  flex-wrap: wrap;
}
.pol-emergency-box__footer > span:first-child {
  font-size: 12px;
  color: oklch(1 0 0 / 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pol-emergency-box__number {
  font-family: "Lora", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s;
}
.pol-emergency-box__number:hover { color: var(--gold-light); }
.pol-emergency-box__note {
  font-size: 12px;
  color: oklch(1 0 0 / 0.5);
  font-style: italic;
}
@media (max-width: 900px) {
  .pol-emergency-chain { gap: 10px; }
  .pol-chain-arrow { display: none; }
  .pol-chain-step { flex: 1 1 calc(50% - 5px); }
}
@media (max-width: 480px) {
  .pol-chain-step { flex: 1 1 100%; }
  .pol-emergency-box { padding: 20px; }
}

/* ── CATEGORY BADGES ── */
.pol-category-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-mid);
}
.pol-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pol-cat-badge--A { background: oklch(0.95 0.04 155); color: #059669; }
.pol-cat-badge--B { background: oklch(0.95 0.06 72); color: oklch(0.5 0.13 68); }
.pol-cat-badge--C { background: oklch(0.96 0.05 25); color: #dc2626; }

/* ── TABLES ── */
.pol-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.pol-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.pol-table thead { background: var(--navy); color: white; }
.pol-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pol-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  line-height: 1.5;
  vertical-align: middle;
}
.pol-table tbody tr:hover { background: var(--cream); }
.pol-table--fees td { vertical-align: top; font-size: 13px; }
.pol-table-note {
  font-size: 12.5px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 8px;
}

/* ── FEE NOTICE ── */
.pol-fee-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: oklch(0.96 0.04 72);
  border: 1px solid oklch(0.86 0.06 72);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.pol-fee-notice svg { flex-shrink: 0; color: oklch(0.5 0.13 68); margin-top: 2px; }
.pol-fee-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.pol-fee-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 18px;
}
.pol-fee-card__icon {
  width: 36px;
  height: 36px;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 10px;
}
.pol-fee-card__title {
  font-family: "Lora", serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.pol-fee-card__body { font-size: 13px; color: var(--text-mid); line-height: 1.55; }
@media (max-width: 768px) { .pol-fee-cards { grid-template-columns: 1fr; } }

/* ── ANTI-RAGGING ── */
.pol-ragging-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: oklch(0.12 0.04 25);
  border: 1px solid oklch(0.3 0.1 25);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: white;
  line-height: 1.6;
}
.pol-ragging-banner__icon {
  width: 44px;
  height: 44px;
  background: #dc2626;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.pol-ragging-banner strong { color: var(--gold-light); }
.pol-definition-box {
  background: var(--cream2);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.pol-definition-box__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.pol-definition-box__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
}

/* ── GOVERNANCE HIERARCHY ── */
.pol-hierarchy {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}
.pol-hier-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}
.pol-hier-row--1 { max-width: 280px; }
.pol-hier-row--2 { max-width: 600px; }
.pol-hier-connector {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin: 0 auto;
}
.pol-hier-node {
  flex: 1;
  padding: 10px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pol-hier-node--top {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.pol-hier-node--gold {
  background: oklch(0.96 0.04 72);
  border-color: oklch(0.86 0.06 72);
  color: oklch(0.38 0.1 68);
}
.pol-hier-node--advisory {
  background: white;
  border-style: dashed;
  color: var(--text-mid);
  font-size: 12px;
}
.pol-hier-node__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--text-light);
  padding: 2px 6px;
  border-radius: 4px;
}
@media (max-width: 640px) {
  .pol-hier-row--2 { flex-direction: column; align-items: center; }
  .pol-hier-node { width: 100%; max-width: 280px; }
}

/* ── DOWNLOADS ── */
.pol-downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pol-download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.pol-download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px oklch(0 0 0 / 0.07);
  border-color: var(--gold-light);
}
.pol-download-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--cream2);
  border: 1px solid var(--border);
  color: var(--navy);
}
.pol-download-card__icon--primary { background: var(--navy); color: white; border-color: var(--navy); }
.pol-download-card__icon--red { background: oklch(0.96 0.05 25); color: #dc2626; border-color: oklch(0.88 0.07 25); }
.pol-download-card__icon--green { background: oklch(0.95 0.04 155); color: #059669; border-color: oklch(0.85 0.06 155); }
.pol-download-card__content { flex: 1; min-width: 0; }
.pol-download-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 3px;
}
.pol-download-card__meta { font-size: 12px; color: var(--text-light); }
.pol-download-card__arrow {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.7;
  transition: transform 0.15s, opacity 0.15s;
}
.pol-download-card:hover .pol-download-card__arrow {
  transform: translateY(2px);
  opacity: 1;
}
@media (max-width: 768px) { .pol-downloads-grid { grid-template-columns: 1fr; } }
