/**
 * GETU Shopping — legal documents (Termos e Condições + Política de Privacidade).
 *
 * PRODUCTION MAPPING POINT
 * ------------------------
 * Deploy to wp-content/themes/bricks-child/assets/css/getu-legal.css.
 * Enqueued by getu-legal.php on the legal pages only, after getu-blog.css:
 * it extends that file's `.prose-getu` / `.toc` components rather than
 * restating them, so the article and the contract read as one publication.
 *
 * COLORS are literal hex, matching the other production CSS in this folder: the
 * unprefixed reference color vars do not exist on WP, where color comes from
 * the compiled Tailwind utilities.
 *
 * Layout is written out here rather than composed from utilities on purpose.
 * getu-tailwind.css is a compiled build — it only contains the classes that were
 * scanned — so a utility this page needs but no other page uses (pb-28, a
 * reversed grid-cols arbitrary value) would silently resolve to nothing.
 */

/* ---- Take back the page ---------------------------------------------------
   Bricks' fallback page template centres #brx-content in a fixed content width
   and the document inherits it — 1100px of unbroken measure, and no way to run
   a header band the full width of the viewport. Widen the article instead and
   let each section below own its own measure. Specificity has to clear Bricks'
   own `#brx-content.wordpress` theme-style rule, hence the body class. */
.getu-legal #brx-content.wordpress {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.getu-legal .lg-shell {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Document header ------------------------------------------------------
   Sand, not wine. The wine band is this site's voice for a promise (the
   announcement bar, the CTA blocks, the footer); a contract is the opposite
   register, so the header stays quiet and the one accent in the whole document
   — the gold clause numeral — carries the brand. */
.getu-legal .lg-head {
  background: linear-gradient(180deg, #EFE7DB 0%, rgba(246, 241, 234, 0.35) 100%);
  border-bottom: 1px solid rgba(42, 14, 20, 0.10);
  padding-block: 2.5rem 2.75rem;
}

.getu-legal .lg-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: rgba(36, 16, 21, 0.5);
}
.getu-legal .lg-crumb a { color: inherit; text-decoration: none; transition: color 0.2s; }
.getu-legal .lg-crumb a:hover { color: #5A1320; }
.getu-legal .lg-crumb li[aria-hidden] { color: rgba(36, 16, 21, 0.3); }

.getu-legal .lg-kicker { margin: 1.75rem 0 0; color: #6E1A2A; }

.getu-legal .lg-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.4rem);
  line-height: 1.03;
  color: #2A0E14;
  max-width: 22ch;
  margin: 0.65rem 0 0;
}

.getu-legal .lg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(36, 16, 21, 0.6);
}
.getu-legal .lg-meta li { display: block; }
/* Not a flex item: an inline dot keeps the whitespace between the label and its
   link, which a flex row would collapse away ("Veja também:Política…"). */
.getu-legal .lg-meta li + li::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #C8A45D;
  margin-right: 0.85rem;
}
.getu-legal .lg-meta a {
  color: #5A1320;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(90, 19, 32, 0.35);
  transition: text-decoration-color 0.2s;
}
.getu-legal .lg-meta a:hover { text-decoration-color: #5A1320; }

/* Once the items stack, a leading dot reads as a bullet rather than as the
   separator it is. Stack them cleanly instead. */
@media (max-width: 640px) {
  .getu-legal .lg-meta {
    display: grid;
    justify-items: start;
    gap: 0.4rem;
  }
  .getu-legal .lg-meta li + li::before { content: none; }
}

/* ---- Body -----------------------------------------------------------------
   The complaint this file answers: the document used to start against the
   header and end against the footer. */
.getu-legal .lg-body { padding-block: 3rem 4.5rem; }

.getu-legal .lg-grid { display: block; }

/* Index left of the text, not right as on a blog post: in a contract the clause
   list is read before the clauses, not consulted alongside them. */
.getu-legal .lg-aside { display: none; }

@media (min-width: 1024px) {
  .getu-legal .lg-body { padding-block: 4rem 6.5rem; }
  .getu-legal .lg-grid {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 3.5rem;
  }
  /* Deliberately NOT `align-items: start`: that shrinks the aside to the height
     of the index itself, and a sticky element can only travel inside its own
     containing block — the index would unstick after one screen. Stretched to
     the row, it follows the document all the way down. */
  .getu-legal .lg-aside { display: block; }
  .getu-legal .lg-index { display: none; }
}

/* ---- Clause index ---------------------------------------------------------
   `.toc` (getu-blog.css) already gives the sticky offset, the rule down the
   left and the active state; getu-blog.js already drives the scroll-spy for any
   `.toc a[href^="#"]` beside a `.prose-getu`. Only the numeral column is new. */
.getu-legal .lg-toc-h { margin: 0 0 0.9rem 0.9rem; }
.getu-legal .lg-toc a {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  column-gap: 0.15rem;
  text-decoration: none;
}
.getu-legal .lg-tn {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  color: #C8A45D;
}
.getu-legal .lg-toc a.active .lg-tn,
.getu-legal .lg-toc a:hover .lg-tn { color: #6E1A2A; }

/* Mobile: the same list, folded away until asked for. */
.getu-legal .lg-index {
  border: 1px solid rgba(42, 14, 20, 0.10);
  border-radius: 0.9rem;
  background: rgba(239, 231, 219, 0.5);
  padding: 0 1.15rem;
  margin-bottom: 2.5rem;
}
.getu-legal .lg-index > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6E1A2A;
}
.getu-legal .lg-index > summary::-webkit-details-marker { display: none; }
.getu-legal .lg-index-chev {
  flex: none;
  color: rgba(36, 16, 21, 0.4);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.getu-legal .lg-index[open] .lg-index-chev { transform: rotate(180deg); }
.getu-legal .lg-index-list { padding-bottom: 0.9rem; }
.getu-legal .lg-index-list a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  column-gap: 0.15rem;
  padding: 0.45rem 0;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(36, 16, 21, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.getu-legal .lg-index-list a:hover { color: #5A1320; }

/* ---- Clause headings ------------------------------------------------------
   The numeral is the document's own; setting it in its own column turns the
   running text into something you can cite and scan. It replaces the blog's
   gold rule above each H2 — one marker per heading, not two. */
.getu-legal .lg-prose .lg-h2 {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.35rem;
  margin-top: 3.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(42, 14, 20, 0.10);
  scroll-margin-top: 104px;
}
.getu-legal .lg-prose .lg-h2::before { content: none; }
.getu-legal .lg-prose > *:first-child { margin-top: 0; }
.getu-legal .lg-prose > .lg-h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.getu-legal .lg-prose .lg-h3 {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.35rem;
  margin-top: 2.1rem;
  scroll-margin-top: 104px;
}
.getu-legal .lg-prose .lg-n {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: #C8A45D;
  font-size: 0.86em;
  font-variant-numeric: lining-nums tabular-nums;
}
.getu-legal .lg-prose .lg-h3 .lg-n { font-size: 0.95em; }

/* ---- Running text ---------------------------------------------------------
   `.prose-getu` sets the measure, the 17px/1.75 body and the bulleted lists.
   What a contract adds: bold clause labels that have to scan ("4.3. Formas de
   Pagamento:"), and numbered lists, which an article never used. */
.getu-legal .lg-prose > p > b:first-child,
.getu-legal .lg-prose > p > strong:first-child { color: #5A1320; }

.getu-legal .lg-prose ol {
  margin-top: 1.2rem;
  padding-left: 0;
  list-style: none;
  counter-reset: lg-ol;
}
.getu-legal .lg-prose ol > li {
  counter-increment: lg-ol;
  position: relative;
  padding-left: 2.1rem;
  margin-top: 0.6rem;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(36, 16, 21, 0.8);
}
.getu-legal .lg-prose ol > li::before {
  content: counter(lg-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #C8A45D;
  font-variant-numeric: lining-nums tabular-nums;
}

.getu-legal .lg-prose i,
.getu-legal .lg-prose em { color: rgba(36, 16, 21, 0.66); }

/* Long e-mail addresses and CNPJs must not push the measure open on a phone. */
.getu-legal .lg-prose a { overflow-wrap: anywhere; }

/* ---- Quality floor -------------------------------------------------------- */
.getu-legal a:focus-visible {
  outline: 2px solid #6E1A2A;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .getu-legal .lg-index-chev { transition: none; }
}
