body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #f7f7f7, #ffffff);
    text-align: center;
    padding: 50px;
    background: #1B1B1F;
    padding-top: 50px;
}

.container, .legal-content{
    margin: auto;
    margin-bottom: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color:white;
    padding: 30px;
}

.icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    transform: translate(-15%, 35%);
}

.legal-content{
    max-width: 800px;
    text-align: left;
}
.legal-content h2, .legal-content h3, .legal-content-date{
    text-align: center;
}

.container {
    max-width: 500px;
    background: #26262C;
    border-radius: 10px;
    margin-top: 50px;
}
.csrf-token {
    display: none;
}
.toggle-container{
    margin-top: 10px;
    padding-bottom: 0;
    margin-bottom: 0;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3.5px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #6A0DAD;
}

input:checked+.slider:before {
    transform: translateX(24px);
}
.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq{
    text-align: left;
}
.faq h3{
    text-decoration: underline;
}

.highlight {
    background: #6A0DAD;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: bold;
}
.search-box {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.error{
    color: red;
}
.email-input{
    width: 65%;
}
input {
    background-color: #1B1B1F;
    color: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-btn {
    background: #6A0DAD;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
}
a{
    color:#967bb6;
}
/*nav bar*/

.navbar {
    color: white;
    background: #26262C;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.nav-links, .navbar .logo {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}


.nav-links a, .navbar .logo a, .link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 3px 5px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: #1B1B1F;
}

body {
    padding-top: 70px;
}
/* Footer styling */
.footer {
    text-align: center;
    padding: 20px;
    color: white;
    flex-shrink: 0;
    position: relative;
    bottom: auto;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

.announcement-bar {
    width: 100%;
    background-color: #6A0DAD;
    color: white;
    text-align: center;
    padding: 10px 20px;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.announcement-text {
    margin: 0;
}

@media (max-width: 768px) {
    h1,
    h2 {
        font-size: 24px
    }

    .navbar a, .footer a {
        width: 15%;
    }
    .footer{
        width: 60%;
    }

    .navbar .logo {
        display: none;
    }

    .navbar a, .footer a {
        font-size: 15px;
    }
    .announcement-bar{
        top:5vh;
    }

}

.scroll-hint {
    margin-top: 30px;
    text-align: center;
    color: white;
    font-size: 14px;
    animation: fadeIn 2s ease-in-out;
}

.arrow-down {
    width: 24px;
    height: 24px;
    border-right: 3px solid #6A0DAD;
    border-bottom: 3px solid #6A0DAD;
    transform: rotate(45deg);
    margin: 10px auto 0;
}

@keyframes bounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(6px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.faq-container {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    visibility: hidden;
}

.faq-container.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.animated-form {
    animation: fadeInSlideUp 1s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-form:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-input:focus {
    outline: none;
    border-color: #6A0DAD;
    box-shadow: 0 0 5px #6A0DADAA;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #7d29d2;
    transform: scale(1.03);
    transition: 0.2s ease-in-out;
}
/* Back to history link */
.back-to-history {
    display: inline-block;
    margin-top: 10px;
    color: #9b59b6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-to-history:hover {
    color: #8e44ad;
    text-decoration: underline;
}

/* Error message styling */
.error-message {
    background: rgba(255, 70, 70, 0.1);
    border-left: 4px solid #ff4646;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
}

.error-message h3 {
    color: #ff4646;
    margin-top: 0;
}

.error-message a {
    color: #9b59b6;
    text-decoration: underline;
}

.search-type-toggle{
    padding-top: 10px;
}

.search-type-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.search-type-toggle label {
    cursor: pointer;
    padding: 4px 10px;
    font-weight: 500;
}

.search-type-toggle input[type="radio"]:checked+label {
    border-bottom: 3px solid #7d29d2;
    text-shadow: 1px 1px 6px #6A0DAD
}

.search-type-toggle input[type="radio"]:focus+label {
    outline-offset: 2px;
}