/* Public pages that share the plain header (logo + a row of links): Help, Support, Partner, Privacy, Terms, Data deletion.
   Owner, 27 Oct 2026: on a phone the brand wrapped ("Sarathi-" / "AI"), the links took two rows and the footer brand broke into columns.
   Phone and small tablet (up to 720 px): one-line brand, a menu button with 44 px targets, the links in a panel under the header; the footer brand on one line under the logo.
   The behaviour (open, close, back, focus) is in site-chrome.js. Wider screens are unchanged. */
.brandmark { white-space: nowrap; }
.chrome-menu { display: none; }

@media (max-width: 720px) {
  .navbar { padding: 8px 16px !important; flex-wrap: nowrap; position: sticky; }
  .navbar .logo { white-space: nowrap; margin-right: 8px; min-width: 0; }
  .navbar .logo img { height: 44px !important; margin-right: 6px !important; }
  .navbar .logo .brand-name { white-space: nowrap; font-size: 1.05em; }

  .chrome-menu {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
    font-size: 1.5rem; line-height: 1; font-family: inherit;
    background: transparent; color: #1e293b; border: 1px solid #cbd5e1;
  }
  .chrome-menu:focus-visible, .chrome-links a:focus-visible, .chrome-links button:focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; }

  .navbar nav.chrome-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 16px 16px; background: #ffffff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }
  .navbar nav.chrome-links.open { display: flex; }
  .navbar nav.chrome-links a {
    display: flex; align-items: center; min-height: 44px; margin: 0 !important; padding: 0 8px;
    color: #334155; font-size: 1rem; border-radius: 8px;
  }
  .navbar nav.chrome-links a.active { color: #0f766e; font-weight: 700; }
  .navbar nav.chrome-links .theme-toggle, .navbar nav.chrome-links .lang-toggle { align-self: flex-start; margin: 4px 0 0 8px; min-height: 44px; min-width: 44px; }

  .footer .brand { display: block; text-align: center; }
  .footer .brand img { display: block; margin: 0; }
  .footer .brand .logo-plate { display: block; width: fit-content; margin: 0 auto 12px; }
}

[data-theme="dark"] .chrome-menu { color: #e2e8f0; border-color: #475569; }
@media (max-width: 720px) {
  [data-theme="dark"] .navbar nav.chrome-links { background: #0f172a; border-bottom-color: #334155; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); }
  [data-theme="dark"] .navbar nav.chrome-links a { color: #e2e8f0; }
  [data-theme="dark"] .navbar nav.chrome-links a.active { color: #5eead4; }
  [data-theme="dark"] .chrome-menu:focus-visible, [data-theme="dark"] .chrome-links a:focus-visible { outline-color: #5eead4; }
}

.footer .copy { opacity: 1; color: #94a3b8; font-size: .75em; }
@media (max-width: 900px) {
  .navbar .logo img { height: 56px !important; }
}
@media (max-width: 720px) {
  .audio-tooltip { left: auto; right: 0; transform: none; animation: none; white-space: normal; width: max-content; max-width: calc(100vw - 32px); }
}

@media (min-width: 721px) { .navbar nav > button, .navbar nav > .lang-toggle { margin-left: 14px; } }/* "Partner" no longer touches the theme button */
/* Laptop and wider (owner, 31 Oct 2026: "stop leaving wide empty space left and right"): the header lines up with the page (content up to 1640 px, 32 px side padding),
   the page's own container grows to match, the legal pages get a contents list beside the text and a side panel for the summary, and the language and theme buttons keep a gap. */
@media (min-width: 1024px) {
  .navbar { padding-left: max(32px, calc((100vw - 1640px) / 2)); padding-right: max(32px, calc((100vw - 1640px) / 2)); }
  .container, .content { max-width: 1704px; padding-left: 32px; padding-right: 32px; }
  .content .anchor { display: block; height: 0; scroll-margin-top: 96px; }/* the target of a contents link, kept off the heading so the headings stay as written */
  .content.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "toc sum" "toc body"; column-gap: 48px; align-items: start; }
  .legal-toc { grid-area: toc; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-top: 16px; }
  .legal-toc ol { list-style: none; margin: 0; padding: 0; }
  .legal-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: #475569; font-size: .88rem; line-height: 1.4; text-decoration: none; }
  .legal-toc a:hover { color: #0f766e; background: #f0fdfa; }
  .legal-summary { grid-area: sum; max-width: 72ch; }
  .legal-body { grid-area: body; max-width: 72ch; }
  .legal-summary .highlight { margin-top: 16px; }
  .content.dd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; align-items: start; }
  .content.dd > [lang="hi"] { margin-top: 0 !important; }
}
@media (min-width: 1280px) {
  .content.legal { grid-template-columns: 260px minmax(0, 1fr) 320px; grid-template-areas: "toc body sum"; }
  .legal-body { justify-self: center; width: 100%; }
  .legal-summary { position: sticky; top: 96px; }
}
@media (min-width: 1700px) {
  html { font-size: 112.5%; }
  .content.legal { grid-template-columns: 300px minmax(0, 1fr) 380px; }
  .content.legal .legal-body p, .content.legal .legal-body li { font-size: 1rem; }
}
@media (max-width: 1023px) { .legal-toc { display: none; } }
[data-theme="dark"] .legal-toc a { color: #cbd5e1; }
[data-theme="dark"] .legal-toc a:hover { color: #5eead4; background: rgba(13, 148, 136, .15); }

/* Dark legal pages (owner, 31 Oct 2026): the summary box, the bold lead-ins ("Sharma Consultancy") and the sub-headings were dark on dark; all reach 4.5:1 */
[data-theme="dark"] .content strong, [data-theme="dark"] .content h3 { color: #f1f5f9; }
[data-theme="dark"] .content .highlight { background: #1e293b; color: #e2e8f0; border-left-color: #2dd4bf; }
[data-theme="dark"] .content .warning { background: #3f1d1d; color: #fecaca; border-left-color: #f87171; }
[data-theme="dark"] .navbar .logo .ai-tag, [data-theme="dark"] .navbar nav a[style*="color:#0f766e"] { color: #5eead4 !important; }/* the teal that reads on white is too dark on the dark bar */
[data-theme="dark"] .content h2 { color: #2dd4bf; }
