/* ============================================================================
 * policies.intellicoach.com — IntelliCoach Pte Ltd legal hub
 * Brand palette: navy #113d67, gold #d7a117, teal #1d82be, dark #052131
 * Typography: system stack only. No web fonts.
 * Mobile-first, max content width 760px for comfortable line lengths.
 * ============================================================================ */

:root {
  --navy: #113d67;
  --navy-dark: #0a2a47;
  --gold: #d7a117;
  --teal: #1d82be;
  --teal-hover: #156391;
  --text: #052131;
  --text-muted: #5a6d7c;
  --rule: #e3e7eb;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --code-bg: #f1f3f5;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --content-max: 760px;
  --chrome-max: 1080px;
  --radius: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: #ffffff;
  border-bottom: 4px solid var(--gold);
}

.site-header-inner {
  max-width: var(--chrome-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
}
.brand:hover { color: #ffffff; opacity: 0.85; }

.brand-tag {
  display: block;
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: #ffffff; }
.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

/* ---------- Page heading area ---------- */

.page-heading {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.page-heading-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.page-heading h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  font-weight: 700;
}

.page-heading .meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Body content ---------- */

.content {
  background: var(--surface);
}

.content-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.content-inner h2 {
  margin: 2.4em 0 0.8em;
  padding-left: 14px;
  border-left: 4px solid var(--navy);
  font-size: 22px;
  line-height: 1.3;
  color: var(--navy);
  font-weight: 600;
}

.content-inner h3 {
  margin: 1.8em 0 0.5em;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
  font-weight: 600;
}

.content-inner h4 {
  margin: 1.4em 0 0.35em;
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
}

.content-inner p { margin: 0 0 1.1em; }

.content-inner a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.content-inner a:hover { color: var(--teal-hover); }

.content-inner ul,
.content-inner ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.content-inner li { margin: 0.35em 0; }
.content-inner li > p { margin-bottom: 0.5em; }

.content-inner strong { color: var(--text); font-weight: 600; }
.content-inner em { color: var(--text); }

.content-inner code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--navy);
}

.content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.content-inner th,
.content-inner td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.content-inner th {
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
}

.content-inner blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--rule);
  color: var(--text-muted);
  font-style: italic;
}

.content-inner hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2em 0;
}

/* ---------- Index cards ---------- */

.index-cards {
  display: grid;
  gap: 18px;
  margin: 28px 0 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .index-cards { grid-template-columns: repeat(3, 1fr); }
}

.index-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.index-card:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 61, 103, 0.08);
}

.index-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}

.index-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.index-card-arrow {
  margin-top: 14px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  margin-top: 0;
  color: var(--text-muted);
}

.site-footer-inner {
  max-width: var(--chrome-max);
  margin: 0 auto;
  padding: 36px 24px 40px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

.footer-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  font-weight: 600;
}

.footer-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-block li { margin: 4px 0; }

.footer-block a {
  color: var(--teal);
  text-decoration: none;
}
.footer-block a:hover { color: var(--teal-hover); text-decoration: underline; }

.footer-address {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  font-style: normal;
}

.footer-copyright {
  max-width: var(--chrome-max);
  margin: 0 auto;
  padding: 14px 24px 32px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #ffffff;
  padding: 8px 14px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .footer-copyright { display: none; }
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  .content-inner { max-width: 100%; padding: 0; }
}
