:root {
    --primary: #3a0ca3;
    --primary-dark: #240066;
    --primary-light: #4361ee;
    --secondary: #4cc9f0;
    --accent: #f72585;
    --accent-light: #ff4d6d;
    --text-dark: #2b2d42;
    --text-light: #8d99ae;
    --text-white: #edf2f4;
    --bg-dark: #0f172a;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --success: #52b788;
    --warning: #fca311;
    --info: #81c3d7;
    --danger: #e63946;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
    padding-top: 80px;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: none;
}

ul,
ol {
    padding-left: 1.2rem;
}

/* Navbar styling */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.brand-dot {
    color: var(--accent);
}

.brand-com {
    font-weight: 400;
    color: var(--text-light);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-left: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: white;
}

.navbar-toggler {
    border: none;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Header styling */
.header-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 5rem 0;
    color: var(--text-white);
    position: relative;
    margin-bottom: 3rem;
}

.header-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(
        to bottom right,
        transparent 49.5%,
        var(--bg-light) 50%
    );
}

.header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.last-updated {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    color: white;
}

/* Policy container */
.policy-container {
    max-width: 900px;
    margin: 0 auto 4rem;
    background-color: transparent;
    position: relative;
}

.content-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* Table of contents */
.table-of-contents {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

.table-of-contents h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-of-contents ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.table-of-contents ol li {
    position: relative;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0 0.5rem 2rem;
    counter-increment: item;
}

.table-of-contents ol li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.table-of-contents a:hover {
    color: var(--accent);
}

/* Section styling */
.section-content {
    margin-bottom: 3rem;
}

.section-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
}

.section-content h2::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(67, 97, 238, 0.3), transparent);
    margin-left: 1rem;
}

.section-content h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.section-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-content ul li,
.section-content ol li {
    margin-bottom: 0.5rem;
}

/* Feature list styling */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(74, 104, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.feature-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-light);
}

/* Rights items styling */
.rights-row {
    margin-top: 1.5rem;
}

.rights-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rights-item i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(74, 104, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-warning {
    background-color: rgba(252, 163, 17, 0.1);
    border-left: 4px solid var(--warning);
    color: #775209;
}

.alert-info {
    background-color: rgba(76, 201, 240, 0.1);
    border-left: 4px solid var(--info);
    color: #0b5674;
}

/* Contact info */
.contact-info {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: rgba(74, 104, 231, 0.1);
    border-radius: 30px;
    margin-top: 0.5rem;
}

.contact-info i {
    margin-right: 0.75rem;
    color: var(--primary);
}

/* Acknowledgment */
.acknowledgment {
    margin-top: 3rem;
}

.acknowledgment .content-card {
    border-top: 4px solid var(--success);
    background-color: var(--card-bg);
}

.acknowledgment i {
    font-size: 3rem;
    color: var(--success);
    display: block;
}

/* Footer styling */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(
        to top right,
        var(--bg-dark) 49.5%,
        transparent 50%
    );
}

.footer-brand {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand a {
    color: white;
}

.footer-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover,
.footer-links a.active {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
}

.badge {
    border-radius: 5px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.back-to-top-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top-button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.back-to-top-button.show {
    visibility: visible;
    opacity: 1;
}
/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .nav-btn {
        display: inline-block;
        margin: 0.5rem 1rem;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .header-section {
        padding: 4rem 0;
    }

    .header-section::before {
        height: 2rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .table-of-contents {
        padding: 1.5rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .section-content h2 {
        font-size: 1.5rem;
    }

    .section-content h3 {
        font-size: 1.25rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer::before {
        height: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        margin-top: 1rem;
        justify-content: center;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .back-to-top-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .header-content h1 {
        font-size: 1.75rem;
    }

    .last-updated {
        font-size: 0.8rem;
    }

    .section-content h2::after {
        display: none;
    }

    .rights-item {
        margin-bottom: 1.25rem;
    }

    .feature-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-icon {
        margin-bottom: 0.5rem;
    }

    .contact-info {
        padding: 0.75rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-info i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .footer-heading {
        margin-top: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Print styles for better printing */
@media print {
    body {
        background: white;
        padding-top: 0;
        font-size: 12pt;
    }

    .navbar,
    .footer,
    .back-to-top {
        display: none;
    }

    .header-section {
        background: white;
        color: black;
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .header-section::before {
        display: none;
    }

    .header-content h1 {
        color: var(--primary);
    }

    .last-updated {
        background: none;
        color: var(--text-light);
        padding: 0;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid #eee;
        page-break-inside: avoid;
    }

    .table-of-contents {
        box-shadow: none;
        border: 1px solid #eee;
    }

    a {
        text-decoration: underline;
        color: var(--primary);
    }

    h2::after {
        display: none;
    }

    .feature-icon,
    .rights-item i {
        border: 1px solid #eee;
        background: none;
    }
}

/* Accessibility enhancements */
:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to content link for keyboard users */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    animation: fadeIn 0.6s ease-out forwards;
}

.section-content:nth-child(2n) {
    animation-delay: 0.2s;
}

.section-content:nth-child(3n) {
    animation-delay: 0.3s;
}

/* Additional styles for Terms of Service */
.prohibited-list {
    list-style-type: none;
    padding-left: 0;
}

.prohibited-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.prohibited-list li i {
    color: var(--primary);
    margin-right: 1rem;
    min-width: 20px;
    text-align: center;
}

/* Home page styles */
.home-container {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.hero-section {
    margin-bottom: 3rem;
}

.hero-section .content-card {
    padding: 3rem 2rem;
}

.hero-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

.section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    color: var(--primary-dark);
}

.document-card {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
}

.document-icon {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 2rem;
}

.document-content {
    padding: 2rem;
    flex-grow: 1;
}

.document-content h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.document-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.document-meta i {
    margin-right: 0.5rem;
}

.legal-documents-section,
.additional-documents-section {
    margin-bottom: 3rem;
}

.additional-document-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.additional-document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.small-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.additional-document-card h5 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.document-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-weight: 500;
}

.document-link i {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.document-link:hover i {
    transform: translateX(3px);
}

.contact-section .content-card {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .document-card {
        flex-direction: column;
    }

    .document-icon {
        width: 100%;
        height: 80px;
    }

    .contact-section .text-md-end {
        text-align: left !important;
    }
}
