/* Codara — shared site styles: chrome (nav/footer) + Policies & Compliance pages.
   Mirrors the design tokens used inline in index.html. */

:root {
  --blue: #2B5BC5;
  --blue-dark: #1E48A8;
  --blue-light: #EAF0FB;
  --ink: #0F172A;
  --ink-soft: #475569;
  --grey: #F1F5F9;
  --border: #E2E8F0;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; overflow-x: hidden; }

/* ---- NAV (shared with homepage) ---- */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 70px; background: #fff; border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 5%; height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
nav.scrolled { box-shadow: 0 4px 24px rgba(43,91,197,0.08); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-svg { height: 39px; width: auto; display: block; }
.nav-contact { display: flex; align-items: center; text-decoration: none; transition: transform 0.15s, filter 0.2s; }
.nav-contact:hover { transform: translateY(-1px); filter: brightness(0.94); }
.nav-contact svg { height: 39px; width: auto; display: block; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; margin: -6px; color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle svg { width: 30px; height: 30px; display: block; }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 14px 28px rgba(15,23,42,0.10); flex-direction: column; padding: 6px 5% 14px; z-index: 99; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 1.05rem; padding: 15px 4px; border-bottom: 1px solid var(--border); transition: color 0.2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }
@media (min-width: 621px) { .mobile-menu { display: none !important; } }
.nav-links { display: flex; align-items: center; gap: 52px; list-style: none; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { text-decoration: none; font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }

/* ---- FOOTER (shared) ---- */
footer { background: var(--ink); color: rgba(255,255,255,0.45); padding: 20px 5%; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; flex-wrap: wrap; gap: 0; }
.footer-sep { margin: 0 12px; opacity: 0.3; }
.footer-link { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; background: none; border: none; cursor: pointer; font: inherit; }
.footer-link:hover { color: #fff; }

/* ---- PAGE WRAP ---- */
.policy-main { padding-top: 70px; min-height: 100vh; }
/* Tinted page so white cards read against the background (mirrors the homepage features section). */
.hub-page { background: var(--grey); }

/* ---- HUB PAGE ---- */
.hub-hero { background: linear-gradient(160deg, #EDF1FB 0%, #fff 62%, #E7EDFA 100%); padding: 66px 0 52px; }
/* 1120px content column with 5% inset — matches .nav-inner so content aligns with the nav logo and Contact button. */
.hub-hero-inner, .hub-section, .cust-agreements { max-width: 1120px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }
.hub-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.hub-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 14px; }
.hub-hero p { font-size: 1.05rem; color: var(--ink-soft); max-width: 580px; line-height: 1.6; }
.hub-section { padding-top: 50px; scroll-margin-top: 80px; }
.hub-section:last-of-type { padding-bottom: 56px; }
.hub-section h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.hub-section-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 26px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.policy-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 24px 20px; text-decoration: none; color: inherit; position: relative; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.policy-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(43,91,197,0.12); border-color: rgba(43,91,197,0.30); }
.policy-card h3 { font-size: 1.06rem; letter-spacing: -0.01em; margin-bottom: 8px; padding-right: 26px; }
.policy-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 0.8rem; font-weight: 700; color: var(--blue); }
.policy-card .chev { position: absolute; top: 23px; right: 21px; color: var(--blue); transition: transform 0.2s; }
.policy-card:hover .chev { transform: translateX(3px); }

/* ---- Customer agreements notice ---- */
.cust-agreements { padding-top: 44px; padding-bottom: 64px; }
.cust-agreements-inner { background: var(--blue-light); border: 1px solid rgba(43,91,197,0.18); border-radius: 16px; padding: 28px 30px; }
.cust-agreements-inner h2 { font-size: 1.1rem; margin-bottom: 10px; }
.cust-agreements-inner p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.cust-agreements-inner a { color: var(--blue); font-weight: 600; text-decoration: none; }
.cust-agreements-inner a:hover { text-decoration: underline; }

/* ---- DOCUMENT PAGES ---- */
.doc-hero { background: linear-gradient(160deg, #EDF1FB 0%, #fff 72%, #E7EDFA 100%); padding: 32px 0 44px; }
.doc-hero-inner, .doc-body { max-width: 1120px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--blue); text-decoration: none; margin-bottom: 22px; }
.doc-back:hover { text-decoration: underline; }
.doc-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.15; }
.doc-meta { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.doc-meta p { margin: 2px 0; }
.doc-body { padding-top: 44px; padding-bottom: 66px; }
.doc-body h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 36px 0 12px; scroll-margin-top: 90px; }
.doc-body h3 { font-size: 1.05rem; margin: 26px 0 8px; scroll-margin-top: 90px; }
.doc-body > h2:first-child, .doc-body > h3:first-child { margin-top: 0; }
.doc-body p { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); margin: 12px 0; }
.doc-body strong { color: var(--ink); font-weight: 700; }
.doc-body ul { margin: 12px 0 12px 22px; }
.doc-body li { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); margin: 6px 0; }
.doc-body a { color: var(--blue); }
.doc-body a.email-link, .doc-body a[href^="mailto:"] { text-decoration: none; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
.doc-body th, .doc-body td { border: 1px solid var(--border); padding: 10px 13px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--grey); font-weight: 700; color: var(--ink); }
.doc-body td { color: var(--ink-soft); line-height: 1.6; }
.doc-body hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }
.doc-body em { font-style: italic; }

/* Platform Privacy Notice — table of contents, callouts, vendor tables */
.doc-body section { scroll-margin-top: 86px; }
/* position/height reset: .pp-toc is a <nav>, which the site styles as a fixed bar */
.pp-toc { position: static; height: auto; background: var(--grey); border: 1px solid var(--border); border-radius: 12px; padding: 18px 24px; margin: 10px 0 30px; }
.pp-toc h2 { font-size: 0.82rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.pp-toc ol { margin: 0; padding-left: 22px; }
.pp-toc li { font-size: 0.95rem; line-height: 1.55; margin: 5px 0; color: var(--ink-soft); }
.pp-toc a { color: var(--blue); text-decoration: none; }
.pp-toc a:hover { text-decoration: underline; }
.pp-callout { background: var(--blue-light); border: 1px solid rgba(43,91,197,0.18); border-radius: 12px; padding: 16px 20px; margin: 14px 0; font-size: 0.97rem; line-height: 1.65; color: var(--ink-soft); }
.pp-callout strong { display: block; color: var(--blue-dark); margin-bottom: 4px; font-weight: 700; }
.pp-table-wrap { overflow-x: auto; margin: 16px 0 22px; }
.pp-table-wrap table { margin: 0; }
.doc-body table:not(.pp-vendor) tbody tr:nth-child(even) td { background: var(--grey); }
.pp-vendor th { width: 32%; background: var(--blue-light); }

/* Placeholder highlight — REVIEW-STATE VISUAL INDICATOR ONLY.
   Flags [BRACKETED] copy that must be replaced before publishing.
   Remove this rule (and the .placeholder spans) before production. */
.placeholder { color: #A32D2D; background: #FCEBEB; font-weight: 700; padding: 0 0.25em; border-radius: 3px; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-contact { display: none; }
  .nav-toggle { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ---- PRINT: clean document, no site chrome ---- */
@media print {
  nav, footer, .nav-toggle, .mobile-menu, .doc-back { display: none !important; }
  .policy-main { padding-top: 0; }
  .doc-hero { background: none; padding: 0 0 14px; }
  .doc-body { padding: 0; max-width: 100%; }
  body, .doc-body p, .doc-body li, .doc-body td { color: #000; }
  .placeholder { background: none; color: #000; border: 1px solid #000; }
  a { color: #000; }
}
