/* =====================================================================
   AtendiNet — Legal Pages Stylesheet
   Compartilhado por termos.html, privacidade.html, lgpd.html, cookies.html
   ===================================================================== */

:root {
  --primary: #007BFF;
  --primary-600: #0066E0;
  --primary-700: #0056d3;
  --accent: #2BA8FF;
  --ink: #0B1730;
  --ink-soft: #1A2540;
  --text: #38445C;
  --text-mute: #6B7280;
  --border: #E5E9F0;
  --border-soft: #EFF2F7;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-tint: #F0F6FF;
  --success: #10B981;
  --warning: #F59E0B;
  --grad: linear-gradient(135deg, #2BA8FF 0%, #007BFF 50%, #0056d3 100%);
  --shadow-sm: 0 1px 2px rgba(11, 23, 48, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 23, 48, 0.06), 0 2px 4px rgba(11, 23, 48, 0.04);
  --shadow-lg: 0 12px 32px rgba(11, 23, 48, 0.08), 0 4px 12px rgba(11, 23, 48, 0.04);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-700); text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============== HEADER (reaproveitado da landing) ============== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(11, 23, 48, .04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 16px rgba(0,123,255,.28);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.brand-name b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.brand-by { font-size: 11px; color: var(--text-mute); margin-top: 2px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.header-nav {
  display: flex; align-items: center; gap: 8px;
}
.header-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}
.header-nav a:hover { background: var(--bg-tint); color: var(--primary); text-decoration: none; }

.header-cta {
  background: var(--primary); color: #fff !important;
  padding: 10px 18px !important; border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 16px rgba(0,123,255,.22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-cta:hover { background: var(--primary-700); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,123,255,.32); }

/* ============== LEGAL HERO ============== */
.legal-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}
.legal-hero .container { max-width: 900px; }
.legal-eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-tint);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.legal-title {
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.1;
  font-weight: 800; letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal-subtitle {
  font-size: 17px; line-height: 1.6;
  color: var(--text-mute);
  max-width: 680px;
}
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 26px; font-size: 13.5px;
  color: var(--text-mute);
}
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta svg { width: 14px; height: 14px; opacity: .7; }

/* ============== LEGAL LAYOUT ============== */
.legal-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  padding: 60px 0 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.toc {
  position: sticky; top: 96px;
  align-self: start;
  font-size: 14px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-mute);
  margin-bottom: 14px;
  padding-left: 12px;
}
.toc ol {
  list-style: none;
  border-left: 2px solid var(--border-soft);
}
.toc ol li { position: relative; }
.toc ol a {
  display: block;
  padding: 8px 14px;
  color: var(--text-mute);
  font-size: 13.5px; line-height: 1.45;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color .15s ease, border-color .15s ease;
}
.toc ol a:hover { color: var(--primary); text-decoration: none; }
.toc ol a.is-active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* ============== LEGAL CONTENT ============== */
.legal-content {
  max-width: 760px;
  font-size: 16px; line-height: 1.75;
  color: #2E3A52;
}
.legal-content h2 {
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 56px 0 18px;
  scroll-margin-top: 90px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 .num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-tint);
  padding: 4px 10px;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 10px;
  letter-spacing: .04em;
}
.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 28px 0 10px;
}
.legal-content p { margin: 12px 0; }
.legal-content ul, .legal-content ol {
  margin: 14px 0 14px 22px;
}
.legal-content ul li, .legal-content ol li {
  margin: 8px 0;
  padding-left: 4px;
}
.legal-content ul li::marker { color: var(--primary); }
.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content em { color: var(--ink-soft); font-style: normal; font-weight: 600; }

.legal-content a {
  border-bottom: 1px solid rgba(0,123,255,.3);
  transition: border-color .18s ease, color .18s ease;
}
.legal-content a:hover { border-bottom-color: var(--primary); text-decoration: none; }

.legal-content blockquote {
  border-left: 3px solid var(--primary);
  background: var(--bg-tint);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.legal-content table th,
.legal-content table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.legal-content table th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.legal-content table tr:last-child td { border-bottom: 0; }
.legal-content table code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  color: var(--ink-soft);
}

.callout {
  background: linear-gradient(135deg, #F0F6FF 0%, #FFFFFF 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin: 28px 0;
}
.callout-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink);
  font-size: 15px; margin-bottom: 8px;
}
.callout-title svg {
  width: 18px; height: 18px;
  color: var(--primary);
}
.callout p { margin: 6px 0; font-size: 15px; }
.callout.warn { background: linear-gradient(135deg, #FFF8EC 0%, #FFFFFF 100%); border-color: #F4D9A0; }
.callout.warn .callout-title svg { color: var(--warning); }

.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 36px;
  margin: 48px 0 0;
}
.contact-card h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.contact-card p { color: rgba(255,255,255,.7); margin: 6px 0; }
.contact-card a { color: var(--accent); border-bottom-color: rgba(43,168,255,.4); }
.contact-card a:hover { color: #fff; border-bottom-color: #fff; }
.contact-card .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin-top: 18px;
}
.contact-card .contact-grid > div { padding: 10px 0; }
.contact-card .contact-grid label {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(255,255,255,.5);
  margin-bottom: 4px; font-weight: 600;
}

/* ============== COOKIE TABLE (específico /cookies) ============== */
.cookie-cat {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin: 18px 0;
  border: 1px solid var(--border-soft);
}
.cookie-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 8px;
}
.cookie-cat-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.cookie-cat-badge {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.cookie-cat-badge.essential { background: rgba(16,185,129,.12); color: #047857; }
.cookie-cat-badge.optional { background: rgba(245,158,11,.12); color: #B45309; }

/* ============== FOOTER (reaproveitado) ============== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 64px 0 32px;
  font-size: 14.5px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { margin-bottom: 16px; color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-by { color: rgba(255,255,255,.5); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-socials { display: flex; gap: 8px; margin-top: 18px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  border-bottom: 0;
  transition: background .18s ease, color .18s ease;
}
.footer-socials a:hover { background: var(--primary); color: #fff; text-decoration: none; }
.footer-socials svg { width: 17px; height: 17px; }

.footer-col h4 {
  color: #fff; font-size: 13.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,.62);
  font-size: 14.5px;
  border-bottom: 0;
}
.footer-col a:hover { color: var(--accent); text-decoration: none; }

.footer-foot {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-copy { font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-copy strong { color: #fff; font-weight: 600; }
.footer-foot-links { display: flex; gap: 22px; }
.footer-foot-links a { font-size: 13.5px; color: rgba(255,255,255,.55); border-bottom: 0; }
.footer-foot-links a:hover { color: var(--accent); text-decoration: none; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .legal-wrap { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-cta { display: inline-flex !important; }
  .legal-hero { padding: 110px 0 50px; }
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 40px 0 60px;
  }
  .toc {
    position: static;
    background: var(--bg-soft);
    border-radius: var(--r-lg);
    padding: 18px 22px;
    margin-bottom: 40px;
    max-height: none;
  }
  .toc-title { padding-left: 0; margin-bottom: 12px; }
  .toc ol { border-left: 0; columns: 2; column-gap: 24px; }
  .toc ol a { padding: 6px 0; border-left: 0 !important; margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .legal-title { font-size: 32px; }
  .legal-content { font-size: 15.5px; }
  .legal-content h2 { font-size: 22px; margin: 44px 0 14px; }
  .legal-content h3 { font-size: 16.5px; }
  .contact-card { padding: 26px 22px; }
  .contact-card .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-foot { flex-direction: column; align-items: flex-start; }
  .toc ol { columns: 1; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .legal-hero { padding: 100px 0 40px; }
  .header-inner { height: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
}

/* ============== ACCESSIBILITY ============== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============== PRINT ============== */
@media print {
  .header, .footer, .toc { display: none; }
  .legal-wrap { grid-template-columns: 1fr; padding: 0; }
  .legal-hero { padding: 0 0 20px; background: none; border: 0; }
  .contact-card { background: #f5f5f5; color: #000; }
  .contact-card h3, .contact-card a, .contact-card p { color: #000; }
  body { font-size: 11pt; }
}
