/* GRADUS legal pages (/termos, /privacidade): same look as the landing pages; readable long text, summary cards,
   table of contents that follows the reading (sticky on desktop, collapsible on phones). */
:root { --void: #0b0d10; --graphite: #15181d; --g2: #11151a; --line: #242b34; --line2: #1b2027; --snow: #f7f9fc; --mist: #9aa4b2; --dim: #6b7480; --volt: #b8ff3d; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--void); color: var(--snow); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss03'; }
a { color: var(--volt); }
a:hover { color: #d6ff8a; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.lp { overflow: clip; }

/* header (same as the LPs) */
.lg-head { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line2); background: rgba(11, 13, 16, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lg-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.lg-brand { display: flex; align-items: center; gap: 12px; color: var(--snow); text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: .06em; }
.lg-brand:hover { color: var(--snow); }
.navlinks { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.navlinks a { color: var(--mist); text-decoration: none; }
.navlinks a:hover { color: var(--snow); }
.lg-head .right { display: flex; align-items: center; gap: 12px; }
.cta-p { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--volt); color: var(--void) !important; font-size: 15px; font-weight: 800; text-decoration: none; }
.cta-p:hover { background: #d6ff8a; }

/* hero */
.lg-hero { position: relative; padding-block: 72px 40px; }
.lg-hero .bars { position: absolute; right: -4%; top: 10px; width: 46%; height: 340px; display: flex; align-items: flex-end; gap: 22px; opacity: .7; pointer-events: none; }
.lg-hero .bars i { flex: 1; transform: skewY(-10deg); border-top: 1px solid rgba(184, 255, 61, .4); background: linear-gradient(180deg, rgba(184, 255, 61, .09), rgba(184, 255, 61, 0)); }
.lg-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--g2); margin-bottom: 30px; }
.lg-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--mist); font-size: 14px; font-weight: 700; text-decoration: none; }
.lg-switch a[aria-current="page"] { background: var(--volt); color: var(--void); }
.lg-hero h1 { position: relative; margin: 0; max-width: 820px; font-size: clamp(44px, 6.4vw, 84px); line-height: .95; font-weight: 900; letter-spacing: -.05em; text-wrap: balance; }
.lg-hero h1 span { color: var(--volt); }
.lg-hero .lead { position: relative; max-width: 640px; margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--mist); text-wrap: pretty; }
.lg-meta { position: relative; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 14px; color: var(--mist); }
.lg-meta span { display: inline-flex; align-items: center; gap: 8px; }
.lg-meta svg { width: 16px; height: 16px; color: var(--volt); }

/* summary cards */
.lg-sum { padding-block: 8px 56px; }
.lg-sum h2 { margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--volt); display: flex; align-items: center; gap: 12px; }
.lg-sum h2::before { content: ''; width: 24px; height: 2px; background: var(--volt); }
.lg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lg-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--graphite); border: 1px solid var(--line); }
.lg-card .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(184, 255, 61, .1); color: var(--volt); }
.lg-card .ic svg { width: 22px; height: 22px; }
.lg-card b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.lg-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--mist); }

/* body: toc + text */
.lg-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-block: 24px 110px; border-top: 1px solid var(--line2); }
.lg-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding-top: 32px; scrollbar-width: thin; }
.lg-toc summary { display: none; }
.lg-toc .t { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: flex; gap: 10px; padding: 8px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--mist); font-size: 14px; line-height: 1.35; text-decoration: none; transition: color .2s, border-color .2s, background-color .2s; }
.lg-toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-weight: 800; color: var(--dim); font-size: 12px; padding-top: 1px; }
.lg-toc a:hover { color: var(--snow); }
.lg-toc a.on { color: var(--snow); border-left-color: var(--volt); background: linear-gradient(90deg, rgba(184, 255, 61, .07), transparent); }
.lg-toc a.on::before { color: var(--volt); }

.lg-text { max-width: 760px; padding-top: 24px; counter-reset: sec; }
.lg-text section { padding-top: 34px; counter-increment: sec; }
.lg-text section + section { margin-top: 26px; border-top: 1px solid var(--line2); }
.lg-text h2 { margin: 0 0 16px; display: flex; align-items: baseline; gap: 14px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
.lg-text h2::before { content: counter(sec, decimal-leading-zero); flex: none; font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--volt); font-variant-numeric: tabular-nums; transform: translateY(-3px); }
.lg-text h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.lg-text p, .lg-text li { font-size: 16.5px; line-height: 1.72; color: #c4cbd5; text-wrap: pretty; }
.lg-text p { margin: 0 0 14px; }
.lg-text strong { color: var(--snow); font-weight: 700; }
.lg-text ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lg-text ul li { position: relative; padding-left: 22px; }
.lg-text ul li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--volt); }
.lg-note { margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px; background: rgba(184, 255, 61, .06); border: 1px solid rgba(184, 255, 61, .22); font-size: 15px; line-height: 1.6; color: #dfe6ee; }
.lg-table { margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.lg-table th { text-align: left; padding: 12px 16px; background: var(--g2); color: var(--mist); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.lg-table td { padding: 13px 16px; border-top: 1px solid var(--line2); color: #c4cbd5; vertical-align: top; }
.lg-table td:first-child { color: var(--snow); font-weight: 700; white-space: nowrap; }

.lg-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.lg-contact a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: var(--graphite); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .3s; }
.lg-contact a:hover { border-color: #3a4450; transform: translateY(-2px); }
.lg-contact span { font-size: 13px; color: var(--mist); }
.lg-contact b { font-size: 15px; color: var(--snow); word-break: break-all; }

.lg-top { position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 30; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(17, 21, 26, .9); color: var(--snow); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.lg-top.on { opacity: 1; transform: none; pointer-events: auto; }

.foot { border-top: 1px solid var(--line2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 30px 40px; font-size: 14px; color: var(--mist); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); text-decoration: none; }
.foot nav a:hover { color: var(--snow); }

@media (max-width: 960px) {
  .navlinks { display: none; }
  .lg-hero .bars { display: none; }
  .lg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lg-toc { position: static; max-height: none; padding-top: 22px; }
  .lg-toc details { border: 1px solid var(--line); border-radius: 18px; background: var(--g2); }
  .lg-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px; list-style: none; cursor: pointer; font-weight: 800; font-size: 15px; }
  .lg-toc summary::-webkit-details-marker { display: none; }
  .lg-toc summary::after { content: '+'; font-size: 22px; font-weight: 500; color: var(--volt); transition: transform .3s; }
  .lg-toc details[open] summary::after { transform: rotate(45deg); }
  .lg-toc .t { display: none; }
  .lg-toc ol { border-left: 0; padding: 0 8px 12px; }
  .lg-toc a { min-height: 44px; align-items: center; border-left: 0; border-radius: 12px; }
  .lg-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  /* Tables become one card per row; legal.js copies each column title into data-th. */
  .lg-table { border: 0; border-radius: 0; overflow: visible; }
  .lg-table thead { display: none; }
  .lg-table table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
  .lg-table tr { padding: 16px 18px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--g2); }
  .lg-table td { padding: 0; border: 0; white-space: normal !important; }
  .lg-table td:first-child { font-size: 16px; margin-bottom: 6px; }
  .lg-table td + td { margin-top: 6px; }
  .lg-table td + td::before { content: attr(data-th); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
  .lg-hero { padding-block: 44px 28px; }
  .lg-cards { grid-template-columns: minmax(0, 1fr); }
  .lg-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
  .lg-card .ic { flex: none; }
  .lg-text p, .lg-text li { font-size: 16px; }
  .lg-switch { display: flex; }
  .lg-switch a { flex: 1; justify-content: center; }
}
@media print {
  .lg-head, .lg-toc, .lg-sum, .lg-top, .foot, .lg-switch, .bars { display: none !important; }
  body { background: #fff; color: #000; }
  .lg-text p, .lg-text li, .lg-table td { color: #111; }
  .lg-body { display: block; }
}
