/* Brand v3 styling for long-form legal documents.
 * Shared across pointeight.ai/legal/*.html and pointeight.ai/vbox/**/*.html.
 * Visual identity tracks designs/brand-v3/ — palette, type, and rhythm. */

:root {
  --leaf:        #4A8A3E;
  --leaf-deep:   #2E5F25;
  --leaf-soft:   #DAE9D4;
  --amber:       #D4A373;
  --amber-deep:  #A67A3F;
  --amber-soft:  #F2E1C9;
  --pearl:       #FAFAF7;
  --pearl-deep:  #F1EEE5;
  --silver-50:   #F7F5EF;
  --silver-100:  #ECE9DF;
  --silver-200:  #D6D2C4;
  --silver-400:  #A5A196;
  --silver-600:  #6A675E;
  --ink:         #0E1410;
  --ink-2:       #2C3229;
  --ink-3:       #5D6356;
  --ink-4:       #9AA194;
  --border:      #E5E1D4;
  --rule:        #CDCAB9;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--pearl), 0 0 0 4px var(--leaf);
  border-radius: 2px;
}

em.display {
  font-family: var(--serif);
  font-style: italic;
  color: var(--leaf-deep);
  font-weight: 400;
}

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--pearl) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .nav { padding: 18px 48px; }
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand .egg {
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 30px;
}
.nav-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-name em { font-style: italic; }
.nav-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.15s;
}
.nav-back:hover { color: var(--leaf-deep); }

/* ---------- Document container ---------- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
@media (min-width: 768px) {
  .container { padding: 96px 48px 128px; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 24px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  h1 { font-size: 52px; }
}
h1 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--leaf-deep);
  font-weight: 300;
}

.effective-date,
.last-updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 48px;
}

/* Summary callout — the box right under the date that frames the doc. */
.highlight-box,
.summary {
  display: block;
  margin: 28px 0 36px;
  padding: 24px 28px;
  background: color-mix(in srgb, var(--leaf-soft) 36%, #fff);
  border: 1px solid var(--border);
  border-left: 3px solid var(--leaf);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.highlight-box strong,
.summary strong {
  color: var(--ink);
  font-weight: 500;
}
.highlight-box a,
.summary a {
  color: var(--leaf-deep);
  border-bottom: 1px solid var(--leaf);
}

/* Section heads. In long-form legal docs h2 is the numbered top-level
 * section ("1. Who We Are") and h3 is its subsection ("1.1 …"). The
 * monospace-eyebrow treatment used on legal/index.html does NOT belong
 * here — top-level sections need to read as the dominant breaks. */
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  h2 { font-size: 28px; }
}
h2:first-of-type { margin-top: 36px; }
h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--leaf-deep);
  font-weight: 400;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 10px;
}
h3 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--leaf-deep);
  font-weight: 400;
}

h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

/* Body copy */
p, ul, ol {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 16px;
}

ul, ol {
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
li::marker {
  color: var(--ink-4);
}

a {
  color: var(--leaf-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--leaf) 40%, transparent);
  transition: color 0.15s, border-color 0.15s;
}
a:hover {
  color: var(--leaf);
  border-color: var(--leaf);
}
a.no-underline,
.nav-brand,
.nav-back {
  border-bottom: none;
}

strong, b {
  color: var(--ink);
  font-weight: 500;
}

em:not(.display):not(h1 em):not(h3 em) {
  font-style: italic;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--silver-100);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
  border: 1px solid var(--border);
}

blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--rule);
  color: var(--ink-3);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
td { color: var(--ink-2); }

/* ---------- Footer ---------- */
footer {
  background: var(--pearl);
  border-top: 1px solid var(--border);
}
footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  footer .inner {
    padding: 40px 48px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
}

/* Localized typography tweaks: Han/Kana lines need a little more breathing room. */
html[lang="zh-Hans"] body,
html[lang="ja"] body { line-height: 1.85; }
html[lang="zh-Hans"] h1,
html[lang="ja"] h1 { letter-spacing: -0.01em; }
