/* TOS Page Styles */
.tos-main {
    min-height: 100vh;
    background-color: var(--color-black);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
        url('../assets/backgrounds/textured-bg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding-top: 120px;
    position: relative;
}

/* TOS Hero Section */
.tos-hero {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 4rem 0 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.9) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    z-index: 1;
}

.tos-hero {
    -webkit-mask: linear-gradient(to bottom, transparent 0%, black 15%, black 50%, transparent 100%);
    mask: linear-gradient(to bottom, transparent 0%, black 15%, black 50%, transparent 100%);
}

@media (max-width: 768px) {
    .tos-hero {
        -webkit-mask: linear-gradient(to bottom, transparent 0%, black 20%, black 45%, transparent 100%);
        mask: linear-gradient(to bottom, transparent 0%, black 20%, black 45%, transparent 100%);
    }
}

@media (max-width: 480px) {
    .tos-hero {
        -webkit-mask: linear-gradient(to bottom, transparent 0%, black 25%, black 40%, transparent 100%);
        mask: linear-gradient(to bottom, transparent 0%, black 25%, black 40%, transparent 100%);
    }
}

.tos-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tos-title {
    font-family: 'Oxanium', monospace;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.tos-subtitle {
    font-family: 'Oxanium', monospace;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tos-meta {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tos-date {
    font-family: 'Oxanium', monospace;
    font-size: 0.9rem;
    color: var(--color-red);
    background: rgba(255, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* TOS Content */
.tos-content {
    padding: 2rem 0 4rem 0;
    position: relative;
    z-index: 2;
}

.tos-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* TOS Sections */
.tos-sections {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
}

.tos-section {
    margin-bottom: 3rem;
    scroll-margin-top: 160px;
}

.tos-section:last-child {
    margin-bottom: 0;
}

.tos-section-title {
    font-family: 'Oxanium', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.tos-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--color-red);
    border-radius: 2px;
}

.tos-subsection-title {
    font-family: 'Oxanium', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    margin: 1.5rem 0 1rem 0;
    position: relative;
    padding-left: 0.8rem;
}

.tos-subsection-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--color-red);
    border-radius: 2px;
    opacity: 0.8;
}

.tos-section-content {
    font-family: 'Oxanium', monospace;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tos-section-content p {
    margin-bottom: 1.2rem;
}

.tos-section-content p:last-child {
    margin-bottom: 0;
}

.tos-list {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
}

.tos-list li {
    margin-bottom: 0.8rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.tos-list li::marker {
    color: var(--color-red);
}

.tos-list li:last-child {
    margin-bottom: 0;
}

/* TOS Links */
.tos-section-content a {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid transparent;
}

.tos-section-content a:hover {
    color: #ff3333;
    border-bottom-color: var(--color-red);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.tos-section-content a:focus {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Override default focus styles for navbar elements */
.nav-link:focus,
.mobile-nav-link:focus,
.hamburger:focus {
    outline: none;
}

/* Remove default focus styles from all elements except content links */
*:focus:not(.tos-section-content a):not(input):not(textarea):not(select) {
    outline: none;
}

.tos-section-content a:visited {
    color: #cc0000;
}

/* External link icons */
.tos-section-content a[target="_blank"] {
    padding-right: 0.3rem;
    position: relative;
}

.tos-section-content a[target="_blank"]:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--color-red);
    mask: url('../assets/svgs/arrow_diagonal.svg') no-repeat center;
    mask-size: contain;
    -webkit-mask: url('../assets/svgs/arrow_diagonal.svg') no-repeat center;
    -webkit-mask-size: contain;
    margin-left: 0.3rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.tos-section-content a[target="_blank"]:hover:after {
    opacity: 1;
    transform: translateX(2px) translateY(-2px);
    background-color: #ff3333;
}


/* TOS Footer */
.tos-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.tos-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
    opacity: 0.6;
}

.tos-footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tos-footer-text {
    font-family: 'Oxanium', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tos-footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tos-footer-link {
    font-family: 'Oxanium', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tos-footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
    border-radius: 6px 6px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tos-footer-link:hover {
    background: rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.3);
    color: var(--color-white);
    transform: translateX(5px);
    box-shadow: 
        0 4px 16px rgba(255, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tos-footer-link:hover::before {
    opacity: 1;
}

/* Responsive Design - TOS */
@media (max-width: 1400px) {
    .tos-hero-content {
        max-width: 1000px;
    }
}

@media (max-width: 1200px) {
    .tos-hero-content {
        max-width: 900px;
    }
    
    .tos-container {
        max-width: 900px;
    }
    
    .tos-sections {
        padding: 2.5rem;
    }
}

@media (max-width: 992px) {
    .tos-main {
        padding-top: 100px;
    }
    
    .tos-hero-content {
        max-width: 800px;
    }
    
    .tos-container {
        max-width: 800px;
    }
    
    .tos-sections {
        padding: 2rem;
    }
    
    
    .tos-footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tos-main {
        padding-top: 80px;
    }
    
    .tos-hero {
        padding: 3rem 0 6rem 0;
    }
    
    .tos-hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .tos-content {
        padding: 3rem 0;
    }
    
    .tos-container {
        padding: 0 1rem;
    }
    
    .tos-navigation {
        padding: 1.5rem;
    }
    
    .tos-sections {
        padding: 1.5rem;
    }
    
    .tos-section {
        margin-bottom: 2.5rem;
    }
    
    .tos-section-title {
        font-size: 1.2rem;
    }
    
    .tos-section-content {
        font-size: 0.95rem;
    }
    
    .tos-footer {
        padding: 2rem 0;
    }
    
    .tos-footer-content {
        padding: 0 1rem;
    }
    
    .tos-footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .tos-main {
        padding-top: 70px;
    }
    
    .tos-hero {
        padding: 2rem 0 5rem 0;
    }
    
    .tos-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .tos-subtitle {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
    
    .tos-meta {
        gap: 1rem;
        flex-direction: column;
    }
    
    .tos-version,
    .tos-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tos-content {
        padding: 2rem 0;
    }
    
    .tos-container {
        padding: 0 0.5rem;
    }
    
    .tos-navigation {
        padding: 1rem;
    }
    
    .tos-nav-title {
        font-size: 1rem;
    }
    
    
    .tos-sections {
        padding: 1rem;
    }
    
    .tos-section {
        margin-bottom: 2rem;
    }
    
    .tos-section-title {
        font-size: 1.1rem;
        padding-left: 0.8rem;
    }
    
    .tos-section-content {
        font-size: 0.9rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .contact-method h4 {
        font-size: 1rem;
    }
    
    .contact-method p {
        font-size: 0.85rem;
    }
    
    .tos-contact-link {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .tos-footer {
        padding: 1.5rem 0;
    }
    
    .tos-footer-text {
        font-size: 0.9rem;
    }
    
    .tos-footer-link {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .tos-section-content a {
        font-size: 0.9rem;
    }
    
    .tos-section-content a[target="_blank"]:after {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .tos-container {
        padding: 0 0.25rem;
    }
    
    .tos-navigation {
        padding: 0.8rem;
    }
    
    .tos-sections {
        padding: 0.8rem;
    }
    
    .tos-section-title {
        font-size: 1rem;
        padding-left: 0.6rem;
    }
    
    .tos-section-content {
        font-size: 0.85rem;
    }
    
    .contact-method {
        padding: 0.8rem;
    }
    
    .contact-method h4 {
        font-size: 0.9rem;
    }
    
    .contact-method p {
        font-size: 0.8rem;
    }
    
    .tos-contact-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tos-section-content a {
        font-size: 0.85rem;
    }
    
    .tos-section-content a[target="_blank"]:after {
        width: 12px;
        height: 12px;
    }
}
