/* ══════════════════════════════════════════════════════════
   site.css — estilos compartilhados do www.akiracloud.com
   ══════════════════════════════════════════════════════════ */

/* Tokens */
:root {
  --navy:          #0d1b3e;
  --navy-2:        #152347;
  --orange:        #ea911a;
  --orange-2:      #f5a444;
  --orange-bg:     rgba(234,145,26,0.10);

  --bg:            #f8fafc;
  --bg-white:      #ffffff;
  --bg-subtle:     #f1f5f9;

  --text:          #0f172a;
  --text-soft:     #475569;
  --text-muted:    #94a3b8;
  --text-inv-soft: rgba(255,255,255,0.60);

  --line:          #e2e8f0;
  --line-strong:   #cbd5e1;
  --shadow-soft:   0 4px 24px rgba(13,27,62,0.08);
  --radius:        14px;
  --max-w:         1200px;
  --font-heading:  'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* Botões */
.btn {
  appearance: none; border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all 0.18s ease; white-space: nowrap; text-decoration: none;
}
.btn-primary   { background: var(--navy); color: #fff; }
.btn-primary:hover  { background: var(--navy-2); }
.btn-secondary { background: var(--bg-white); color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn-secondary:hover { background: var(--bg-subtle); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-2); }
.btn-disabled { opacity: 0.45; cursor: default; pointer-events: none; }

/* Navbar */
nav {
  position: sticky; top: 0; z-index: 300;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(248,250,252,0.92);
  border-bottom: 1px solid rgba(226,232,240,0.90);
}
.nav-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 32px; width: auto; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-links > li > a {
  color: var(--text-soft); font-size: 0.88rem; font-weight: 500;
  padding: 7px 14px; border-radius: 8px;
  transition: color 0.15s, background 0.15s; display: block;
}
.nav-links > li > a:hover { color: var(--navy); background: var(--bg-subtle); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Hamburger */
.nav-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--navy); border-radius: 8px; transition: background 0.15s;
}
.nav-menu-toggle:hover { background: var(--bg-subtle); }
.nav-menu-toggle svg { width: 22px; height: 22px; }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-soft); font-size: 0.88rem; font-weight: 500;
  padding: 7px 14px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 5px; line-height: 1.5;
}
.nav-drop-btn:hover { color: var(--navy); background: var(--bg-subtle); }
.nav-drop-btn svg { flex-shrink: 0; transition: transform 0.18s; }
.nav-drop.open .nav-drop-btn { color: var(--navy); background: var(--bg-subtle); }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu {
  display: none; position: absolute;
  top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px;
  min-width: 230px; box-shadow: var(--shadow-soft);
  z-index: 200; flex-direction: column; gap: 2px;
}
.nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop-menu a {
  padding: 9px 14px; border-radius: 8px; font-size: 0.88rem;
  color: var(--text); white-space: nowrap;
  transition: background 0.13s, color 0.13s; display: block;
}
.nav-drop-menu a:hover { background: var(--bg-subtle); color: var(--navy); }
.drop-sep { height: 1px; background: var(--line); margin: 6px 0; }

/* Mobile nav drawer */
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--bg-white); border-bottom: 1px solid var(--line);
  padding: 12px 28px 20px; gap: 2px;
  position: sticky; top: 70px; z-index: 299;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-soft); font-size: 0.95rem; font-weight: 500;
  padding: 11px 0; border-bottom: 1px solid var(--line); transition: color 0.15s;
}
.mobile-nav a:hover { color: var(--navy); }
.mobile-nav .m-label {
  font-size: 0.71rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  padding: 14px 0 4px; border-bottom: none;
}
.mobile-nav-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.mobile-nav-actions .btn { width: 100%; justify-content: center; }

/* Footer */
footer { background: var(--navy); padding: 28px 0 36px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; color: var(--text-inv-soft); font-size: 0.83rem;
}
.footer-links { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-inv-soft); font-weight: 500; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 18px; padding-top: 14px;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-legal a { color: var(--text-inv-soft); font-size: 0.79rem; font-weight: 500; transition: color 0.15s; }
.footer-legal a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links                  { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .nav-actions .btn-primary   { display: none; }
  .nav-menu-toggle            { display: flex; }
  .footer-inner               { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ══════════════════════════════════════════════════════════
   Páginas de documentos legais
   ══════════════════════════════════════════════════════════ */

.pol-page-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 36px;
}
.pol-breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.pol-breadcrumb a { color: var(--text-muted); }
.pol-breadcrumb a:hover { color: var(--orange); }
.pol-page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -.03em; color: var(--navy); margin-bottom: 0;
}
.pol-page-sub { margin-top: 8px; font-size: .95rem; color: var(--text-soft); }

.pol-layout { padding: 48px 0 80px; }
.pol-layout-inner { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }

.pol-toc { position: sticky; top: 88px; }
.pol-toc-title {
  font-family: var(--font-heading); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: 12px;
}
.pol-toc nav { display: flex; flex-direction: column; gap: 2px; }
.pol-toc a {
  font-size: .85rem; color: var(--text-soft);
  padding: 6px 10px; border-radius: 6px; line-height: 1.4;
  transition: background .15s, color .15s;
}
.pol-toc a:hover { background: var(--bg-subtle); color: var(--navy); }

.pol-body { min-width: 0; }
.pol-body p { font-size: .93rem; line-height: 1.75; color: var(--text); margin-bottom: 14px; }
.pol-body ul, .pol-body ol { padding-left: 24px; margin-bottom: 14px; }
.pol-body li { font-size: .93rem; line-height: 1.75; color: var(--text); margin-bottom: 6px; }
.pol-body h3 { font-family: var(--font-heading); font-size: .95rem; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.pol-body h4 { font-family: var(--font-heading); font-size: .88rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.pol-body section { padding: 0 !important; background: none !important; margin-bottom: 48px; }
.pol-body h2 {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--navy);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.pol-body h2 .num {
  font-size: .72rem; font-weight: 700; color: var(--orange); letter-spacing: .1em;
  text-transform: uppercase; background: var(--orange-bg); padding: 3px 7px;
  border-radius: 4px; flex-shrink: 0;
}

.clause {
  font-size: .93rem; line-height: 1.75; color: var(--text); margin-bottom: 14px;
  padding-left: 52px; position: relative; text-align: justify; hyphens: auto;
}
.clause-num { position: absolute; left: 0; top: 0; font-size: .78rem; font-weight: 700; color: var(--text-muted); width: 44px; }
.clause strong { color: var(--navy); font-weight: 600; }
.clause em     { font-style: italic; }
.clause ol, .clause ul { margin: 10px 0 10px 18px; }
.clause li { margin-bottom: 5px; }

.sublist { list-style: none; padding: 0; margin: 12px 0 4px 52px; }
.sublist li { padding: 7px 0 7px 28px; position: relative; font-size: .93rem; line-height: 1.65; color: var(--text); }
.sublist li::before { content: attr(data-marker); position: absolute; left: 0; top: 7px; font-weight: 700; color: var(--orange); font-size: .85rem; }

.table-wrap { margin: 16px 0 4px 52px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.pol-body table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pol-body th {
  background: var(--navy); color: #fff; text-align: left; padding: 12px 16px;
  font-family: var(--font-heading); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.pol-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; color: var(--text); }
.pol-body tbody tr:last-child td { border-bottom: none; }
.pol-body tbody tr:nth-child(even) { background: var(--bg-subtle); }

.formula { margin: 16px 0 4px 52px; padding: 20px 24px; background: var(--orange-bg); border-left: 3px solid var(--orange); border-radius: 6px; }
.formula-eq { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.formula-legend { font-size: .85rem; color: var(--text-soft); line-height: 1.6; }
.formula-legend strong { color: var(--navy); }

.pol-body .highlight {
  margin: 16px 0 4px 52px; padding: 16px 20px; background: var(--bg-subtle);
  border-left: 3px solid var(--orange); border-radius: 6px; font-size: .9rem; line-height: 1.7; color: var(--text);
}
.pol-body .highlight strong:first-child {
  display: block; font-family: var(--font-heading); font-size: .78rem; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}

@media print {
  nav, footer, .pol-toc { display: none; }
  .pol-layout-inner { grid-template-columns: 1fr; }
  .pol-page-header { background: white; }
  .pol-body section { page-break-inside: avoid; }
  .pol-body h2 { page-break-after: avoid; }
}
@media (max-width: 860px) {
  .pol-layout-inner { grid-template-columns: 1fr; }
  .pol-toc { display: none; }
}
@media (max-width: 600px) {
  .pol-layout { padding: 32px 0 60px; }
  .pol-body section { margin-bottom: 36px; padding-bottom: 36px !important; }
  .clause { padding-left: 0; }
  .clause-num { position: static; display: inline; margin-right: 4px; }
  .table-wrap, .formula, .pol-body .highlight, .sublist { margin-left: 0; }
}
