﻿/* ============================================================
   TERMS OF SERVICE PAGE - ADDYBUDDY THEME
   Professional Services Platform
   ============================================================ */

.terms-page {
    padding: 0 0 60px;
    background: linear-gradient(145deg, #f4f9ff 0%, #e8f2fc 100%);
    min-height: 80vh;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Hero Section ────────────────────────────────────────────── */
.terms-hero {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--blue-accent) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 75, 122, 0.15);
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.04);
    transform: rotate(25deg);
    pointer-events: none;
}

.terms-hero-content {
    position: relative;
    z-index: 1;
}

.terms-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fcd34d;
    margin: 0 auto 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.terms-hero-title .text-gradient {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.terms-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.terms-hero-badge i {
    margin-right: 6px;
}

/* ─── Content ──────────────────────────────────────────────────── */
.terms-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(26, 75, 122, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.terms-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 1rem;
}

.terms-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-content ul li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 0.4rem;
}

.terms-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ─── Section Title ───────────────────────────────────────────── */
.terms-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.terms-section-number {
    color: var(--blue-primary);
}

/* ─── Divider ──────────────────────────────────────────────────── */
.terms-divider {
    height: 1px;
    background: #eef3f7;
    margin: 2.5rem 0;
}

/* ─── Summary Box ─────────────────────────────────────────────── */
.terms-summary {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #eef6ff, #dceaf7);
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--blue-primary);
    align-items: flex-start;
}

.terms-summary i {
    font-size: 1.5rem;
    color: var(--blue-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-summary > div {
    flex: 1;
}

.terms-summary > div strong {
    display: block;
    color: var(--blue-deep);
    margin-bottom: 2px;
}

.terms-summary > div p {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
}

/* ─── Table of Contents ───────────────────────────────────────── */
.terms-toc {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 30px;
    border: 1px solid #eef3f7;
}

.terms-toc h3 {
    margin-top: 0;
    color: var(--blue-deep);
    font-size: 1.1rem;
    font-weight: 700;
}

.terms-toc h3 i {
    color: var(--blue-primary);
    margin-right: 8px;
}

.terms-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}

.terms-toc-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-toc-grid ul li {
    margin-bottom: 0.3rem;
}

.terms-toc-grid ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.terms-toc-grid ul li a:hover {
    color: var(--blue-primary);
    text-decoration: underline;
}

/* ─── Definition List ──────────────────────────────────────────── */
.terms-definition-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.terms-definition-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}

.terms-definition-list li:last-child {
    border-bottom: none;
}

.terms-definition-list li strong {
    color: var(--blue-deep);
}

/* ─── Notice Boxes ────────────────────────────────────────────── */
.terms-notice {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 12px;
    margin: 1.5rem 0;
    align-items: flex-start;
}

.terms-notice i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-notice > div {
    flex: 1;
}

.terms-notice > div strong {
    display: block;
    margin-bottom: 4px;
}

.terms-notice > div p {
    margin-bottom: 0;
}

.terms-notice > div ul {
    margin: 0.3rem 0 0 1.2rem;
}

.terms-notice > div ul li {
    margin-bottom: 0.2rem;
}

.terms-notice-danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.terms-notice-danger i {
    color: #dc2626;
}

.terms-notice-danger strong {
    color: #991b1b;
}

.terms-notice-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.terms-notice-warning i {
    color: #d97706;
}

.terms-notice-warning strong {
    color: #92400e;
}

.terms-notice-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #16a34a;
}

.terms-notice-success i {
    color: #16a34a;
}

.terms-notice-success strong {
    color: #16a34a;
}

/* ─── Links ────────────────────────────────────────────────────── */
.terms-link {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--blue-accent);
    text-decoration: underline;
}

.terms-link i {
    font-size: 0.8rem;
    margin-left: 4px;
}

/* ─── Contact Box ─────────────────────────────────────────────── */
.terms-contact-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid #eef3f7;
    margin: 1rem 0;
}

.terms-contact-box > div {
    flex: 1;
}

.terms-contact-box strong {
    color: var(--blue-deep);
    display: block;
    margin-bottom: 4px;
}

.terms-contact-box p {
    margin: 0;
    font-size: 0.9rem;
}

.terms-contact-box a {
    color: var(--blue-primary);
    text-decoration: none;
}

.terms-contact-box a:hover {
    text-decoration: underline;
}

/* ─── Agreement Section ───────────────────────────────────────── */
.terms-agreement {
    border-top: 2px solid #f1f5f9;
    padding-top: 2rem;
    margin-top: 2rem;
}

.terms-agreement-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.terms-agreement-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--blue-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-agreement-check label {
    font-weight: 600;
    color: var(--blue-deep);
    cursor: pointer;
    font-size: 0.95rem;
}

.terms-agreement p {
    margin: 0.5rem 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ─── Legal Links ─────────────────────────────────────────────── */
.terms-legal-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
    text-align: center;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .terms-hero-title {
        font-size: 2.2rem;
    }
    .terms-hero {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 30px 20px;
    }
    .terms-hero-title {
        font-size: 1.8rem;
    }
    .terms-hero-sub {
        font-size: 1rem;
    }
    .terms-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    .terms-content {
        padding: 24px 20px;
    }
    .terms-toc {
        padding: 18px 16px;
    }
    .terms-toc-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .terms-section-title {
        font-size: 1.3rem;
    }
    .terms-notice {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .terms-notice i {
        font-size: 1.3rem;
    }
    .terms-contact-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .terms-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .terms-hero-title {
        font-size: 1.4rem;
    }
    .terms-content {
        padding: 18px 14px;
    }
    .terms-toc-grid ul li a {
        font-size: 0.8rem;
    }
    .terms-section-title {
        font-size: 1.1rem;
    }
    .terms-definition-list li {
        font-size: 0.85rem;
    }
}