/* ══════════════════════════════════════════════════
   legal.css — ZSM Digital Legal Pages
   Shared styles for privacy policy, terms, cookie policy, GDPR, modern slavery
   ══════════════════════════════════════════════════ */

.legal-hero {
    padding: 160px 20px 80px;
    text-align: center;
    position: relative;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #999;
}

.breadcrumb span {
    color: #444;
}

.legal-hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    font-style: italic;
}

.legal-hero p {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Legal Content — FAQ-style accordion sections */
.legal-content {
    padding: 60px 20px 120px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.legal-item {
    background: var(--bg-color);
    position: relative;
    cursor: pointer;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.legal-item:hover::after {
    opacity: 1;
}

.legal-item.active {
    background: rgba(10, 10, 11, 1);
}

.legal-trigger {
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.legal-number {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.2);
    margin-right: 40px;
    min-width: 24px;
}

.legal-title {
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-item:hover .legal-title {
    transform: translateX(10px);
}

.legal-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-icon span {
    position: absolute;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-icon span:nth-child(1) {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.legal-icon span:nth-child(2) {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

.legal-item.active .legal-icon {
    transform: rotate(135deg);
}

.legal-body-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    padding: 0 40px 0 95px;
}

.legal-item.active .legal-body-wrap {
    max-height: 600px;
    opacity: 1;
    padding-bottom: 40px;
}

.legal-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
}

.legal-body ul {
    list-style: none;
    margin: 12px 0;
}

.legal-body ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.legal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.legal-body a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.legal-body a:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.legal-body strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Last updated note */
.legal-meta {
    text-align: center;
    margin-top: 60px;
    font-size: 0.8rem;
    color: #444;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* ── Legal Responsive ── */
@media (max-width: 900px) {
    .legal-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .legal-hero {
        padding: 130px 20px 50px;
    }

    .legal-hero h1 {
        font-size: 2rem;
    }

    .legal-trigger {
        padding: 24px;
    }

    .legal-body-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }

    .legal-number {
        display: none;
    }
}
