/* ========================================
   Terms of Service Page Styles
   ======================================== */

/* Terms Section */
.terms-section {
    padding: 140px 0 80px;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.page-title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.page-subtitle {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Terms Content */
.terms-content {
    max-width: 1000px;
    margin: 0 auto;
}

.terms-section-item {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(255, 0, 255, 0.05));
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(199, 0, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.terms-section-item:nth-child(1) { animation-delay: 0.1s; }
.terms-section-item:nth-child(2) { animation-delay: 0.2s; }
.terms-section-item:nth-child(3) { animation-delay: 0.3s; }
.terms-section-item:nth-child(4) { animation-delay: 0.4s; }
.terms-section-item:nth-child(5) { animation-delay: 0.5s; }
.terms-section-item:nth-child(6) { animation-delay: 0.6s; }
.terms-section-item:nth-child(7) { animation-delay: 0.7s; }
.terms-section-item:nth-child(8) { animation-delay: 0.8s; }

.terms-section-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    box-shadow: 
        0 12px 40px rgba(255, 0, 255, 0.25),
        0 0 30px rgba(199, 0, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Section Number */
.section-number {
    position: absolute;
    top: -20px;
    left: 40px;
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.subsection-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-pink);
    margin: 25px 0 15px;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.section-content {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.section-content > p {
    margin-bottom: 25px;
}

/* Terms List */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.terms-list li {
    padding: 15px 0 15px 40px;
    position: relative;
    border-bottom: 1px solid rgba(255, 0, 255, 0.1);
    transition: all 0.3s ease;
}

.terms-list li:last-child {
    border-bottom: none;
}

.terms-list li:hover {
    padding-left: 50px;
    color: var(--primary-cyan);
}

.terms-list li::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 15px;
    color: var(--primary-pink);
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.terms-list li:hover::before {
    transform: translateX(5px) scale(1.2);
    color: var(--primary-cyan);
}

/* Highlight Boxes */
.highlight-box,
.warning-box,
.info-box,
.refund-link-box,
.law-box {
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(138, 43, 226, 0.08));
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.highlight-box:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.08), rgba(255, 69, 0, 0.08));
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.warning-box:hover {
    border-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.2);
}

.info-box {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08), rgba(255, 0, 255, 0.08));
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.info-box:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
}

.refund-link-box {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(199, 0, 255, 0.1));
    border: 1px solid rgba(255, 0, 255, 0.3);
    flex-direction: column;
    align-items: stretch;
}

.refund-link-box:hover {
    border-color: var(--primary-pink);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.3);
}

.law-box {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(138, 43, 226, 0.08));
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.law-box:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.highlight-box i,
.warning-box i,
.info-box i,
.refund-link-box i,
.law-box i {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 5px;
}

.highlight-box i { color: var(--primary-cyan); }
.warning-box i { color: #FFA500; }
.info-box i { color: var(--primary-purple); }
.refund-link-box i { color: var(--primary-pink); }
.law-box i { color: var(--primary-cyan); }

.highlight-box h4,
.warning-box h4,
.info-box h4,
.refund-link-box h4,
.law-box h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.highlight-box h4 { color: var(--primary-cyan); }
.warning-box h4 { color: #FFA500; }
.info-box h4 { color: var(--primary-purple); }
.refund-link-box h4 { color: var(--primary-pink); }
.law-box h4 { color: var(--primary-cyan); }

.highlight-box p,
.warning-box p,
.info-box p,
.refund-link-box p,
.law-box p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px 0;
}

.refund-link-box .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: 10px;
}

/* Shipping Grid */
.shipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.shipping-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(199, 0, 255, 0.1));
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.shipping-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-pink);
    box-shadow: 0 12px 40px rgba(255, 0, 255, 0.3);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(199, 0, 255, 0.15));
}

.shipping-card i {
    font-size: 48px;
    color: var(--primary-cyan);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.shipping-card:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px var(--primary-cyan));
}

.shipping-card h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    color: var(--primary-pink);
    margin-bottom: 10px;
    font-weight: 700;
}

.shipping-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Liability Grid */
.liability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.liability-item {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.05), rgba(138, 43, 226, 0.05));
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.liability-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-pink);
    box-shadow: 0 12px 40px rgba(255, 0, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(138, 43, 226, 0.1));
}

.liability-item i {
    font-size: 40px;
    color: var(--primary-pink);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.liability-item:hover i {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 0 20px var(--primary-pink));
}

.liability-item h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    color: var(--primary-cyan);
    margin-bottom: 10px;
    font-weight: 700;
}

.liability-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: var(--primary-pink);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.2);
}

.contact-method i {
    font-size: 28px;
    color: var(--primary-cyan);
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-method h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--primary-pink);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-method a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-method a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-cyan);
}

/* Related Links */
.related-links {
    max-width: 1000px;
    margin: 60px auto 40px;
    text-align: center;
}

.related-links h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.link-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    padding: 30px 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.link-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-pink);
    box-shadow: 0 15px 50px rgba(255, 0, 255, 0.3);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(255, 0, 255, 0.15));
}

.link-card i {
    font-size: 48px;
    color: var(--primary-cyan);
    transition: all 0.3s ease;
}

.link-card:hover i {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 25px var(--primary-cyan));
}

.link-card h4 {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--primary-pink);
    margin: 0;
    font-weight: 700;
}

.link-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
}

/* Back to Top */
.back-to-top {
    text-align: center;
    margin-top: 50px;
    animation: fadeIn 1s ease-out 1s backwards;
}

.back-to-top .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 16px;
}

.back-to-top .btn-primary i {
    font-size: 18px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */

/* Tablets */
@media (max-width: 1024px) {
    .terms-section {
        padding: 120px 0 60px;
    }

    .terms-section-item {
        padding: 40px 35px;
    }

    .section-number {
        font-size: 40px;
        left: 30px;
    }

    .shipping-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .liability-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .terms-section {
        padding: 100px 0 50px;
    }

    .page-header {
        margin-bottom: 40px;
    }

    .terms-section-item {
        padding: 35px 25px;
        margin-bottom: 20px;
    }

    .section-number {
        font-size: 32px;
        left: 20px;
        top: -15px;
    }

    .section-title {
        font-size: 24px;
    }

    .subsection-title {
        font-size: 16px;
    }

    .section-content {
        font-size: 15px;
    }

    .shipping-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .shipping-card {
        padding: 25px 20px;
    }

    .liability-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .liability-item {
        padding: 25px 20px;
    }

    .highlight-box,
    .warning-box,
    .info-box,
    .refund-link-box,
    .law-box {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .highlight-box i,
    .warning-box i,
    .info-box i,
    .refund-link-box i,
    .law-box i {
        font-size: 28px;
    }

    .contact-methods {
        gap: 15px;
    }

    .contact-method {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .contact-method:hover {
        transform: translateX(0);
        transform: translateY(-5px);
    }

    .terms-list li {
        padding: 12px 0 12px 35px;
    }

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

    .links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .back-to-top {
        margin-top: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .terms-section-item {
        padding: 30px 20px;
    }

    .section-number {
        font-size: 28px;
        left: 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-content {
        font-size: 14px;
    }

    .highlight-box h4,
    .warning-box h4,
    .info-box h4,
    .refund-link-box h4,
    .law-box h4 {
        font-size: 16px;
    }

    .highlight-box p,
    .warning-box p,
    .info-box p,
    .refund-link-box p,
    .law-box p {
        font-size: 14px;
    }

    .shipping-card i,
    .liability-item i,
    .link-card i {
        font-size: 40px;
    }

    .shipping-card h4,
    .liability-item h4,
    .link-card h4 {
        font-size: 16px;
    }

    .shipping-card p,
    .liability-item p,
    .link-card p {
        font-size: 13px;
    }

    .contact-method i {
        font-size: 24px;
    }

    .contact-method h4 {
        font-size: 15px;
    }

    .contact-method a {
        font-size: 14px;
    }

    .back-to-top .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }
}
