/* Contracts Page */
.page--contracts {
    min-height: calc(100vh - 200px);
    background: #fff;
}

.contracts-section {
    padding: 40px 0 80px;
}

.contracts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back Button */
.contracts-actions {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e91b5b 0%, #ff1e62 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(233, 27, 91, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 27, 91, 0.4);
}

.btn-back i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* Header */
.contracts-header {
    text-align: center;
    margin-bottom: 40px;
}

.contracts-title {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.contracts-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Contracts List */
.contracts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contract-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contract-item:hover {
    border-color: #e91b5b;
    box-shadow: 0 8px 30px rgba(233, 27, 91, 0.15);
    transform: translateY(-2px);
}

.contract-item:hover .contract-item__icon {
    background: linear-gradient(135deg, #e91b5b 0%, #ff1e62 100%);
    color: #fff;
    transform: scale(1.05);
}

.contract-item:hover .contract-item__arrow {
    color: #e91b5b;
    transform: translateX(4px);
}

.contract-item__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fdf2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e91b5b;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.contract-item__content {
    flex: 1;
    min-width: 0;
}

.contract-item__title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.contract-item__desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.contract-item__arrow {
    color: #cbd5e1;
    font-size: 16px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

/* Contract Detail View */
.contract-detail {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    color: #e91b5b;
    border: 2px solid #e91b5b;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 30px;
    font-family: inherit;
}

.btn-back-list:hover {
    background: #e91b5b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 27, 91, 0.3);
}

.btn-back-list i {
    transition: transform 0.2s ease;
}

.btn-back-list:hover i {
    transform: translateX(-3px);
}

/* Contract Content */
.contract-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contract-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fce7f3;
}

.contract-content .contract-date {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 30px;
    font-style: italic;
}

.contract-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e91b5b;
    margin: 32px 0 16px;
}

.contract-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin: 20px 0 12px;
}

.contract-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px;
}

.contract-content ul,
.contract-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.contract-content li {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 8px;
}

.contract-content ul li::marker {
    color: #e91b5b;
}

.contract-content ol li::marker {
    color: #e91b5b;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .contracts-section {
        padding: 30px 0 60px;
    }

    .contracts-header {
        margin-bottom: 30px;
    }

    .contracts-title {
        font-size: 28px;
    }

    .contracts-subtitle {
        font-size: 14px;
    }

    .contract-item {
        padding: 18px;
        gap: 16px;
    }

    .contract-item__icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border-radius: 12px;
    }

    .contract-item__title {
        font-size: 15px;
    }

    .contract-item__desc {
        font-size: 13px;
    }

    .contract-content {
        padding: 24px;
        border-radius: 16px;
    }

    .contract-content h2 {
        font-size: 22px;
    }

    .contract-content h3 {
        font-size: 16px;
        margin: 24px 0 12px;
    }

    .contract-content p,
    .contract-content li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contracts-actions {
        margin-bottom: 24px;
    }

    .btn-back,
    .btn-back-list {
        width: 100%;
        justify-content: center;
    }

    .contracts-title {
        font-size: 24px;
    }

    .contract-item {
        flex-wrap: wrap;
    }

    .contract-item__content {
        width: calc(100% - 68px);
    }

    .contract-item__arrow {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
    }

    .contract-item:hover .contract-item__arrow {
        transform: translateY(-50%) translateX(4px);
    }

    .contract-item {
        position: relative;
    }

    .contract-content {
        padding: 20px;
    }

    .contract-content h2 {
        font-size: 20px;
    }
}

