/* ════════════════════════════════════════════════════════════
   ARKKHE — Legal pages shared stylesheet
   ════════════════════════════════════════════════════════════ */

:root {
  --ark-orange: #ff6711;
  --ark-orange-bright: #ff8200;
  --ark-ink: #101820;
  --ark-paper: #fffdfa;
  --ark-paper-2: #fffbf6;
  --ark-paper-3: #fdf9f4;
  --ark-grey: #8a8f8d;
  --font-display: "Orlean", "Orlean Fallback", Georgia, serif;
  --font-body: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-lenis: cubic-bezier(0.625, 0.05, 0, 1);
}

/* Self-hosted fonts (caminhos relativos a /assets/) */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Orbitron";
  src: url("fonts/orbitron-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orlean";
  src: url("fonts/Orlean.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fallbacks com métricas calibradas → CLS≈0 no swap */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 23%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Orlean Fallback";
  src: local("Georgia");
  size-adjust: 96%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fffdfa 0%, #fffbf6 50%, #fdf9f4 100%);
  color: var(--ark-ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Header ──────────────────────────────────────────── */
.lg-hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 253, 250, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16,24,32,0.06);
  padding: 16px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lg-brand { display: flex; align-items: center; gap: 14px; }
.lg-brand img { height: 22px; width: auto; }
.lg-brand-sep { width: 1px; height: 14px; background: rgba(16,24,32,0.3); }
.lg-brand-product {
  font-size: 11px;
  letter-spacing: 2.2px;
  color: var(--ark-ink);
  font-weight: 400;
}
.lg-back {
  font-size: 13px;
  color: var(--ark-grey);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s var(--ease-lenis);
}
.lg-back:hover { color: var(--ark-ink); }
.lg-back svg { width: 13px; height: 13px; }

/* ─── Body ────────────────────────────────────────────── */
.lg-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 44px 100px;
}
.lg-kicker {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ark-orange);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-weight: 400;
}
.lg-kicker::before {
  content: "";
  width: 28px; height: 1px; background: currentColor;
}
.lg-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  color: var(--ark-ink);
}
.lg-h1 em { font-style: normal; color: var(--ark-orange); }

.lg-meta {
  font-size: 13px;
  color: var(--ark-grey);
  letter-spacing: 0.3px;
  margin: 0 0 50px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(16,24,32,0.08);
}

.lg-toc {
  background: var(--ark-paper-2);
  border: 1px solid rgba(16,24,32,0.06);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 0 0 50px;
}
.lg-toc-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ark-grey);
  margin: 0 0 12px;
}
.lg-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: lg;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.lg-toc ol li {
  counter-increment: lg;
  font-size: 14px;
  line-height: 1.5;
}
.lg-toc ol li::before {
  content: counter(lg, decimal-leading-zero) " · ";
  color: var(--ark-orange);
  font-weight: 500;
}
.lg-toc a {
  color: rgba(16,24,32,0.78);
  transition: color 0.2s;
}
.lg-toc a:hover { color: var(--ark-orange); }

.lg-content { color: rgba(16,24,32,0.82); font-size: 16px; line-height: 1.75; }
.lg-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.4px;
  color: var(--ark-ink);
  margin: 56px 0 16px;
  line-height: 1.15;
  scroll-margin-top: 80px;
}
.lg-content h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--ark-ink);
  margin: 30px 0 8px;
}
.lg-content p { margin: 0 0 14px; }
.lg-content ul, .lg-content ol { margin: 0 0 16px; padding-left: 22px; }
.lg-content li { margin-bottom: 8px; }
.lg-content strong { color: var(--ark-ink); font-weight: 500; }
.lg-content em { font-style: italic; }
.lg-content a {
  color: var(--ark-orange);
  border-bottom: 1px solid rgba(255,103,17,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.lg-content a:hover { color: var(--ark-orange-bright); border-color: var(--ark-orange-bright); }
.lg-content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(16,24,32,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.lg-content hr {
  border: 0;
  border-top: 1px solid rgba(16,24,32,0.08);
  margin: 56px 0;
}

/* navegação entre páginas legais */
.lg-other {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(16,24,32,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--ark-grey);
  letter-spacing: 0.3px;
}
.lg-other a {
  color: var(--ark-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.lg-other a:hover { color: var(--ark-orange); border-color: var(--ark-orange); }
.lg-other strong { color: var(--ark-orange); }

/* ─── Footer slim ─────────────────────────────────────── */
.lg-foot {
  background: #0a0a0a;
  color: rgba(255,255,255,0.55);
  padding: 36px 44px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lg-foot a {
  color: rgba(255,255,255,0.85);
  transition: opacity 0.2s;
}
.lg-foot a:hover { opacity: 0.6; }

.powered-by {
  background: var(--ark-paper-3);
  border-top: 1px solid rgba(16,24,32,0.06);
  padding: 22px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", "Geist", sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.powered-by .pb-text { color: var(--ark-ink); font-weight: 500; }
.powered-by .pb-brand {
  color: var(--ark-orange);
  font-weight: 700;
  position: relative;
  transition: opacity 0.3s var(--ease-lenis);
}
.powered-by .pb-brand:hover { opacity: 0.7; }

@media (max-width: 720px) {
  .lg-hdr { padding: 14px 22px; }
  .lg-main { padding: 50px 22px 70px; }
  .lg-h1 { font-size: 36px; }
  .lg-content h2 { font-size: 24px; }
  .lg-toc ol { grid-template-columns: 1fr; }
  .lg-foot { padding: 28px 22px; }
}
