/* Shared stylesheet for the crmcloudmastery.com policy pages. An external file rather than a
   <style> block so the pages render under any Content-Security-Policy that allows 'self'. */
:root {
	--ink: #032d60;
	--accent: #0176d3;
	--text: #1d2939;
	--muted: #475467;
	--bg: #f3f7fb;
	--card: #ffffff;
	--line: #dbe4ee;
}
* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
header, main, footer { max-width: 780px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
header .lead { display: flex; align-items: center; gap: 14px; min-width: 0; }
header .back { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
header .back:hover { color: var(--accent); }
header .brand {
	display: inline-flex; align-items: center; gap: 10px; min-width: 0;
	font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none;
}
header .brand:hover { color: var(--ink); }
header .brand-mark {
	display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
	border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); overflow: hidden;
}
header .brand-mark .brand-logo { width: 100%; height: 100%; object-fit: contain; }
/* `display:block` must not apply while [hidden] — that overrides the UA rule and shows a
   broken-image glyph stacked on the SVG fallback when local media 404s. */
header .brand-mark .brand-logo[hidden] { display: none !important; }
header .brand-mark .brand-logo:not([hidden]) { display: block; }
header .brand-mark:has(.brand-logo:not([hidden])) { background: transparent; }
header .brand-mark:has(.brand-logo:not([hidden])) .brand-mark-fallback { display: none; }
header .brand-mark-fallback { width: 20px; height: 20px; }
header .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Back sits before the brand, the way it does in a native title bar. It is a link, not a
   button, so it still works with JavaScript off — site.js upgrades it to history.back() only
   when there is same-origin history behind it. */
header nav.top { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
header nav.top a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
header nav.top a:hover, header nav.top a[aria-current="page"] { color: var(--accent); }
header .cta { font-weight: 600; color: var(--accent); text-decoration: none; }
header .nav-mobile { display: none; }
header .nav-toggle { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--ink); }
header .nav-toggle::-webkit-details-marker { display: none; }
header .nav-toggle-bars,
header .nav-toggle-bars::before,
header .nav-toggle-bars::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; content: ""; }
header .nav-toggle-bars { position: relative; }
header .nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
header .nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
header .nav-panel {
	position: absolute; right: 20px; top: 64px; z-index: 40;
	min-width: 12.5rem; padding: 8px;
	border: 1px solid var(--line); border-radius: 12px; background: var(--card);
	box-shadow: 0 1px 2px rgb(15 23 42/.05), 0 12px 32px -20px rgb(15 23 42/.25);
	display: grid; gap: 2px;
}
header .nav-panel a {
	display: block; padding: 10px 12px; border-radius: 8px;
	font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
header .nav-panel a:hover,
header .nav-panel a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
@media (max-width: 560px) {
	/* Desktop link row overflows ~412px; browse destinations move into a details menu. */
	header { flex-wrap: nowrap; gap: 10px; position: relative; }
	header nav.top { display: none; }
	header .nav-mobile { display: block; margin-left: auto; }
	header .brand { font-size: 16px; }
	header .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
	header .brand-mark-fallback { width: 18px; height: 18px; }
	/* Logo-only mark on phones when branding loaded — matches SSR hide-mobile. */
	header .brand.has-logo .brand-name { display: none; }
	header .back .back-label { display: none; }
}
article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.25; color: var(--ink); }
h2 { margin: 30px 0 8px; font-size: 19px; line-height: 1.35; color: var(--ink); }
.updated { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
a { color: var(--accent); }
ul { padding-left: 22px; }
li + li { margin-top: 4px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0 0; }
dl.facts dt { font-weight: 600; color: var(--ink); }
dl.facts dd { margin: 0; }
@media (max-width: 560px) {
	article { padding: 24px 18px; }
	dl.facts { grid-template-columns: 1fr; gap: 2px; }
	dl.facts dd { margin-bottom: 10px; }
}
footer { padding-top: 24px; padding-bottom: 44px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover, footer nav a[aria-current="page"] { color: var(--accent); }

/* Floating WhatsApp button. Fixed so it survives the long scroll of a policy page, and
   hidden in print — a printed terms page with a chat bubble on it reads as a mistake. */
.wa-fab {
	position: fixed;
	right: 18px;
	bottom: max(18px, env(safe-area-inset-bottom, 0px));
	z-index: 30;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 20px rgb(3 45 96 / .28);
}
.wa-fab:hover { filter: brightness(1.06); }
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }
@media print { .wa-fab { display: none; } }

/* ---------------------------------------------------------------------------
   Contact form. Lives here rather than in a <style> block for the same reason
   the rest of this file does: the host's CSP allows stylesheets from 'self'
   only, and these pages are static files with no build step to inline one. */
form.contact { margin-top: 8px; }
form.contact .row { margin-top: 16px; }
form.contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact label { display: block; font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
form.contact .req { color: #b42318; }
form.contact input, form.contact select, form.contact textarea {
	width: 100%;
	padding: 11px 12px;
	font: inherit;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 9px;
}
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact input:focus-visible, form.contact select:focus-visible, form.contact textarea:focus-visible,
form.contact button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
form.contact .hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
form.contact button {
	margin-top: 18px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--accent);
	border: 0;
	border-radius: 9px;
	cursor: pointer;
}
form.contact button:hover { filter: brightness(1.06); }
form.contact button[disabled] { opacity: .6; cursor: default; filter: none; }
/* The honeypot. Off-screen rather than display:none — some bots skip hidden
   inputs, and this one is meant to be filled. aria-hidden + tabindex=-1 in the
   markup keep it away from screen readers and the tab order. */
form.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 9px; font-size: 15px; }
.form-status.ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.form-status.bad { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.form-status:empty { display: none; }
@media (max-width: 560px) {
	form.contact .two { grid-template-columns: 1fr; }
}
