/* ============================================================
   ICOR Group — CSS compartilhado pelas páginas legais
   (privacidade.html, termos.html, compliance.html)
   ============================================================ */

:root {
  --pad-x: clamp(20px, 5vw, 80px);
  --maxw: 1400px;
}

body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  background:
    radial-gradient(80% 50% at 100% 100%, oklch(28% 0.18 305 / 0.55) 0%, transparent 60%),
    radial-gradient(70% 60% at 0% 90%, oklch(24% 0.16 285 / 0.40) 0%, transparent 65%),
    linear-gradient(180deg, #050005 0%, #0a0512 40%, #160a2a 80%, #1f0d3a 100%);
  background-attachment: fixed; min-height: 100vh;
}
html { scroll-padding-top: calc(var(--header-h) + 20px); }

body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.045; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

a { color: inherit; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }
.h-display { font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; }

/* hero legal */
.legal-hero { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.legal-hero-glow { position: absolute; inset: -10% -10% auto -10%; height: 70%; background: radial-gradient(55% 80% at 25% 0%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 60%); filter: blur(40px); pointer-events: none; z-index: 0; }
.legal-hero .container { position: relative; z-index: 2; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 26px; }
.crumbs a { text-decoration: none; color: var(--fg-dim); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--accent); }
.legal-hero .sub { margin-top: 26px; max-width: 56ch; color: var(--fg-mute); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }
.legal-hero .meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-hero .meta .item .k { font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.legal-hero .meta .item .v { margin-top: 6px; font-size: 15px; }

/* legal body layout */
.legal-body { padding-bottom: clamp(72px, 9vw, 140px); border-top: 1px solid var(--line); }
.legal-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 72px); padding-top: clamp(40px, 5vw, 64px); }
@media (min-width: 920px) { .legal-grid { grid-template-columns: 240px 1fr; } }

/* TOC */
.toc { align-self: start; }
@media (min-width: 920px) { .toc { position: sticky; top: calc(var(--header-h) + 28px); } }
.toc .toc-label { font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; gap: 10px; text-decoration: none; color: var(--fg-mute); font-size: 13px; line-height: 1.35; padding: 7px 10px; border-radius: 8px; border-left: 2px solid transparent; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.toc a .tn { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--fg-dim); flex-shrink: 0; }
.toc a:hover { color: var(--fg); background: rgba(255,255,255,0.03); }
.toc a[data-active="true"] { color: var(--fg); border-color: var(--accent); background: rgba(255,255,255,0.04); }
.toc a[data-active="true"] .tn { color: var(--accent); }

/* prose */
.prose { max-width: 72ch; }
.prose .lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--fg); margin: 0 0 8px; }
.clause { padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 28px); }
.clause:first-of-type { padding-top: 0; }
.clause h2 { display: flex; gap: 16px; align-items: baseline; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.clause h2 .cn { font-family: "Geist Mono", monospace; font-size: 13px; color: var(--accent); flex-shrink: 0; padding-top: 4px; }
.clause p { color: var(--fg-mute); font-size: 16px; line-height: 1.65; margin: 16px 0 0; }
.clause p:first-of-type { margin-top: 18px; }
.clause .subhead { margin-top: 28px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); display: flex; align-items: center; gap: 10px; }
.clause .subhead::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.clause ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.clause ul li { position: relative; padding-left: 22px; color: var(--fg-mute); font-size: 15.5px; line-height: 1.55; }
.clause ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.clause a.mail { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.clause a.mail:hover { color: var(--accent); }

/* termos — pillars callout */
.pillars { margin-top: 56px; }
.pillars-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 680px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
.pillar { background: rgba(10, 6, 18, 0.5); padding: 26px 24px; }
.pillar .pn { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.pillar .pt { margin-top: 16px; font-size: 19px; letter-spacing: -0.015em; font-weight: 500; }
.pillar .pd { margin-top: 8px; color: var(--fg-mute); font-size: 14px; line-height: 1.55; }

/* termos — manifesto */
.manifesto { margin-top: 56px; padding: clamp(28px, 3.5vw, 44px); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); background: radial-gradient(130% 90% at 0% 0%, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 55%), rgba(10, 6, 18, 0.5); }
.manifesto .ms { font-family: "Instrument Serif", serif; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.manifesto .sig { margin-top: 22px; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.manifesto .sig b { color: var(--fg); font-weight: 500; }
.manifesto-accent { font-style: normal; color: var(--accent); }

/* compliance — risk grid */
.risk-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 620px) { .risk-grid { grid-template-columns: 1fr 1fr; } }
.risk { background: rgba(10, 6, 18, 0.5); padding: 22px 20px; }
.risk .rt { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.risk .rl { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 7px; }
.risk .rl li { color: var(--fg-mute); font-size: 14px; }

/* compliance — esg */
.esg-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 760px) { .esg-grid { grid-template-columns: 1fr 1fr 1fr; } }
.esg { background: rgba(10, 6, 18, 0.5); padding: 26px 22px; }
.esg .el { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.esg .et { margin-top: 16px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.esg .ed { margin-top: 8px; color: var(--fg-mute); font-size: 14px; line-height: 1.55; }

/* compliance — pullquote */
.pullquote { margin-top: 56px; padding: clamp(28px, 3.5vw, 48px); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); background: radial-gradient(130% 90% at 0% 0%, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 55%), rgba(10, 6, 18, 0.5); }
.pullquote .pq { font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.pullquote .sig { margin-top: 24px; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.pullquote .sig b { color: var(--fg); font-weight: 500; }
