/* FiveDesk V2 — páginas públicas legais (Termos, Privacidade, Fale Conosco) */
:root {
    --blue: #007bff;
    --blue-600: #0061d6;
    --navy: #001f5b;
    --sky: #90eeff;
    --ink: #0d1b34;
    --muted: #64748b;
    --line: #e4e9f0;
    --field: #f6f8fb;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-control: 0.75rem;
    --radius-card: var(--fd-radius-card, 0.25rem);
    --radius-lg: 1.5rem;
    --shadow-1: 0 0.0625rem 0.125rem rgba(13, 27, 52, 0.06);
    --shadow-2: 0 0.75rem 1.875rem -1rem rgba(13, 27, 52, 0.25);
    --shadow-3: 0 2.75rem 6.25rem -2.125rem rgba(0, 12, 40, 0.62);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

html,
body {
    margin: 0;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.container {
    max-width: 73.75rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 57.5rem;
}

.fd-gradient {
    background:
        radial-gradient(62.5rem 42.5rem at 82% -10%, rgba(0, 123, 255, 0.55), transparent 60%),
        radial-gradient(47.5rem 40rem at -8% 112%, rgba(144, 238, 255, 0.2), transparent 60%),
        linear-gradient(155deg, #001a4d 0%, #002a72 45%, #0046b8 100%);
}

.fd-dotgrid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.85) 0.075rem, transparent 0.075rem);
    background-size: 1.875rem 1.875rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(0.75rem);
    border-bottom: 0.0625rem solid var(--line);
}

.site-header .bar {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    height: 4.5rem;
}

.site-header .logo {
    height: 2.125rem;
    width: auto;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.625rem;
    margin-left: 0.5rem;
}

.site-header nav a {
    font-size: 0.90625rem;
    font-weight: 600;
    color: #3c4a63;
    text-decoration: none;
    transition: 0.15s;
}

.site-header nav a:hover {
    color: var(--blue);
}

.site-header nav a.active {
    color: var(--blue);
}

.site-header .spacer {
    flex: 1;
}

.site-header .head-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.site-header .ghost-link {
    font-size: 0.90625rem;
    font-weight: 600;
    color: #3c4a63;
    text-decoration: none;
}

.site-header .ghost-link:hover {
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5625rem;
    height: 2.875rem;
    padding: 0 1.375rem;
    border: 0;
    border-radius: var(--radius-control);
    font-family: inherit;
    font-size: 0.90625rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.18s;
    white-space: nowrap;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #007bff, #0052cc);
    box-shadow: 0 0.75rem 1.625rem -0.75rem rgba(0, 90, 220, 0.7);
}

.btn.primary:hover {
    transform: translateY(-0.0625rem);
    box-shadow: 0 1rem 1.875rem -0.75rem rgba(0, 90, 220, 0.8);
}

.btn.lg {
    height: 3.25rem;
    padding: 0 1.75rem;
    font-size: 0.96875rem;
}

.btn.sm {
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.84375rem;
}

.btn.block {
    width: 100%;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.page-hero .inner {
    position: relative;
    padding: 4rem 0 4.5rem;
}

.page-hero .eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sky);
    margin: 0 0 0.875rem;
}

.page-hero h1 {
    font-size: clamp(2.125rem, 4.4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.0625rem;
    margin: 0 0 0.875rem;
}

.page-hero p {
    font-size: 1.0625rem;
    color: #c4d2ee;
    margin: 0;
    max-width: 38.75rem;
}

.page-hero .meta {
    margin-top: 1.375rem;
    font-size: 0.84375rem;
    color: #9fb2da;
}

.site-footer {
    background: #081026;
    color: #cdd8f3;
    margin-top: 0;
}

.site-footer .top {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2rem;
    padding: 3.5rem 0 2.5rem;
}

.site-footer .brandcol .logo {
    height: 2.125rem;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.site-footer .brandcol p {
    font-size: 0.84375rem;
    color: #8e9cc4;
    max-width: 17.5rem;
    margin: 0;
}

.site-footer h5 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7283ab;
    margin: 0 0 1rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6875rem;
}

.site-footer ul a {
    font-size: 0.84375rem;
    color: #cdd8f3;
    text-decoration: none;
    transition: 0.15s;
}

.site-footer ul a:hover {
    color: #fff;
}

.site-footer .bottom {
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer .bottom .cp {
    font-size: 0.78125rem;
    color: #7283ab;
}

.site-footer .bottom .socials {
    display: flex;
    gap: 0.625rem;
}

.site-footer .bottom .socials a {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 0.5625rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aab7da;
    transition: 0.15s;
}

.site-footer .bottom .socials a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.site-footer .bottom .socials svg {
    width: 1.0625rem;
    height: 1.0625rem;
}

.doc {
    display: grid;
    grid-template-columns: 16.25rem 1fr;
    gap: 3.5rem;
    padding: 3.5rem 0 6rem;
    align-items: start;
}

.doc-toc {
    position: sticky;
    top: 6rem;
}

.doc-toc .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.875rem;
}

.doc-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.doc-toc a {
    display: block;
    font-size: 0.84375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5625rem;
    text-decoration: none;
    color: #5b6a86;
    transition: 0.14s;
    border-left: 0.125rem solid transparent;
}

.doc-toc a:hover {
    background: var(--field);
    color: var(--ink);
}

.doc-toc a.active {
    color: var(--blue);
    background: rgba(0, 123, 255, 0.07);
    font-weight: 600;
}

.doc-body {
    max-width: 47.5rem;
}

.doc-body .updated {
    font-size: 0.84375rem;
    color: var(--muted);
    padding-bottom: 1.375rem;
    margin-bottom: 1.875rem;
    border-bottom: 0.0625rem solid var(--line);
}

.doc-section {
    scroll-margin-top: 6rem;
    margin-bottom: 2.625rem;
}

.doc-section h2 {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025rem;
    margin: 0 0 0.875rem;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.doc-section h2 .n {
    font-family: 'Plus Jakarta Sans', var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blue);
}

.doc-section p {
    font-size: 0.9375rem;
    color: #374863;
    margin: 0 0 0.875rem;
}

.doc-section ul {
    margin: 0 0 0.875rem;
    padding-left: 1.25rem;
}

.doc-section li {
    font-size: 0.9375rem;
    color: #374863;
    margin-bottom: 0.5rem;
}

.doc-section a.inl {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.doc-section a.inl:hover {
    text-decoration: underline;
}

.callout {
    background: var(--field);
    border: 0.0625rem solid var(--line);
    border-left: 0.1875rem solid var(--blue);
    border-radius: 0.75rem;
    padding: 1rem 1.125rem;
    margin: 0 0 0.875rem;
}

.callout p {
    margin: 0;
    font-size: 0.875rem;
    color: #374863;
}

.field {
    margin-bottom: 1.125rem;
}

.field label {
    display: block;
    font-size: 0.84375rem;
    font-weight: 600;
    margin-bottom: 0.4375rem;
    color: #243a5e;
}

.input,
.textarea,
.select {
    width: 100%;
    border: 0.09375rem solid var(--line);
    border-radius: var(--radius-control);
    background: var(--field);
    font-family: inherit;
    font-size: 0.90625rem;
    color: var(--ink);
    outline: none;
    transition: 0.15s;
}

.input {
    height: 3rem;
    padding: 0 0.9375rem;
}

.select {
    height: 3rem;
    padding: 0 0.9375rem;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
}

.textarea {
    min-height: 8.75rem;
    padding: 0.8125rem 0.9375rem;
    resize: vertical;
    line-height: 1.6;
}

.input::placeholder,
.textarea::placeholder {
    color: #9aa7bd;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.13);
}

.contact {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    padding: 3.5rem 0 4.5rem;
    align-items: start;
}

.contact .form-card {
    background: #fff;
    border: 0.0625rem solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    padding: 2.125rem 2.125rem 1.875rem;
}

.contact .form-card h2 {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025rem;
    margin: 0 0 0.375rem;
}

.contact .form-card .sub {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-pending-notice {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374863;
    background: var(--field);
    border: 0.0625rem solid var(--line);
    border-radius: var(--radius-control);
    padding: 0.75rem 0.875rem;
}

.contact-pending-notice[hidden] {
    display: none;
}

.channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 0.0625rem solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: 0.16s;
    box-shadow: var(--shadow-1);
}

.channel:hover {
    border-color: #cfe0ff;
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-2);
}

.channel .ic {
    width: 2.875rem;
    height: 2.875rem;
    border-radius: 0.75rem;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel .ic svg {
    width: 1.5rem;
    height: 1.5rem;
}

.channel .ic.wa {
    background: #e7f8ee;
    color: #1eb45c;
}

.channel .ic.mail {
    background: rgba(0, 123, 255, 0.1);
    color: var(--blue);
}

.channel .ic.help {
    background: rgba(0, 31, 91, 0.08);
    color: var(--navy);
}

.channel .ct .t {
    font-size: 0.96875rem;
    font-weight: 700;
    margin: 0 0 0.125rem;
}

.channel .ct .d {
    font-size: 0.84375rem;
    color: var(--muted);
    margin: 0;
}

.channel .ct .v {
    font-size: 0.84375rem;
    font-weight: 600;
    color: var(--blue);
    margin-top: 0.4375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.faq {
    padding: 0.5rem 0 5.5rem;
}

.faq h2 {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03125rem;
    margin: 0 0 0.375rem;
}

.faq .sub {
    font-size: 0.9375rem;
    color: var(--muted);
    margin: 0 0 1.75rem;
}

.faq-list {
    max-width: 52.5rem;
}

.faq-item {
    border: 0.0625rem solid var(--line);
    border-radius: 0.875rem;
    margin-bottom: 0.75rem;
    background: #fff;
    overflow: hidden;
    transition: 0.16s;
}

.faq-item.open {
    border-color: #cfe0ff;
    box-shadow: var(--shadow-2);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.375rem;
    cursor: pointer;
    font-size: 0.96875rem;
    font-weight: 700;
    color: var(--ink);
}

.faq-q .pm {
    width: 1.5rem;
    height: 1.5rem;
    flex: none;
    position: relative;
}

.faq-q .pm::before,
.faq-q .pm::after {
    content: '';
    position: absolute;
    background: var(--blue);
    border-radius: 0.125rem;
    transition: 0.2s;
}

.faq-q .pm::before {
    top: 0.6875rem;
    left: 0.25rem;
    width: 1rem;
    height: 0.125rem;
}

.faq-q .pm::after {
    top: 0.25rem;
    left: 0.6875rem;
    width: 0.125rem;
    height: 1rem;
}

.faq-item.open .pm::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.26s ease;
}

.faq-a .inner {
    padding: 0 1.375rem 1.25rem;
    font-size: 0.90625rem;
    color: #374863;
}

.faq-item.open .faq-a {
    max-height: 17.5rem;
}

.faq-a a.inl {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.faq-a a.inl:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .doc {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .doc-toc {
        position: static;
    }

    .doc-toc ol {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .site-footer .top {
        grid-template-columns: 1fr 1fr;
    }

    .site-header nav {
        display: none;
    }

    .contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 1.25rem;
    }

    .site-footer .top {
        grid-template-columns: 1fr;
        gap: 1.625rem;
    }

    .site-footer .bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   V2 Sprint 13 — Páginas legais QA final
   Cache: fivedesk-legal-v2-s13
   ========================================================================== */

.site-header a:focus-visible,
.site-footer a:focus-visible,
.doc-toc a:focus-visible,
.faq-q:focus-visible,
.contact input:focus-visible,
.contact textarea:focus-visible,
.contact select:focus-visible,
#sendBtn:focus-visible {
    outline: none;
    box-shadow: var(--fd-focus-ring);
}

#sendBtn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.faq-q {
    min-height: 2.75rem;
}

#contactPendingNotice {
    line-height: 1.45;
}

@media (max-width: 560px) {
    .contact input,
    .contact textarea,
    .contact select {
        font-size: 1rem;
    }

    #sendBtn {
        min-height: 3rem;
        width: 100%;
    }
}

/* ==========================================================================
   S10 — Theme Lab: legal público (cinza + escuro); claro intocável
   ========================================================================== */

html[data-theme='dark'] {
    color-scheme: dark;
    --blue: #3b9bff;
    --blue-600: #2f7fe0;
    --ink: #f4f7fb;
    --muted: #aeb8c8;
    --line: #262d3a;
    --field: #171c26;
    --fd-focus-ring: 0 0 0 0.1875rem rgba(59, 155, 255, 0.22);
}

html[data-theme='cinza'] {
    color-scheme: dark;
    --blue: #4aa3ff;
    --blue-600: #3b8de0;
    --ink: #eceef3;
    --muted: #a8b0be;
    --line: #4a525f;
    --field: #3c434f;
    --fd-focus-ring: 0 0 0 0.1875rem rgba(74, 163, 255, 0.22);
}

html[data-theme='dark'] body,
html[data-theme='cinza'] body {
    background: #05070b;
    color: var(--ink);
}

html[data-theme='cinza'] body {
    background: #2a2f38;
}

html[data-theme='dark'] .site-header,
html[data-theme='cinza'] .site-header {
    background: color-mix(in srgb, var(--field) 88%, transparent);
    backdrop-filter: blur(0.75rem);
    border-bottom-color: var(--line);
}

html[data-theme='dark'] .site-header nav a,
html[data-theme='cinza'] .site-header nav a,
html[data-theme='dark'] .site-header .ghost-link,
html[data-theme='cinza'] .site-header .ghost-link {
    color: var(--muted);
}

html[data-theme='dark'] .site-header nav a:hover,
html[data-theme='cinza'] .site-header nav a:hover,
html[data-theme='dark'] .site-header .ghost-link:hover,
html[data-theme='cinza'] .site-header .ghost-link:hover {
    color: var(--ink);
}

html[data-theme='dark'] .doc-toc a,
html[data-theme='cinza'] .doc-toc a {
    color: var(--muted);
}

html[data-theme='dark'] .doc-toc a:hover,
html[data-theme='cinza'] .doc-toc a:hover {
    background: var(--field);
    color: var(--ink);
}

html[data-theme='dark'] .doc-toc a.active,
html[data-theme='cinza'] .doc-toc a.active {
    color: var(--blue);
    background: color-mix(in srgb, var(--blue) 14%, transparent);
}

html[data-theme='dark'] .doc-section p,
html[data-theme='cinza'] .doc-section p,
html[data-theme='dark'] .doc-section li,
html[data-theme='cinza'] .doc-section li {
    color: color-mix(in srgb, var(--ink) 92%, var(--muted));
}

html[data-theme='dark'] .contact .form-card,
html[data-theme='cinza'] .contact .form-card {
    background: color-mix(in srgb, var(--field) 55%, #11151d);
    border-color: var(--line);
}

html[data-theme='cinza'] .contact .form-card {
    background: #343a45;
}

html[data-theme='dark'] .input,
html[data-theme='cinza'] .input,
html[data-theme='dark'] .textarea,
html[data-theme='cinza'] .textarea,
html[data-theme='dark'] .select,
html[data-theme='cinza'] .select {
    background: var(--field);
    border-color: var(--line);
    color: var(--ink);
}

html[data-theme='dark'] .input:focus,
html[data-theme='cinza'] .input:focus,
html[data-theme='dark'] .textarea:focus,
html[data-theme='cinza'] .textarea:focus,
html[data-theme='dark'] .select:focus,
html[data-theme='cinza'] .select:focus {
    background: color-mix(in srgb, var(--field) 70%, #11151d);
    border-color: var(--blue);
}

html[data-theme='dark'] .contact-pending-notice,
html[data-theme='cinza'] .contact-pending-notice {
    color: var(--muted);
    background: var(--field);
    border-color: var(--line);
}

html[data-theme='dark'] .faq-a,
html[data-theme='cinza'] .faq-a {
    color: color-mix(in srgb, var(--ink) 90%, var(--muted));
}

html[data-theme='dark'] .faq-q,
html[data-theme='cinza'] .faq-q {
    color: var(--ink);
    background: color-mix(in srgb, var(--field) 70%, transparent);
    border-color: var(--line);
}

html[data-theme='dark'] .site-footer,
html[data-theme='cinza'] .site-footer {
    background: #05070b;
    color: var(--muted);
    border-top: 0.0625rem solid var(--line);
}

html[data-theme='cinza'] .site-footer {
    background: #23272f;
}
