/* Terms & Conditions Page Styling */

/* Terms Card Container */
.terms-card {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: none;
    background: #fff;
}

.terms-card .card-body {
    padding: 40px 35px;
}

/* Terms Header Section */
.terms-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 35px;
    border-left: 4px solid var(--main-color);
}

.terms-header p {
    margin-bottom: 8px;
    color: var(--title-color);
}

.terms-header p:last-child {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.6;
}

/* Simple Terms Header (without card background) */
.terms-header-simple {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--main-color);
}

.terms-header-simple p {
    margin-bottom: 8px;
    color: var(--title-color);
    font-size: 14px;
}

.terms-header-simple p:last-child {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Section Titles */
.terms-title {
    color: var(--title-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 35px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--main-color);
    position: relative;
}

.terms-title:first-of-type {
    margin-top: 0;
}

.terms-title:before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

/* Terms Lists */
.terms-list {
    margin-bottom: 30px;
    padding-left: 0;
}

.terms-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.terms-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--main-color);
    font-weight: bold;
    font-size: 16px;
}

.terms-list li:hover {
    color: var(--title-color);
    padding-left: 30px;
}

/* Terms Paragraphs */
.terms-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

.terms-content p strong {
    color: var(--title-color);
}

/* Contact Information Section */
.contact-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary-color);
}

.contact-info p {
    margin-bottom: 8px !important;
    font-size: 14px;
}

.contact-info a {
    color: var(--main-color);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Simple Contact Information (without card background) */
.contact-info-simple {
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid var(--main-color);
}

.contact-info-simple p {
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-color);
}

.contact-info-simple p:first-child {
    color: var(--title-color);
    font-weight: 600;
}

.contact-info-simple a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-simple a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer Agreement Section */
.terms-footer {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.terms-footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.terms-footer p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.6;
}

/* Simple Footer Agreement (without card background) */
.terms-footer-simple {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--main-color);
    text-align: center;
}

.terms-footer-simple p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--title-color);
    font-weight: 500;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-card .card-body {
        padding: 25px 20px;
    }

    .terms-header {
        padding: 20px;
        margin-bottom: 25px;
    }

    .terms-title {
        font-size: 16px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .terms-list li {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .terms-content p {
        font-size: 14px;
    }

    .contact-info {
        padding: 15px;
    }

    .terms-footer {
        padding: 20px;
    }

    .terms-footer p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .terms-card .card-body {
        padding: 20px 15px;
    }

    .terms-list li {
        padding-left: 20px;
    }

    .terms-list li:hover {
        padding-left: 22px;
    }
}