/*
 * Te Explico — Etapa 23
 * FAQ, rodapé público e páginas legais.
 */

.te-section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .25rem .75rem;
    border-radius: var(--te-radius-pill);
    background: var(--te-color-blue-100);
    color: var(--te-primary);
    font-size: .76rem;
    font-weight: var(--te-font-weight-extrabold);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.te-home-faq {
    padding: 3.5rem 0 4.25rem;
    background:
        radial-gradient(circle at 8% 18%, rgba(49,84,200,.06) 0 8rem, transparent 8.1rem),
        linear-gradient(180deg, #fbfcff 0%, #f6f9ff 100%);
}

.te-home-faq__layout {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.te-home-faq__intro {
    position: sticky;
    top: 1.5rem;
}

.te-home-faq__intro h2 {
    margin-top: .7rem;
    color: var(--te-color-navy-900);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.te-home-faq__intro p {
    margin-top: 1rem;
    color: var(--te-color-gray-600);
    font-size: 1rem;
    line-height: 1.65;
}

.te-home-faq__support-link {
    display: inline-flex;
    gap: .45rem;
    margin-top: 1.1rem;
    color: var(--te-primary);
    font-weight: var(--te-font-weight-bold);
    text-decoration: none;
}

.te-faq-list {
    display: grid;
    gap: .75rem;
}

.te-faq-item {
    overflow: hidden;
    border: 1px solid var(--te-border-default);
    border-radius: var(--te-radius-lg);
    background: #fff;
    box-shadow: var(--te-shadow-sm);
}

.te-faq-item summary {
    position: relative;
    display: flex;
    min-height: 66px;
    align-items: center;
    padding: 1rem 3.25rem 1rem 1.15rem;
    color: var(--te-color-navy-900);
    cursor: pointer;
    font-weight: var(--te-font-weight-bold);
    list-style: none;
}

.te-faq-item summary::-webkit-details-marker { display: none; }

.te-faq-item summary::after {
    position: absolute;
    right: 1.1rem;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--te-color-blue-100);
    color: var(--te-primary);
    content: '+';
    font-size: 1.2rem;
    font-weight: 800;
    transition: transform var(--te-transition-fast);
}

.te-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.te-faq-item[open] summary {
    color: var(--te-primary);
}

.te-faq-item__answer {
    padding: 0 1.15rem 1.15rem;
    color: var(--te-color-gray-600);
    line-height: 1.65;
}

.te-public-footer {
    padding: 3.5rem 0 1.25rem;
    border-top: 1px solid var(--te-border-default);
    background: var(--te-color-navy-900);
    color: rgba(255,255,255,.78);
}

.te-public-footer__grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(135px, .65fr));
    gap: clamp(1.5rem, 4vw, 4rem);
}

.te-public-footer__brand img {
    width: 184px;
    max-width: 100%;
    height: auto;
    padding: .45rem .7rem;
    border-radius: var(--te-radius-md);
    background: #fff;
}

.te-public-footer__brand p {
    margin-top: 1rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: var(--te-font-weight-bold);
}

.te-public-footer__brand span {
    display: block;
    width: min(350px, 100%);
    margin-top: .45rem;
    font-size: .86rem;
    line-height: 1.55;
}

.te-public-footer__column {
    display: flex;
    flex-direction: column;
    gap: .62rem;
}

.te-public-footer__column h2 {
    margin-bottom: .25rem;
    color: #fff;
    font-size: .92rem;
}

.te-public-footer a {
    color: rgba(255,255,255,.76);
    font-size: .84rem;
    text-decoration: none;
}

.te-public-footer a:hover,
.te-public-footer a:focus-visible {
    color: var(--te-color-yellow-400);
}

.te-public-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .76rem;
}

.te-public-footer__bottom div {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.te-legal-page {
    min-height: 100vh;
    background: var(--te-bg-page);
}

.te-legal-header {
    border-bottom: 1px solid var(--te-border-default);
    background: #fff;
}

.te-legal-header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.te-legal-header__brand {
    width: 184px;
}

.te-legal-header__brand img {
    width: 100%;
    height: auto;
}

.te-legal-header nav {
    display: flex;
    gap: 1.25rem;
}

.te-legal-header nav a {
    color: var(--te-color-navy-900);
    font-size: .9rem;
    font-weight: var(--te-font-weight-bold);
    text-decoration: none;
}

.te-legal-main {
    padding: 3rem 0 4rem;
}

.te-legal-shell {
    width: min(980px, calc(100% - 2rem));
}

.te-legal-hero {
    padding: 2.2rem clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--te-border-default);
    border-radius: var(--te-radius-xl);
    background:
        radial-gradient(circle at 88% 28%, rgba(255,200,61,.12) 0 5rem, transparent 5.1rem),
        #fff;
    box-shadow: var(--te-shadow-sm);
}

.te-legal-hero h1 {
    margin-top: .65rem;
    color: var(--te-color-navy-900);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
}

.te-legal-hero p {
    width: min(700px, 100%);
    margin-top: .75rem;
    color: var(--te-color-gray-600);
    line-height: 1.6;
}

.te-legal-version {
    display: block;
    margin-top: 1rem;
    color: var(--te-color-gray-500);
    font-size: .78rem;
}

.te-legal-content {
    margin-top: 1rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--te-border-default);
    border-radius: var(--te-radius-xl);
    background: #fff;
    box-shadow: var(--te-shadow-sm);
}

.te-legal-content section + section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--te-border-default);
}

.te-legal-content h2 {
    color: var(--te-color-navy-900);
    font-size: 1.25rem;
}

.te-legal-content p {
    margin-top: .65rem;
    color: var(--te-color-gray-700, #3c4d6b);
    line-height: 1.75;
}

.te-legal-content a {
    color: var(--te-primary);
    font-weight: var(--te-font-weight-bold);
}

.te-legal-review-note {
    margin-top: 2rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255,200,61,.55);
    border-radius: var(--te-radius-lg);
    background: #fff9df;
    color: var(--te-color-navy-900);
    line-height: 1.6;
}

.te-home-stage23-diagnostics {
    padding: 2.5rem 0 4rem;
    border-top: 1px solid var(--te-border-default);
    background: var(--te-bg-page);
}

.te-home-stage23-diagnostics__banner {
    margin-bottom: 1.4rem;
    padding: 1.45rem 1.6rem;
    border-radius: var(--te-radius-xl);
    background: var(--te-color-success-600);
    color: #fff;
    box-shadow: var(--te-shadow-md);
}

.te-home-stage23-diagnostics__banner h2 {
    color: inherit;
    font-size: 1.45rem;
}

.te-home-stage23-diagnostics__banner p { margin-top: .25rem; }

.te-home-stage23-diagnostics__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.te-home-stage23-diagnostics__note {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--te-radius-lg);
    background: var(--te-color-blue-100);
    color: var(--te-color-navy-900);
}

@media (max-width: 900px) {
    .te-home-faq__layout { grid-template-columns: 1fr; }
    .te-home-faq__intro { position: static; }
    .te-public-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .te-home-faq { padding: 2.5rem 0 3rem; }
    .te-faq-item summary { min-height: 60px; }
    .te-public-footer { padding-top: 2.5rem; }
    .te-public-footer__grid { grid-template-columns: 1fr; }
    .te-public-footer__bottom { align-items: flex-start; flex-direction: column; }
    .te-legal-header__inner { min-height: 72px; }
    .te-legal-header__brand { width: 150px; }
    .te-legal-header nav { gap: .8rem; }
    .te-legal-main { padding: 1.5rem 0 2.5rem; }
    .te-legal-shell { width: min(100% - 1rem, 980px); }
    .te-legal-hero, .te-legal-content { border-radius: var(--te-radius-lg); }
    .te-home-stage23-diagnostics__grid { grid-template-columns: 1fr; }
}
