.agreement-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #667eea;
}

.agreement-title {
    color: #333;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.agreement-title i {
    color: #667eea;
    font-size: 2.2rem;
}

.agreement-date {
    color: #999;
    font-size: 0.95rem;
    margin: 0;
}

.agreement-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.agreement-section {
    margin-bottom: 30px;
}

.agreement-section h2 {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.agreement-section h4 {
    color: #555;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 12px;
}

.agreement-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.agreement-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.agreement-list li {
    color: #666;
    line-height: 1.8;
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    font-size: 0.95rem;
}

.agreement-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

.agreement-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.agreement-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.agreement-actions .btn {
    min-width: 150px;
    font-weight: 600;
    border-radius: 6px;
}

.agreement-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.agreement-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Condition Table Styles */
.condition-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.condition-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.condition-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.condition-table th {
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.condition-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.condition-table tbody tr:hover {
    background-color: #f8f9fa;
}

.condition-table td {
    padding: 15px;
    color: #333;
}

.condition-table .condition-name {
    font-weight: 600;
    color: #667eea;
    min-width: 120px;
    white-space: nowrap;
}

.condition-table .condition-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .agreement-title {
        font-size: 1.5rem;
    }

    .agreement-title i {
        font-size: 1.5rem;
    }

    .agreement-content {
        padding: 20px;
    }

    .agreement-section h2 {
        font-size: 1.1rem;
    }

    .agreement-list li {
        padding-left: 20px;
        font-size: 0.9rem;
    }

    .condition-table th,
    .condition-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .condition-table .condition-name {
        min-width: 100px;
    }
}

/* Dark Theme */
.theme-dark .agreement-header {
    border-bottom-color: #475569;
}

.theme-dark .agreement-title,
.theme-dark .agreement-section h2,
.theme-dark .agreement-section h4,
.theme-dark .condition-table td {
    color: #e2e8f0;
}

.theme-dark .agreement-title i,
.theme-dark .condition-table .condition-name {
    color: #93c5fd;
}

.theme-dark .agreement-date,
.theme-dark .agreement-section p,
.theme-dark .agreement-list li,
.theme-dark .condition-table .condition-desc {
    color: #94a3b8;
}

.theme-dark .agreement-content,
.theme-dark .agreement-footer,
.theme-dark .condition-table {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.theme-dark .agreement-section h2 {
    border-bottom-color: #334155;
}

.theme-dark .agreement-list li:before {
    color: #22c55e;
}

.theme-dark .condition-table-wrapper {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.theme-dark .condition-table tbody tr {
    border-bottom-color: #334155;
}

.theme-dark .condition-table tbody tr:hover {
    background-color: #0f172a;
}
