:root {
    --pastel-yellow: #FCF6BD;
    --pastel-blue: #A9DEF9;
    --pastel-pink: #FF99C8;
    --pastel-mint: #D0F4DE;
    --pastel-purple: #E4C1F9;

    --bg-primary: #fdfcfa;
    --bg-secondary: #f8fbfd;
    --text-primary: #231c2b;
    --text-secondary: #5c5369;
    --text-muted: #8e849b;
    --white: #ffffff;

    --brand-border: #e9e3ed;
    --brand-hover-yellow: #f7ed97;

    --gradient-brand: linear-gradient(135deg, #FCF6BD 0%, #A9DEF9 45%, #D0F4DE 75%, #FF99C8 100%);
    --gradient-primary: linear-gradient(135deg, #FCF6BD 0%, #A9DEF9 100%);

    --shadow-card: 0 15px 35px rgba(140, 130, 160, 0.1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    padding: 2.5rem 1rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    background-image:
        radial-gradient(at 10% 10%, rgba(252, 246, 189, 0.45) 0px, transparent 50%),
        radial-gradient(at 90% 15%, rgba(169, 222, 249, 0.45) 0px, transparent 50%),
        radial-gradient(at 85% 85%, rgba(255, 153, 200, 0.35) 0px, transparent 50%),
        radial-gradient(at 15% 90%, rgba(208, 244, 222, 0.4) 0px, transparent 50%);
    background-attachment: fixed;
}

.tyc-wrapper {
    max-width: 900px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--brand-border);
    padding: 3.5rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.tyc-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-brand);
}

.header-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--brand-border);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--brand-border);
}

.btn-back:hover {
    background-color: #f1f0f5;
    color: var(--text-primary);
    transform: translateX(-3px);
}

.doc-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: linear-gradient(135deg, rgba(169, 222, 249, 0.35) 0%, rgba(228, 193, 249, 0.35) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(169, 222, 249, 0.6);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.doc-badge i {
    color: #4a90e2;
}

h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.preamble {
    background: linear-gradient(135deg, rgba(252, 246, 189, 0.25) 0%, rgba(169, 222, 249, 0.2) 100%);
    border-left: 4px solid var(--pastel-blue);
    border-top: 1px solid rgba(252, 246, 189, 0.4);
    border-right: 1px solid rgba(169, 222, 249, 0.3);
    border-bottom: 1px solid rgba(169, 222, 249, 0.3);
    padding: 1.4rem 1.6rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-align: justify;
}

.section-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--brand-border);
}

.section-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-num {
    color: #3b82f6;
    font-weight: 800;
}

.section-content {
    font-size: 0.94rem;
    color: var(--text-secondary);
    text-align: justify;
}

.section-content p {
    margin-bottom: 0.75rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.sub-items {
    list-style: none;
    margin-top: 0.75rem;
    padding-left: 0.5rem;
}

.sub-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.93rem;
    color: var(--text-secondary);
}

.sub-item::before {
    content: '•';
    position: absolute;
    left: 0.4rem;
    color: #ec4899;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    top: 2px;
}

.sub-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.doc-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brand-border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    body {
        padding: 1rem 0.5rem;
    }

    .tyc-wrapper {
        padding: 2.25rem 1.25rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    .header-actions {
        justify-content: center;
    }
}

@media print {
    body {
        background: #ffffff !important;
        padding: 0;
    }

    .tyc-wrapper {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .tyc-wrapper::before,
    .header-actions {
        display: none !important;
    }
}