/*
 * Site chrome shared by the SEO shell (index.html), the prerendered pages
 * (/ai-links, /ai-agents, /privacy, /terms) and the SPA's render of them.
 * A stable URL (public/, not hashed) so the JavaScript-free pages can link it.
 * Everything is scoped to .site-* classes so it never restyles the canvas.
 *
 * Values follow the Azure sister's legal pages (AZ src/pages/LegalPage.js:
 * 109-201) and banner (AZ index.css:276-426); tokens match src/index.css.
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}

.site-doc {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1d1d1f;
  background: #FAF9F8;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.site-doc :focus-visible { outline: 2px solid #0078D4; outline-offset: 2px; }
.site-spa { min-height: 100%; display: flex; flex-direction: column; background: #FAF9F8; }

/* Banner: white, 16px 20px, NAV_BORDER hairline, brand in NAV_INK. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  min-height: 70px;
  box-sizing: border-box;
  background: #ffffff;
  color: #005a9e;
  border-bottom: 1px solid #c7dcf0;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: #005a9e;
  text-decoration: none;
  white-space: nowrap;
}
.site-brand span { overflow: hidden; text-overflow: ellipsis; }
.site-brand-mark { flex: none; }
/* The sister's sub-page "Home" key: NAV_INK on WASH, NAV_BORDER hairline. */
.site-cta {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #005a9e;
  background: #EBF4FF;
  border: 1px solid #c7dcf0;
  border-radius: 6px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-cta:hover { background: #dcecfd; border-color: #0078D4; }

/* Page body: the sister's legal card. */
.site-page {
  display: block;
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 32px auto 48px;
  padding: 28px 32px 30px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e5e7;
  border-radius: 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #3a3a3c;
}
.site-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #1d1d1f;
  margin: 4px 0 14px;
}
.site-page h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: #1d1d1f; margin: 36px 0 10px; }
.site-page h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; color: #1d1d1f; margin: 26px 0 6px; }
.site-page h4 { font-size: 15px; font-weight: 600; color: #1d1d1f; margin: 18px 0 6px; }
.site-page a { color: #0067B8; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(0, 103, 184, 0.4); }
.site-page a:hover { color: #005a9e; text-decoration-color: currentColor; }
.site-page strong { color: #1d1d1f; font-weight: 600; }
.site-page code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; background: #f5f5f7; border-radius: 4px; padding: 1px 4px; }
.site-page pre {
  background: #f5f5f7;
  border: 1px solid #e5e5e7;
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.45;
}
.site-page pre code { background: none; padding: 0; }
.site-page table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 8px 0 16px;
  border: 1px solid #e5e5e7;
  border-radius: 10px;
}
.site-page th, .site-page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #f0f0f2; }
.site-page th { background: #fafafa; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: #6e6e73; }
.site-page td code { white-space: nowrap; overflow-wrap: normal; }
.site-page li { margin: 4px 0 8px; }
/* Eyebrow, lede and meta (AZ LandingPage.js:1554-1569, LegalPage.js:163-171). */
.site-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #0067B8; margin: 0 0 8px; }
/* /privacy and /terms: the sister's LegalPage (AZ src/pages/LegalPage.js:142-200).
   A hero, then one white card per section on the page background, 780px wide. */
.site-page:has(> .legal-doc) { max-width: 780px; background: none; border: none; border-radius: 0; padding: 4px 24px 16px; }
.legal-doc { display: flex; flex-direction: column; gap: 16px; }
.legal-hero { padding: 8px 0 4px; }
.site-page .legal-title { margin: 0 0 8px; }
.legal-effective { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #0067B8; margin: 0 0 12px; }
.legal-lede, .legal-card p { font-size: 16px; line-height: 1.6; color: #515154; margin: 0 0 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card { background: #fff; border: 1px solid #e5e5e7; border-radius: 22px; padding: 26px 26px 22px; scroll-margin-top: 20px; }
.site-page .legal-h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.legal-card ul { margin: 0 0 12px; padding-left: 20px; font-size: 16px; line-height: 1.6; color: #515154; }
.legal-card ul:last-child { margin-bottom: 0; }
.legal-card li { margin: 0 0 8px; }
/* Links in the legal text keep the .site-page underline: colour alone is not enough (WCAG 1.4.1). */
.legal-small { font-size: 13px; color: #6e6e73; text-align: center; margin: 4px 0 0; }
@media (max-width: 760px) {
  .site-page:has(> .legal-doc) { padding: 0 4px 8px; border-radius: 0; }
  .legal-card { padding: 20px 18px; border-radius: 18px; }
}

.site-lede { font-size: 17px; line-height: 1.5; letter-spacing: -0.2px; color: #6e6e73; }
.site-meta { font-size: 13px; color: #6e6e73; }

/* Footer: the sister's siteFooter (AZ PricingPage.js:5269-5297, :6074-6170).
   Shared by the prerendered pages, the SEO shell and the SPA (SiteFooter.jsx). */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid #ececec;
  background: #fff;
  padding: 10px 24px;
  font-size: 12px;
  /* 4.8:1 on white, as on the sister (#86868b was 3.62:1). */
  color: #6e6e73;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}
.site-footer-heading { font-weight: 600; color: #6e6e73; margin-right: 4px; }
.site-footer-link { color: #0067B8; text-decoration: none; display: inline-block; padding: 6px 2px; }
.site-footer-link:hover { color: #005a9e; text-decoration: underline; }
.site-footer-dot { color: #d2d2d7; }
.site-footer-legal { text-align: center; margin: 6px 0 0; }
.site-footer-about {
  font: inherit;
  color: #0067B8;
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
}
.site-footer-about:hover { text-decoration: underline; }
.site-footer.compact { padding: 2px 12px; }
@media (max-width: 600px) {
  .site-footer { padding: 8px 12px; }
  .site-footer-nav { gap: 4px 6px; }
}

/* The SEO shell (#seo-shell) before hydrate, and with JavaScript off. */
#seo-shell { max-width: 820px; margin: 0 auto; padding: 0 16px; font-size: 15px; line-height: 1.6; color: #3a3a3c; }
#seo-shell h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.4px; color: #005a9e; }
#seo-shell h2, #seo-shell h3 { color: #1d1d1f; font-weight: 600; letter-spacing: -0.2px; }
#seo-shell a { color: #0067B8; }

@media (max-width: 760px) {
  .site-page { margin: 16px 12px 32px; width: auto; padding: 20px 18px; border-radius: 18px; font-size: 15px; }
  .site-page h2 { font-size: 20px; }
}
@media (max-width: 600px) {
  .site-header { padding: 12px 12px 12px 16px; min-height: 60px; }
  .site-brand { font-size: 15px; letter-spacing: -0.2px; }
  .site-cta { padding: 7px 12px; font-size: 13.5px; }
}
@media (max-width: 380px) {
  .site-brand { font-size: 13.5px; }
}
