/* /css/policy.css */
/* Palette from your base */
:root {
  --primary: #2E8B57;
  --primary-dark: #1E6140;
  --secondary: #F4EBD0;
  --highlight: #FFD700;
  --text-dark: #2F2F2F;
  --text-light: #7A7A7A;
  --bg: #F9F9F2;
  --white: #ffffff;
  --border: #E0E0D1;
  --shadow: rgba(0, 0, 0, 0.06);
  --radius: 14px;

  --maxw: 980px;
  --pad: 20px;
  --pad-lg: 28px;
  --lead: 1.65;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font: 16px/var(--lead) system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

/* Page wrap */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Hero */
.hero {
  margin-top: 16px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(46,139,87,0.07), rgba(46,139,87,0.02));
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(16px, 3vw, 24px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  box-shadow: 0 10px 24px var(--shadow);
}

.hero h1 {
  margin: 0 0 6px 0;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: 0.2px;
}

.hero p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.98rem;
}

.hero .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* Buttons */
.button, .button-secondary {
  --btn-pad-y: 10px; --btn-pad-x: 14px;
  appearance: none;
  border-radius: 999px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.button {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary-dark);
  box-shadow: 0 6px 16px rgba(46,139,87,.18);
}
.button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button-secondary {
  background: #f8fafc;
  color: var(--text-dark);
  border: 2px solid #e2e8f0;
}
.button-secondary:hover {
  background: #ffffff;
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

/* Document section */
.doc {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3.2vw, 28px);
  box-shadow: 0 12px 24px var(--shadow);
  margin: 18px 0 48px;
}

/* Typography inside doc */
.doc h2 {
  margin: 26px 0 10px;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  line-height: 1.3;
}
.doc h2:first-child { margin-top: 4px; }

.doc p { margin: 10px 0; }
.doc ul, .doc ol { margin: 10px 0 10px 22px; }
.doc li { margin: 6px 0; }

/* Callouts (if you ever need them) */
.callout {
  background: #fffceb;
  border: 1px solid #ffe39c;
  color: #5a4a00;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px var(--shadow);
}

/* Links */
a { color: var(--primary-dark); }
a:hover { color: var(--primary); }

/* Inline code / preformatted */
code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #faf7e7;
  border: 1px solid #efe7bf;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 0.92em;
}
pre {
  background: #faf7e7;
  border: 1px solid #efe7bf;
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
}

/* Table (if you list vendors as a table later) */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td { padding: 10px 12px; text-align: left; }
.table thead th {
  background: #f6f3e6;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.table tbody tr + tr td { border-top: 1px solid var(--border); }

/* Small badges, e.g., “Updated” */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fffef5;
  color: #7b6a00;
}

/* Anchored headings (optional). If you add <a class="h-anchor">#</a> */
.h-anchor {
  opacity: 0; margin-left: 6px; text-decoration: none; color: var(--text-light);
}
.doc h2:hover .h-anchor { opacity: 1; }

/* Cookie Settings modal (from cookieConsent.js) */
.cookie-modal {
  padding: 0; border: 0;
  width: min(640px, calc(100% - 28px));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.cookie-modal::backdrop { background: rgba(0,0,0,.45); }

.cm-body {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 16px;
}
.cm-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.cm-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fffefa;
}
.cm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* Accessibility focus */
a:focus-visible,
.button:focus-visible,
.button-secondary:focus-visible,
.cookie-link:focus-visible,
#cc-close:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Footer quick styles (if used on this page) */
.site-footer{
  margin-top: 40px;
  background:#1b1b1f; color:#b9bbc6;
  border-top:1px solid rgba(255,255,255,.06);
}
.site-footer .footer-inner{
  max-width:1100px; margin:0 auto; padding:18px 16px 24px;
  display:grid; gap:10px;
}
.footer-links{
  display:flex; flex-wrap:wrap; gap:14px; justify-content:center;
}
.footer-links a{
  color:#cfd1da; text-decoration:none; font-size:.95rem;
  padding:6px 8px; border-radius:8px;
}
.footer-links a:hover{ color:#fff; text-decoration:underline; }
.footer-links a:focus-visible{ outline:2px solid #8aa3ff; outline-offset:2px; }
.footer-meta{ display:flex; gap:10px; justify-content:center; font-size:.9rem; opacity:.8; }
.footer-meta .dot{ opacity:.6; }

/* Light theme fallback */
@media (prefers-color-scheme: light){
  .site-footer{ background:#f7f7f9; color:#444; border-top:1px solid #e9e9ef; }
  .footer-links a{ color:#3a3a42; }
}

/* Responsive */
@media (max-width: 780px){
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero .actions { justify-content: flex-start; }
}

/* Print-friendly */
@media print {
  :root { --bg: #fff; }
  body { background: #fff; color: #000; }
  .hero, .site-footer { box-shadow: none; border: 0; background: #fff; }
  .button, .button-secondary { display: none !important; }
  a { color: #000; text-decoration: underline; }
  .cookie-modal { display: none !important; }
}
