/* --- Terms of Service Premium Redesign --- */

.terms-hero {
    background: radial-gradient(circle at top center, rgba(255, 122, 24, 0.15), transparent 40%), linear-gradient(135deg, #0B1220 0%, #111827 100%);
    padding: 160px 20px 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 32px;
    position: relative;
}

.terms-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 122, 26, 0.15);
    /* Soft orange glow */
    z-index: -1;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    font-weight: 400;
}

.legal-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-body-container {
    background: #f8fafc;
    /* Subtle background for body */
    padding-bottom: 120px;
    position: relative;
}

.terms-content-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-top: -60px;
    /* Overlap effect */
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.terms-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 16px;
}

.terms-intro-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 40px;
}

.terms-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 40px 0 60px;
}

.terms-section {
    margin-bottom: 60px;
}

.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.terms-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-top: 32px;
    margin-bottom: 16px;
}

.terms-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 16px;
}

.terms-section ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.terms-section li {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 8px;
    position: relative;
    list-style: none;
}

.terms-section li::before {
    content: "•";
    color: var(--primary-orange);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* --- Premium Contact & Social Section --- */
.contact-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    margin-top: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-row:hover {
    background: #f8fafc;
}

.contact-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-row:hover .contact-icon-btn {
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(253, 128, 46, 0.15);
}

.contact-text {
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
}

.social-connect {
    border-top: 1px solid #f1f5f9;
    padding-top: 32px;
}

.social-connect h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.social-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #475569;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-btn:hover:not(.disabled) {
    transform: scale(1.15);
    color: var(--primary-orange);
    box-shadow: 0 10px 25px rgba(253, 128, 46, 0.2);
}

.social-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 140px 20px 80px;
    }

    .legal-title {
        font-size: 2rem;
    }

    .terms-content-card {
        padding: 40px 24px;
        margin-top: -40px;
        border-radius: 16px;
    }

    .terms-section h2 {
        font-size: 1.25rem;
    }
}

/* --- Animation Utilities --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 0.8s ease-out forwards;
}