/* SuiteCoreHQ legal documents. Chrome matches the marketing site. */

:root,
[data-theme="light"] {
  --sc-blue: #0284c7;
  --sc-blue-ink: #0369a1;
  --mod-purple: #9333ea;
  --mod-rose: #f43f5e;
  --mod-emerald: #10b981;
  --accent-blue: #0284c7;
  --bg-outer: #F9FAFB;
  --bg-surface: #FFFFFF;
  --bg-canvas: #F4F6F9;
  --bg-elevated: #EEF1F6;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-tertiary: #98A2B3;
  --border-hairline: #E4E7EC;
  --border-strong: #D0D5DD;
  --bg: var(--bg-canvas);
  --surface: var(--bg-surface);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border-hairline);
  --line-strong: var(--border-strong);
  --sc-link: var(--sc-blue-ink);
  --token-bg: #fffaeb;
  --token-ink: #b54708;
  --token-line: #f5d38a;
  --notice-bg: #f8fafc;
  --notice-line: #d0d5dd;
  --table-head: #f8fafc;
  --focus: #0284c7;
  color-scheme: light;
}

[data-theme="dark"] {
  --accent-blue: #38bdf8;
  --bg-outer: #07090E;
  --bg-surface: #0B0E14;
  --bg-canvas: #10151F;
  --bg-elevated: #171E2C;
  --bg-glass: rgba(11, 14, 20, 0.94);
  --text-primary: #F9FAFB;
  --text-secondary: #98A2B3;
  --text-tertiary: #64748B;
  --border-hairline: #1E2636;
  --border-strong: #2E3A52;
  --bg: var(--bg-canvas);
  --surface: var(--bg-surface);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border-hairline);
  --line-strong: var(--border-strong);
  --sc-link: var(--accent-blue);
  --token-bg: #2a2113;
  --token-ink: #fbbf24;
  --token-line: #78580f;
  --notice-bg: #10151f;
  --notice-line: #2e3a52;
  --table-head: #141a26;
  --focus: #38bdf8;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--sc-link);
  text-underline-offset: 0.15em;
}

.top-announcement-bar {
  background: #090B10;
  color: #F9FAFB;
  min-height: 38px;
  padding: 0.4rem 1.25rem;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.top-diwali-wish {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #FDE68A;
  font-weight: 500;
}

.top-wish-detail { color: #CBD5E1; }

.top-home-link {
  color: #93C5FD;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.top-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sc-blue), var(--mod-purple) 46%, var(--mod-rose) 72%, var(--mod-emerald));
  pointer-events: none;
}

.top-nav-inner {
  max-width: 1260px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 clamp(0.85rem, 2.5vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark { width: 30px; height: 30px; flex: none; }

.brand-word .core { color: var(--sc-blue); }
.brand-word .hq {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-left: 0.12rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  padding: 0.4rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 650;
  background: var(--bg-elevated);
}

.nav-actions { display: flex; align-items: center; gap: 0.45rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.42rem 0.65rem;
  border-radius: 7px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn:hover { background: var(--bg-elevated); }

.mobile-menu-toggle { display: none; }

.suitechq-footer {
  margin-top: 0;
  padding: 1.75rem clamp(1.15rem, 4vw, 3.5rem);
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.suitechq-footer-row {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.suitechq-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.suitechq-footer a {
  color: var(--accent-blue);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.suitechq-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .top-wish-detail { display: none; }
  .nav-links { display: none; }
  .mobile-menu-toggle { display: inline-flex; width: 34px; height: 34px; padding: 0; }
  .top-nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.45rem 0.75rem 0.75rem;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-hairline);
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--surface);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.doc-head {
  margin: 1.75rem 0 1.25rem;
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 680;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.notice,
.callout {
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.5rem;
}

.notice p,
.callout p {
  margin: 0.35rem 0;
}

.notice p:first-child,
.callout p:first-child {
  margin-top: 0;
}

.notice p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 0 0 2rem;
  padding: 0.9rem 1rem 0.9rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.toc li {
  margin: 0.2rem 0;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

article h2 {
  margin: 2.25rem 0 0.7rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

article h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.05rem;
}

article p,
article li {
  margin: 0.55rem 0;
}

article ul,
article ol {
  padding-left: 1.25rem;
}

article li + li {
  margin-top: 0.35rem;
}

.token {
  display: inline;
  padding: 0.05em 0.35em;
  border: 1px solid var(--token-line);
  border-radius: 4px;
  background: var(--token-bg);
  color: var(--token-ink);
  font-family: "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
  font-size: 0.86em;
  font-weight: 600;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  margin: 0.8rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}

caption {
  caption-side: bottom;
  padding: 0.55rem 0.75rem 0.7rem;
  color: var(--muted);
  text-align: left;
  font-size: 0.82rem;
}

th,
td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--table-head);
  font-weight: 650;
}

tr:last-child td {
  border-bottom: 0;
}

.def {
  margin: 0.8rem 0;
}

.def dt {
  font-weight: 680;
  margin-top: 0.75rem;
}

.def dd {
  margin: 0.15rem 0 0;
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .skip,
  .top-announcement-bar,
  .top-nav,
  .suitechq-footer,
  .toc {
    display: none;
  }

  .wrap {
    width: auto;
    margin: 0;
    padding: 0;
  }

  a {
    color: #111;
  }

  .token {
    border-color: #111;
    background: transparent;
    color: #111;
  }
}
