/* ==================================================
   POLÍTICA DE USO — LCC-UFMG

   Referência visual:
   Página Manuais e documentos

   - Títulos pretos
   - Tipografia institucional
   - Parágrafos justificados
   - Introdução alinhada à esquerda
   - Traços azuis nos subtítulos
   - Layout responsivo
   ================================================== */


/* ==================================================
   1. VARIÁVEIS E ESTRUTURA
   ================================================== */

.lcc-policy-page {
    --policy-blue: #0046ad;
    --policy-blue-dark: #002f6c;

    --policy-heading: #000000;
    --policy-text: #1f2937;
    --policy-text-soft: #4b5563;

    --policy-border: #cbd5e1;
    --policy-surface: #ffffff;
    --policy-soft: #f5f7fa;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding:
        clamp(2rem, 4vw, 4rem)
        clamp(1rem, 3vw, 2rem)
        4rem;

    color: var(--policy-text);

    font-size: 1rem;
    line-height: 1.7;
}


.lcc-policy-page,
.lcc-policy-page *,
.lcc-policy-page *::before,
.lcc-policy-page *::after {
    box-sizing: border-box;
}


/* ==================================================
   2. CABEÇALHO DA PÁGINA
   ================================================== */

.lcc-policy-header {
    margin: 0 0 3rem;
}


/* Título principal */

.lcc-policy-header h1 {
    margin: 0 0 0.75rem;

    color: var(--policy-heading);

    font-size: 2.75rem;
    font-weight: 700;

    line-height: 1.2;
    letter-spacing: -0.025em;

    text-align: left;
}


/* Texto introdutório */

.lcc-policy-header p {
    max-width: 52rem;

    margin: 0;

    color: var(--policy-text);

    font-size: 1.125rem;
    font-weight: 400;

    line-height: 1.6;

    text-align: left;

    overflow-wrap: break-word;
}


/* ==================================================
   3. SEÇÕES
   ================================================== */

.lcc-policy-section {
    margin: 0 0 3.5rem;
}


.lcc-policy-section:last-child {
    margin-bottom: 0;
}


/* ==================================================
   4. SUBTÍTULOS
   Mesmo padrão visual de Manuais e documentos
   ================================================== */

.lcc-policy-section h2 {
    margin: 0;

    color: var(--policy-heading);

    font-size: 1.75rem;
    font-weight: 700;

    line-height: 1.35;
    letter-spacing: -0.02em;

    text-align: left;
}


/* Traço azul abaixo dos títulos */

.lcc-policy-title-line {
    display: block;

    width: 30px;
    height: 2px;

    margin: 2.25rem 0 1.25rem;

    background-color: var(--policy-blue);

    border: 0;
}


/* ==================================================
   5. PARÁGRAFOS
   ================================================== */

.lcc-policy-section p {
    margin: 0 0 1rem;

    color: var(--policy-text);

    font-size: 1rem;
    font-weight: 400;

    line-height: 1.7;

    text-align: justify;
    text-justify: inter-word;

    overflow-wrap: break-word;
    hyphens: auto;
}


.lcc-policy-section p:last-child {
    margin-bottom: 0;
}


/* Área de texto */

.lcc-policy-text {
    width: 100%;
    max-width: 75rem;
}


.lcc-policy-text p {
    margin-bottom: 1rem;
}


.lcc-policy-text > p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   6. LISTAS
   ================================================== */

.lcc-policy-list {
    width: 100%;
    max-width: 75rem;

    margin: 0;

    padding-left: 1.5rem;

    color: var(--policy-text);

    list-style-type: disc;
    list-style-position: outside;
}


.lcc-policy-list li {
    margin-bottom: 0.75rem;

    padding-left: 0.25rem;

    color: var(--policy-text);

    font-size: 1rem;
    font-weight: 400;

    line-height: 1.7;

    text-align: justify;
    text-justify: inter-word;

    overflow-wrap: break-word;
    hyphens: auto;
}


.lcc-policy-list li:last-child {
    margin-bottom: 0;
}


/* Marcadores azuis */

.lcc-policy-list li::marker {
    color: var(--policy-blue);
}


/* Espaçamento após parágrafos seguidos de lista */

.lcc-policy-section > p + .lcc-policy-list {
    margin-top: 0.75rem;
}


/* ==================================================
   7. CITAÇÕES
   ================================================== */

.lcc-policy-quote {
    width: 100%;
    max-width: 75rem;

    margin: 1.25rem 0;

    padding: 1.1rem 1.25rem;

    background-color: var(--policy-soft);

    border: 1px solid var(--policy-border);
    border-left: 4px solid var(--policy-blue);

    border-radius: 0 0.25rem 0.25rem 0;
}


.lcc-policy-quote p {
    margin: 0;

    color: var(--policy-text);

    font-size: 1rem;
    font-weight: 400;
    font-style: normal;

    line-height: 1.7;

    text-align: justify;

    overflow-wrap: break-word;
}


/* Links longos dentro das citações */

.lcc-policy-quote a {
    overflow-wrap: anywhere;
    word-break: normal;
}


/* Separador "ou" */

.lcc-policy-section .lcc-policy-or {
    margin: 1.25rem 0;

    color: var(--policy-text);

    font-weight: 700;

    text-align: center;
}


/* ==================================================
   8. LINKS
   ================================================== */

.lcc-policy-page a {
    color: var(--policy-blue);

    font-weight: 600;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}


.lcc-policy-page a:hover {
    color: var(--policy-blue-dark);

    text-decoration-thickness: 2px;
}


.lcc-policy-page a:focus-visible {
    outline: 3px solid #f1c40f;
    outline-offset: 3px;

    border-radius: 2px;
}


/* ==================================================
   9. ELEMENTOS DE TEXTO
   ================================================== */

.lcc-policy-page strong {
    color: var(--policy-text);

    font-weight: 700;
}


.lcc-policy-page em {
    font-style: italic;
}


/* Código e comandos */

.lcc-policy-page code {
    padding: 0.08rem 0.3rem;

    color: var(--policy-blue-dark);

    background-color: #eef2f7;

    border: 1px solid #dbe3ed;
    border-radius: 0.2rem;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.92em;

    overflow-wrap: anywhere;
}


/* ==================================================
   10. RESPONSIVIDADE — TABLETS
   ================================================== */

@media (max-width: 768px) {

    .lcc-policy-page {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .lcc-policy-header {
        margin-bottom: 2.5rem;
    }

    .lcc-policy-header h1 {
        font-size: 2.25rem;
        line-height: 1.25;
    }

    .lcc-policy-header p {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .lcc-policy-section {
        margin-bottom: 3rem;
    }

    .lcc-policy-section h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .lcc-policy-title-line {
        margin: 2rem 0 1.25rem;
    }

    .lcc-policy-quote {
        padding: 1rem;
    }

}


/* ==================================================
   11. RESPONSIVIDADE — CELULARES
   ================================================== */

@media (max-width: 480px) {

    /* Margens laterais equivalentes à referência */

    .lcc-policy-page {
        width: 100%;

        padding:
            3rem
            1rem
            3rem;
    }


    /* Título principal */

    .lcc-policy-header {
        margin-bottom: 2rem;
    }

    .lcc-policy-header h1 {
        margin-bottom: 0.75rem;

        font-size: 2rem;
        font-weight: 700;

        line-height: 1.25;
        letter-spacing: -0.025em;
    }


    /* Introdução */

    .lcc-policy-header p {
        font-size: 1.125rem;

        line-height: 1.5;

        text-align: left;
    }


    /* Seções */

    .lcc-policy-section {
        margin-bottom: 3rem;
    }


    /* Subtítulos */

    .lcc-policy-section h2 {
        font-size: 1.375rem;
        font-weight: 700;

        line-height: 1.4;
        letter-spacing: -0.015em;
    }


    /* Traço azul */

    .lcc-policy-title-line {
        width: 30px;
        height: 2px;

        margin: 2.25rem 0 1.25rem;
    }


    /* Texto */

    .lcc-policy-section p,
    .lcc-policy-list li {
        font-size: 1rem;
        line-height: 1.7;
    }


    /* Listas */

    .lcc-policy-list {
        padding-left: 1.3rem;
    }

    .lcc-policy-list li {
        padding-left: 0.2rem;
    }


    /* Citações */

    .lcc-policy-quote {
        margin: 1.25rem 0;

        padding: 1rem;
    }

}


/* ==================================================
   12. IMPRESSÃO
   ================================================== */

@media print {

    .lcc-policy-page {
        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;

        color: #000000;

        font-size: 11pt;
    }

    .lcc-policy-header h1,
    .lcc-policy-section h2,
    .lcc-policy-section p,
    .lcc-policy-list,
    .lcc-policy-list li,
    .lcc-policy-quote p {
        color: #000000;
    }

    .lcc-policy-section h2 {
        break-after: avoid;
    }

    .lcc-policy-section {
        break-inside: auto;
    }

    .lcc-policy-list li,
    .lcc-policy-quote {
        break-inside: avoid;
    }

    .lcc-policy-quote {
        background: transparent;
        border-color: #777777;
    }

    .lcc-policy-page a {
        color: #000000;
        text-decoration: none;
    }

}


/* ==================================================
   13. ACESSIBILIDADE
   REDUÇÃO DE MOVIMENTO
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .lcc-policy-page *,
    .lcc-policy-page *::before,
    .lcc-policy-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}