:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --surface-subtle: #F3F6FB;
  --ink: #0D1530;
  --ink-2: #3A4459;
  --muted: #5D677D;
  --line: rgba(13, 21, 48, 0.08);
  --brand: #12307A;
  --sky: #2D8CF0;
  --sun: #FFD966;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Canonical sureday. wordmark (baseline sun period) */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  letter-spacing: -0.044em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.wordmark .w-sure {
  color: var(--brand);
}

.wordmark .w-day {
  color: var(--sky);
}

.wordmark::after {
  content: "";
  display: inline-block;
  width: max(0.205em, 4px);
  height: max(0.205em, 4px);
  border-radius: 50%;
  background: var(--sun);
  margin-left: -0.025em;
  transform: translateY(0.012em);
  flex: none;
}

/* Clean, Cool Off-White Stealth Homepage */
.home-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 8vh;
  text-align: center;
}

.home-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-wordmark {
  margin: 0;
  font-size: clamp(3.5rem, 9.5vw, 6.25rem);
  font-weight: 700;
}

.home-sub {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.005em;
}

/* Shared Institutional Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.doc-shell .site-footer {
  background: var(--surface);
}

.site-footer-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--brand);
}

/* Legal & Security Document Pages (/privacy, /terms, /security) */
.doc-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.doc-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.doc-header-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.doc-logo {
  font-size: 24px;
}

.doc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.doc-nav a {
  transition: color 0.15s ease;
}

.doc-nav a:hover,
.doc-nav a[aria-current="page"] {
  color: var(--brand);
}

.doc-main {
  flex: 1;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 24px 84px;
}

.doc-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.doc-meta {
  margin: 10px 0 36px;
  font-size: 14px;
  color: var(--muted);
}

.doc-body h2 {
  margin: 36px 0 12px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doc-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
}

.doc-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-2);
}

.doc-body li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.68;
}

.doc-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(18, 48, 122, 0.3);
}

.doc-body a:hover {
  text-decoration-color: var(--brand);
}

.doc-callout {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid #E3E8F0;
}

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

.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 28px;
}

.sec-card {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid #E3E8F0;
}

.sec-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.sec-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .sec-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-in {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 20px 20px 28px;
    gap: 10px;
  }

  .doc-header-in {
    padding: 16px 20px;
  }

  .doc-nav {
    gap: 18px;
  }

  .doc-main {
    padding: 40px 20px 64px;
  }
}
