/* IntelPak V3.1: gov.css: governance page styles */
/* Complements style.css. Reuses IntelPak tokens: --ink, --paper, --gold, --blue, --muted, --line */

.gov-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Ecosystem note: shown at first PrivacyStudios mention */
.gov-ecosystem-note {
  background: transparent;
  border-left: 0;
  padding: 0;
  font-size: 16px;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.6;
}

/* Policy hero: inside main, below site header */
.ps-pol-hero {
  background: var(--paper);
  padding: 64px 0 28px;
  margin-bottom: 0;
}
.ps-pol-hero .ps-wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.ps-pol-eyebrow {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: .17em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 18px;
}
.ps-pol-subeye {
  display: block;
  font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 600;
}
.ps-pol-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -.04em; line-height: 1.05;
  color: var(--ink); margin: 0 0 20px;
}
.ps-pol-meta { font-size: 13px; color: var(--muted); margin: 0; }
.ps-confidential {
  display: inline-block;
  background: #fdf2e8; border: 1px solid #ead5a9;
  color: #9a6811; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; margin-top: 16px;
}

/* Table of contents */
.ps-toc {
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 28px 32px; margin: 48px 0;
}
.ps-toc-title {
  display: block; font-size: 10px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.ps-toc-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ps-toc-list li { display: flex; gap: 14px; align-items: baseline; }
.ps-toc-num {
  font-family: Georgia, serif; font-size: 13px;
  color: var(--muted); flex-shrink: 0; width: 22px;
}
.ps-toc-list a {
  font-size: 14px; color: var(--ink);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.ps-toc-list a:hover { border-color: var(--ink); }

/* Policy sections */
.ps-pol-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.ps-pol-section:last-of-type { border-bottom: none; }
.ps-pol-section-num {
  display: block; font-size: 11px; color: var(--muted);
  letter-spacing: .08em; margin-bottom: 8px; font-weight: 700;
  text-transform: uppercase;
}
.ps-pol-section h2 {
  font-family: Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.03em; line-height: 1.15;
  color: var(--ink); margin: 0 0 24px;
}
.ps-pol-section h3 {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink);
  margin: 28px 0 10px;
}
.ps-pol-section p {
  font-size: 15px; color: #2c2a28; line-height: 1.85; margin: 0 0 16px;
}
.ps-pol-section p:last-child { margin-bottom: 0; }

/* Lists */
.ps-pol-list {
  list-style: none; padding: 0; margin: 16px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ps-pol-list li {
  display: flex; gap: 14px; font-size: 14px;
  color: #2c2a28; line-height: 1.7;
}
.ps-pol-list li::before {
  content: "·"; color: var(--muted); flex-shrink: 0;
  font-size: 18px; margin-top: -2px;
}

/* Definition blocks */
.ps-def-block { margin-top: 20px; display: flex; flex-direction: column; }
.ps-def-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 12px 24px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; align-items: start;
}
.ps-def-row:last-child { border-bottom: none; }
.ps-def-term { font-weight: 700; color: var(--ink); }
.ps-def-desc { color: #2c2a28; line-height: 1.7; }

/* Tables */
.ps-table-wrap { overflow-x: auto; margin: 20px 0; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ps-table th {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink);
  padding: 12px 14px; border-bottom: 2px solid var(--ink);
  text-align: left; background: #f3f0ea;
}
.ps-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: #2c2a28; vertical-align: top; line-height: 1.6;
}
.ps-table tr:last-child td { border-bottom: none; }

/* Callouts */
.ps-pol-callout {
  background: #fff8e8; border-left: 3px solid var(--gold);
  padding: 20px 24px; margin: 24px 0;
}
.ps-pol-callout p {
  font-size: 14px; color: var(--ink); line-height: 1.65; margin: 0;
  font-weight: 500;
}
.ps-callout {
  background: #fff8e8; border-left: 3px solid var(--gold);
  padding: 20px 24px; margin: 24px 0;
}
.ps-callout p { font-size: 14px; line-height: 1.65; margin: 0; }

/* Contact block */
.ps-contact-block {
  background: #f3f0ea; border-left: 3px solid var(--blue);
  padding: 28px 32px; margin-top: 32px;
}
.ps-contact-block p { font-size: 14px; color: #2c2a28; margin-bottom: 6px; }
.ps-contact-block a { color: var(--blue); font-weight: 600; }

/* Form styles (dsar / do-not-sell) */
.ps-form-body { padding: 0 0 48px; }
.ps-form-body .ps-wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.ps-notice {
  background: transparent; border-left: 0;
  padding: 0; margin-bottom: 28px;
}
.ps-notice p { font-size: 16px; color: var(--ink); line-height: 1.7; margin: 0; }
.ps-notice-inline {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.legal-form-shell {
  background: var(--paper);
  box-shadow: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  min-height: 0;
}
.legal-form-shell .hs-form-frame,
.legal-form-shell form,
.legal-form-shell .hs-form {
  background: var(--paper) !important;
}
.legal-form-shell input,
.legal-form-shell textarea,
.legal-form-shell select {
  border-color: #c9c0b3 !important;
  border-radius: 0 !important;
  background: #f8f5ef !important;
}
.legal-form-shell input[type="submit"],
.legal-form-shell .hs-button {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
}
.ps-form-group { margin-bottom: 40px; }
.ps-group-label {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.ps-field-stack { display: flex; flex-direction: column; gap: 20px; }
.ps-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ps-field-row.full { grid-template-columns: 1fr; }
.ps-field { display: flex; flex-direction: column; gap: 6px; }
.ps-label { font-size: 12px; font-weight: 700; color: var(--ink); }
.req { color: #c0392b; }
.ps-input, .ps-select, .ps-textarea {
  border: 1px solid var(--line); background: #fff;
  padding: 12px 14px; font-size: 14px; color: var(--ink);
  font-family: inherit; outline: none; transition: border .2s;
  width: 100%;
}
.ps-input:focus, .ps-select:focus, .ps-textarea:focus { border-color: var(--blue); }
.ps-textarea { resize: vertical; min-height: 100px; }
.ps-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.ps-checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: #2c2a28; line-height: 1.6;
}
.ps-checkbox-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.ps-confirm-block {
  background: #f3f0ea; border: 1px solid var(--line);
  padding: 24px 28px; margin: 32px 0;
}
.ps-confirm-title {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.ps-submit {
  background: var(--ink); color: #fff; border: none;
  padding: 15px 28px; font-size: 13px; font-weight: 800;
  letter-spacing: .04em; cursor: pointer;
  font-family: inherit; margin-top: 24px; transition: background .2s;
}
.ps-submit:hover { background: #333; }
.ps-form-legal {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
}

/* Request type checkboxes grid */
.ps-req-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 8px;
}
.ps-req-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #2c2a28; line-height: 1.5;
  background: #fff; border: 1px solid var(--line); padding: 14px;
}
.ps-req-item input { margin-top: 2px; flex-shrink: 0; }

/* ps-wrap inside gov-doc (inherits max-width from gov-doc) */
.gov-doc .ps-wrap { max-width: none; margin: 0; padding: 0; }

/* Responsive */
@media (max-width: 680px) {
  .gov-doc { padding: 0 16px 60px; }
  .ps-pol-hero { padding: 60px 0 40px; }
  .ps-def-row { grid-template-columns: 1fr; gap: 4px; }
  .ps-field-row { grid-template-columns: 1fr; }
  .ps-req-grid { grid-template-columns: 1fr; }
}

/* ── Formspree Ajax banners ──────────────────────────────── */
.fs-banner {
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.65;
  border-left: 3px solid;
}
.fs-banner--success {
  background: #edf7ed;
  border-color: #2e7d32;
  color: #1b4d1e;
}
.fs-banner--error {
  background: #fdf2f2;
  border-color: #c62828;
  color: #7f1c1c;
}
.fs-banner a { color: inherit; font-weight: 600; text-decoration: underline; }
/* Formspree sets [hidden] on these; make sure it takes */
[hidden] { display: none !important; }

/* Field-level error messages */
.fs-field-error {
  display: block;
  font-size: 12px;
  color: #c62828;
  margin-top: 4px;
  min-height: 16px;
}

/* Submit button disabled state during submission */
.ps-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* "Other" conditional reveal inputs */
.ps-other-input {
  margin-top: 10px;
  padding-left: 26px;
}
