/* Terms page styling */
.terms-container {
    max-width: 1000px;
    margin: 3rem auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 2rem;
}

/* Terms Content */
.terms-content {
    transition: all 0.3s ease;
}

.terms-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e4e9;
    position: relative;
}

.terms-header:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, rgb(37, 150, 190), rgb(64, 159, 255));
    border-radius: 3px;
}

.terms-header h1 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

.terms-body section {
    margin-bottom: 2rem;
    background-color: #fbfbfb;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid rgb(64, 159, 255);
}

.terms-body section:hover {
    box-shadow: 0 0 10px rgba(37, 150, 190, 0.08);
}

.terms-body h2 {
    color: rgb(37, 150, 190);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.terms-body h3 {
    color: #555;
    font-size: 1.1rem;
    margin: 1.2rem 0 0.8rem;
    font-weight: 600;
}

.terms-body p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

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

.terms-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.6;
    color: #555;
}

.terms-body ul li:before {
    content: "•";
    color: rgb(64, 159, 255);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.terms-body ul ul {
    margin-top: 0.6rem;
    margin-left: 0.5rem;
    border-left: 1px solid #e0e4e9;
    padding-left: 1rem;
}

.terms-body ul ul li {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.terms-body ul ul li:before {
    content: "•";
    color: #888;
    font-size: 0.9em;
}

.terms-body a {
    color: rgb(64, 159, 255);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.terms-body a:hover {
    color: rgb(37, 150, 190);
    text-decoration: underline;
}

/* Utility classes */
.hidden-important {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .terms-container {
        margin: 2rem 1.5rem;
        padding: 1.75rem;
    }

    .terms-header h1 {
        font-size: 1.8rem;
    }

    .terms-body section {
        padding: 1.2rem;
    }
}

/* Mobile navbar fixes for terms page */
@media (max-width: 767.98px) {
    /* Hide the static mobile navigation that appears below the navbar */
    #mobile-nav {
        display: none !important;
    }

    /* Make sure the collapse toggle works properly */
    .navbar-collapse.collapse {
        display: none;
    }

    .navbar-collapse.collapse.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .terms-container {
        margin: 1.5rem 1rem;
        border-radius: 8px;
        padding: 1.5rem;
    }

    .terms-header h1 {
        font-size: 1.6rem;
    }

    .terms-body h2 {
        font-size: 1.3rem;
    }

    .terms-body p, .terms-body ul li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .terms-body section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .terms-container {
        margin: 1rem 0.8rem;
        padding: 1.2rem;
        border-radius: 6px;
    }

    .terms-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .terms-header h1 {
        font-size: 1.4rem;
    }

    .terms-body h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .terms-body section {
        padding: 0.8rem;
        margin-bottom: 1.2rem;
        border-left-width: 2px;
    }

    .terms-body p, .terms-body ul li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    .terms-body ul li {
        padding-left: 1.2rem;
    }
}

/* Print styles */
@media print {
    .terms-container {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
    }

    .terms-header h1 {
        font-size: 16pt;
    }

    .terms-body h2 {
        font-size: 14pt;
    }

    .terms-body p, .terms-body ul li {
        font-size: 11pt;
    }

    .terms-body section {
        page-break-inside: avoid;
        border-left: none;
        box-shadow: none;
        background: none;
        padding: 0;
        margin-bottom: 20pt;
    }
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    border-top: 1px solid #e0e4e9;
    padding-top: 20px;
}

.tab-button {
    background-color: #f5f5f5;
    border: 1px solid #e0e4e9;
    color: #555;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-button:hover {
    background-color: #eef5ff;
    border-color: #c5d7f7;
}

.tab-button.active {
    background: linear-gradient(90deg, rgb(37, 150, 190), rgb(64, 159, 255));
    color: white;
    border-color: transparent;
}

/* Table styling for GDPR content */
.terms-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.terms-body table th {
    background-color: rgba(37, 150, 190, 0.1);
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 0.8rem;
    border: 1px solid #e0e4e9;
}

.terms-body table td {
    padding: 0.8rem;
    border: 1px solid #e0e4e9;
    color: #555;
    line-height: 1.5;
}

.terms-body table tr:nth-child(even) {
    background-color: #fbfbfb;
}

.terms-body table tr:hover {
    background-color: rgba(37, 150, 190, 0.05);
}

/* Mobile responsiveness for tabs */
@media (max-width: 480px) {
    .tab-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 80%;
        margin: 5px 0;
    }
}
