/* ============================================
   TERMS OF SERVICE PAGE - COMPLETE STYLING
   db-portfolio WordPress Theme
   File: /assets/css/terms.css
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #f97316 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* ============================================
   CONTAINERS
============================================ */
.terms-hero-container,
.terms-container {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

/* ============================================
   HERO SECTION
============================================ */
.terms-hero {
    min-height: 60vh;
    background: linear-gradient(180deg, #ffffff 0%, #fef3f2 30%, #fff7ed 60%, #fef3f2 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.terms-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: terms-float 25s ease-in-out infinite;
    z-index: 0;
}

.terms-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: terms-float 20s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes terms-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.terms-hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    animation: terms-fadeInUp 1s ease 0.2s both;
}

@keyframes terms-fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-radius: 50%;
    animation: terms-pulse-dot 2s ease-in-out infinite;
}

@keyframes terms-pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
        transform: scale(1.1);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 2rem;
    animation: terms-fadeInUp 1s ease 0.3s both;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto 2rem;
    line-height: 1.85;
    animation: terms-fadeInUp 1s ease 0.4s both;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: terms-fadeInUp 1s ease 0.5s both;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    color: #334155;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.meta-icon {
    font-size: 1.3rem;
}

.meta-number {
    color: #1e40af;
    font-weight: 700;
}

/* ============================================
   CONTENT SECTION
============================================ */
.terms-content-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   TABLE OF CONTENTS
============================================ */
.terms-toc-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 2px solid #f1f5f9;
}

.terms-toc__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terms-toc__title-icon {
    font-size: 2rem;
}

.terms-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.terms-toc__item {
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.terms-toc__item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    transform: translateX(5px);
}

.terms-toc__link {
    color: #475569;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.3rem;
    transition: color 0.3s ease;
}

.terms-toc__item:hover .terms-toc__link {
    color: #1e40af;
}

.toc-arrow {
    color: #3b82f6;
    font-weight: bold;
}

/* ============================================
   SECTION CARDS
============================================ */
.terms-section-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 2px solid #f1f5f9;
    scroll-margin-top: 100px;
}

.terms-section__title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%) 1;
}

.terms-section__number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.terms-section__content {
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

.terms-section__content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.terms-section__content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 3px;
}

.terms-section__content p {
    margin-bottom: 1.5rem;
}

.terms-section__content ul,
.terms-section__content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.terms-section__content li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.terms-section__content strong {
    color: #1e293b;
    font-weight: 700;
}

.terms-section__content a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-section__content a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ============================================
   HIGHLIGHT BOXES
============================================ */
.terms-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.terms-highlight__title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.terms-highlight__content {
    color: #78350f;
    line-height: 1.8;
}

.terms-highlight__content p {
    margin-bottom: 1rem;
}

.terms-highlight__content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   JURISDICTION CARD (RED — Section 15)
============================================ */
.terms-jurisdiction-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    border: 3px solid #ef4444;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.terms-jurisdiction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
}

.terms-jurisdiction__title {
    font-size: 2rem;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terms-jurisdiction__content {
    color: #7f1d1d;
    line-height: 1.8;
    font-size: 1.05rem;
}

.terms-jurisdiction__content p {
    margin-bottom: 1.5rem;
}

.terms-jurisdiction__content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.terms-jurisdiction__content li {
    margin-bottom: 0.8rem;
}

.terms-jurisdiction__content strong {
    color: #991b1b;
    font-weight: 700;
}

/* ============================================
   CONTACT CTA
============================================ */
.terms-contact-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    margin-top: 4rem;
    border: 2px solid #bfdbfe;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.terms-contact__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.terms-contact__title .gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-contact__text {
    color: #475569;
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.terms-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.terms-contact__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    color: white !important;
    text-decoration: none !important;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .terms-hero {
        padding: 4rem 0 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-meta {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    .terms-toc-card,
    .terms-section-card,
    .terms-jurisdiction-card {
        padding: 2rem 1.5rem;
    }

    .terms-section__title {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .terms-section__number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .terms-toc__list {
        grid-template-columns: 1fr;
    }

    .terms-contact-cta {
        padding: 3rem 2rem;
    }

    .terms-contact__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .terms-toc-card,
    .terms-section-card {
        padding: 1.5rem 1.2rem;
    }
}
/* ── COMPREHENSIVE MOBILE RESPONSIVE ADDITIONS ── */
@media (max-width: 480px) {
    .hero-title    { font-size: 1.7rem; line-height: 1.3; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-meta     { flex-direction: column; align-items: center; gap: 0.75rem; }
    .terms-hero    { padding: 3rem 0 2rem; min-height: auto; }
    .terms-toc-card,
    .terms-section-card { padding: 1.2rem 1rem; border-radius: 16px; }
    .terms-section__title { font-size: 1.2rem; }
    .terms-contact-cta   { padding: 2.5rem 1.2rem; border-radius: 20px; }
    .terms-contact__title { font-size: 1.4rem; }
    .terms-contact__btn  { padding: 1rem 2rem; font-size: 1rem; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.4rem; }
}
