/* Support and privacy pages. Extends the visual language from /style.css. */

.app-site { background: var(--ink); }
.app-site .site-header { position: absolute; }
.app-site .header-contact { display: inline-flex; }
.app-main { position: relative; background: var(--paper); color: var(--ink); }

.app-hero {
  position: relative; min-height: clamp(30rem, 62vh, 43rem);
  padding: clamp(9rem, 16vw, 13rem) var(--pad) clamp(4rem, 8vw, 7rem);
  display: flex; align-items: flex-end; overflow: hidden; color: var(--paper);
  background: linear-gradient(90deg, transparent 49.95%, rgba(255,255,255,.055) 50%, transparent 50.05%),
    radial-gradient(circle at 82% 30%, var(--app-glow, rgba(215,255,63,.12)), transparent 26%), var(--ink);
}
.app-hero::before {
  content: ""; position: absolute; top: 12%; right: -8rem; width: min(46vw, 35rem); aspect-ratio: 1;
  border: 1px solid var(--line-dark); border-radius: 50%;
  box-shadow: inset 0 0 0 5rem rgba(255,255,255,.012), inset 0 0 0 5.05rem var(--line-dark);
  opacity: .8; animation: app-orbit 1.3s cubic-bezier(.16,1,.3,1) both;
}
.app-hero::after {
  content: ""; position: absolute; right: var(--pad); bottom: 0; width: 1px; height: 30%;
  background: linear-gradient(transparent, var(--acid));
}
@keyframes app-orbit { from { opacity: 0; transform: scale(.8) rotate(-12deg); } }

.app-head {
  position: relative; z-index: 2; width: min(100%, 88rem); margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 3.5vw, 3rem); align-items: end;
}
.app-head--index { grid-template-columns: 1fr; }
.app-icon {
  width: clamp(5.5rem, 10vw, 9rem); height: clamp(5.5rem, 10vw, 9rem); border-radius: 22%; object-fit: cover;
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.45); animation: icon-arrive .9s .12s cubic-bezier(.16,1,.3,1) both;
}
@keyframes icon-arrive { from { opacity: 0; transform: translateY(1.5rem) scale(.92); } }
.app-head h1 {
  margin: 0; font-size: clamp(4rem, 10vw, 9rem); font-weight: 500; letter-spacing: -.075em; line-height: .82;
  animation: title-arrive .9s cubic-bezier(.16,1,.3,1) both;
}
.app-head--index h1 { font-family: var(--serif); font-style: italic; color: var(--acid); }
@keyframes title-arrive { from { opacity: 0; transform: translateY(2rem); } }
.app-head p {
  max-width: 36rem; margin: clamp(1.25rem, 2.5vw, 2rem) 0 0; color: rgba(242,240,233,.66);
  font-size: clamp(.95rem, 1.4vw, 1.15rem); line-height: 1.65;
}

.app-content { padding: 0 var(--pad) clamp(5rem, 9vw, 9rem); }
.app-content-inner { width: min(100%, 88rem); margin: 0 auto; }
.app-main > input[type="radio"] {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}
.lang {
  position: relative; z-index: 3; margin: 0 calc(var(--pad) * -1) clamp(4rem, 8vw, 7rem); padding: 0 var(--pad);
  display: flex; justify-content: center; border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light); background: var(--paper-deep);
}
.lang label {
  min-height: 3.75rem; padding: 0 clamp(.8rem, 2vw, 1.5rem); display: grid; place-items: center;
  border-right: 1px solid var(--line-light); color: #565852; font-family: var(--mono);
  font-size: clamp(.62rem, 1.5vw, .72rem); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}
.lang label:first-child { border-left: 1px solid var(--line-light); }
.lang label:hover { color: var(--ink); background: rgba(255,255,255,.34); }
#l-en:focus-visible ~ .app-content .lang label[for="l-en"],
#l-pt:focus-visible ~ .app-content .lang label[for="l-pt"],
#l-es:focus-visible ~ .app-content .lang label[for="l-es"] { outline: 3px solid #496000; outline-offset: -3px; }
#l-en:checked ~ .app-content .lang label[for="l-en"],
#l-pt:checked ~ .app-content .lang label[for="l-pt"],
#l-es:checked ~ .app-content .lang label[for="l-es"] { color: var(--ink); background: var(--acid); }
.pane { display: none; }
#l-en:checked ~ .app-content .pane-en,
#l-pt:checked ~ .app-content .pane-pt,
#l-es:checked ~ .app-content .pane-es { display: block; animation: pane-in .4s ease both; }
/* A animacao nao pode ser dona da legibilidade: se o relogio de animacao nao
   avanca (captura headless, aba em segundo plano, leitor), um keyframe que so
   define o estado inicial com fill both deixa o texto em opacity 0 para sempre.
   Foi o que aconteceu: a pagina de privacidade abria em branco. Anima-se o
   deslocamento, nunca a opacidade do bloco que carrega o texto. */
@keyframes pane-in { from { transform: translateY(.5rem); } to { transform: none; } }

.app-sec {
  padding: clamp(3rem, 7vw, 6rem) 0; display: grid;
  grid-template-columns: minmax(9rem, .48fr) minmax(0, 1.52fr); column-gap: clamp(2rem, 8vw, 9rem);
  border-top: 1px solid var(--line-light);
}
.app-sec:first-child { padding-top: 0; border-top: 0; }
.app-sec > h2 {
  grid-column: 1; grid-row: 1 / span 30; margin: 0; font-family: var(--mono); font-size: .65rem;
  font-weight: 500; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase;
}
.app-sec > h2::before {
  content: ""; width: 1.6rem; height: 1px; margin: 0 .7rem .2rem 0; display: inline-block; background: #75776f;
}
.app-sec > :not(h2) { grid-column: 2; }
.app-sec p {
  max-width: 66ch; margin: 0 0 1rem; color: #393a36; font-size: clamp(1rem, 1.45vw, 1.1rem); line-height: 1.78;
}
.app-sec h3 {
  max-width: 42rem; margin: 2.2rem 0 .65rem; padding-top: 2rem; border-top: 1px solid var(--line-light);
  font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.25;
}
.app-sec h2 + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.callout {
  max-width: 48rem; margin: clamp(1.75rem, 4vw, 3rem) 0 0; padding: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--paper); background: linear-gradient(90deg, rgba(215,255,63,.08), transparent 60%), var(--ink-soft);
  border-left: 3px solid var(--acid);
}
.callout p, .callout strong { color: var(--paper); }
.callout p:last-child { margin-bottom: 0; }
.app-contact {
  width: min(100%, 31rem); margin-top: 1.25rem; padding: 1.15rem 1.3rem; display: flex;
  justify-content: space-between; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  transition: padding .3s ease, background-color .3s ease;
}
.app-contact:hover { padding-right: 1.8rem; padding-left: 1.8rem; background: var(--acid); }
.meta-row {
  margin-top: 3.5rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line-light); color: #5f615b; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; line-height: 1.5; text-transform: uppercase;
}

.app-directory { padding: clamp(4rem, 8vw, 8rem) var(--pad) clamp(6rem, 10vw, 10rem); color: var(--ink); background: var(--paper); }
.app-list { width: min(100%, 88rem); margin: 0 auto; border-top: 1px solid var(--line-light); }
.app-row {
  position: relative; min-height: clamp(9rem, 17vw, 15rem); padding: clamp(1.75rem, 4vw, 3rem) 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center; border-bottom: 1px solid var(--line-light); overflow: hidden;
}
.app-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: 0; background: var(--acid);
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.app-row:hover::before, .app-row:focus-visible::before { transform: scaleY(1); }
.app-row > * { position: relative; z-index: 1; }
.app-row-icon {
  width: clamp(4.5rem, 8vw, 7.5rem); height: clamp(4.5rem, 8vw, 7.5rem); border-radius: 22%; object-fit: cover;
  box-shadow: 0 1rem 2.5rem rgba(9,10,11,.18);
}
.app-row .nm, .app-row .ds { display: block; }
.app-row .nm { font-size: clamp(2rem, 5vw, 4.8rem); font-weight: 500; letter-spacing: -.065em; line-height: 1; }
.app-row .ds { margin-top: .75rem; color: #565852; font-size: clamp(.8rem, 1.4vw, .95rem); }
.app-row .ar {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 4.5rem); font-style: italic; transition: transform .35s ease;
}
.app-row:hover .ar, .app-row:focus-visible .ar { transform: translate(.35rem, -.35rem); }
.directory-meta { width: min(100%, 88rem); margin-right: auto; margin-left: auto; }
.app-site a:focus-visible, .app-site label:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }

@media (max-width: 960px) {
  .app-site .site-header { grid-template-columns: 1fr auto; }
  .app-site .header-contact { justify-self: end; }
}

@media (max-width: 640px) {
  .app-site .site-header { min-height: 4.5rem; }
  .app-site .brand { width: 5.3rem; }
  .app-site .header-contact { font-size: .64rem; }
  .app-hero { min-height: 29rem; padding-top: 8.5rem; }
  .app-hero::before { top: 18%; right: -10rem; width: 22rem; }
  .app-head { grid-template-columns: 1fr; align-items: start; }
  .app-icon { width: 5.25rem; height: 5.25rem; }
  .app-head h1 { font-size: clamp(3.4rem, 17vw, 5rem); line-height: .88; }
  .app-head p { margin-top: 1rem; }
  .lang { margin-bottom: 3.5rem; justify-content: stretch; }
  .lang label { flex: 1; padding-right: .45rem; padding-left: .45rem; }
  .app-sec { grid-template-columns: 1fr; padding: 3.5rem 0; }
  .app-sec > h2 { grid-column: 1; grid-row: auto; margin-bottom: 2.25rem; }
  .app-sec > :not(h2) { grid-column: 1; }
  .app-sec p { font-size: 1rem; line-height: 1.72; }
  .app-contact { width: 100%; }
  .app-row { min-height: 9.5rem; grid-template-columns: auto minmax(0, 1fr) 1rem; }
  .app-row-icon { width: 4.35rem; height: 4.35rem; }
  .app-row .nm { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .app-row .ds { max-width: 15rem; font-size: .75rem; line-height: 1.5; }
  .app-row .ar { font-size: 1.8rem; }
  .meta-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .app-icon, .app-head h1, .app-hero::before, .pane { animation: none; }
}
