.agreement-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.agreement-header {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.agreement-header h2 {
    color: var(--primary-dark);
    font-size: 32px;
    margin-bottom: 10px;
}

.agreement-header .effective-date {
    display: inline-block;
    background-color: rgba(191, 48, 31, 0.1);
    color: var(--primary-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
}

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

.agreement-section h3 {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--medium-gray);
}

.agreement-section p, .agreement-section ul {
    margin-bottom: 15px;
}

.agreement-section ul {
    padding-left: 25px;
}

.agreement-section li {
    margin-bottom: 10px;
    position: relative;
}

.agreement-section li:before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.article-number {
    display: inline-block;
    background-color: var(--primary-dark);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-size: 14px;
}

.highlight-box {
    background-color: rgba(191, 48, 31, 0.05);
    border-left: 4px solid var(--primary-red);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.law-reference {
    color: var(--primary-red);
    font-weight: 600;
}

.important-note {
    background-color: rgba(30, 30, 28, 0.05);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.important-note h4 {
    color: var(--primary-red);
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.important-note h4 i {
    font-size: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
}

.contact-item {
    flex: 1;
    min-width: 250px;
}

.contact-item h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-item p {
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: #a0281a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 48, 31, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-dark);
    border: 1px solid var(--medium-gray);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
    text-decoration: underline;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
    opacity: 0.8;
    font-size: 14px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .operator-info {
        text-align: center;
    }

    .agreement-container {
        padding: 25px;
    }

    .agreement-header h2 {
        font-size: 26px;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        justify-content: center;
    }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-red);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 100;
    border: none;
}

.scroll-top:hover {
    background-color: #a0281a;
    transform: translateY(-5px);
}

.toc {
    background-color: rgba(191, 48, 31, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-red);
}

.toc h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 20px;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    text-decoration: underline;
}

.clause {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid transparent;
    transition: border-color 0.3s;
}

.clause:hover {
    border-left-color: rgba(191, 48, 31, 0.3);
}

.clause-number {
    font-weight: bold;
    color: var(--primary-dark);
}