/* ============================================================
   Faida360 - Legal Pages Stylesheet (terms + privacy)
   Imports landing.css for shared nav/footer styles
============================================================ */
@import url('landing.css');

/* ============================================================
   LEGAL HERO
============================================================ */
.legal-hero {
    position: relative;
    height: 320px;
    background-image: url('https://images.unsplash.com/photo-1589578228447-e1a4e481c6c8?w=1600&q=80');
    background-size: cover;
    background-position: center 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.legal-hero-privacy {
    background-image: url('https://images.unsplash.com/photo-1560472354-b33ff0c44a43?w=1600&q=80');
    background-position: center 60%;
}

.legal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,17,23,0.80) 0%, rgba(13,17,23,0.60) 100%);
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 60px;
}

.legal-hero-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    margin-top: 8px;
    font-style: italic;
}

/* ============================================================
   LEGAL LAYOUT - sidebar + body
============================================================ */
.legal-wrap {
    background: #f9fafb;
    padding: 56px 0 80px;
    min-height: 60vh;
}

.legal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================================
   TABLE OF CONTENTS SIDEBAR
============================================================ */
.legal-toc {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.legal-toc::-webkit-scrollbar { width: 3px; }
.legal-toc::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.toc-link {
    display: block;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 6px;
    margin-bottom: 2px;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    text-decoration: none;
}
.toc-link:hover {
    color: var(--green);
    background: var(--green-light);
    border-left-color: var(--green);
}
.toc-link.active {
    color: var(--green);
    background: var(--green-light);
    border-left-color: var(--green);
    font-weight: 600;
}

/* ============================================================
   LEGAL BODY
============================================================ */
.legal-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 48px 52px;
}

.legal-body section {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid #f1f5f9;
}
.legal-body section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green-light);
    letter-spacing: -0.3px;
}

.legal-body h3 {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 10px;
}

.legal-body p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 14px;
}
.legal-body p:last-child { margin-bottom: 0; }

.legal-body ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 14px;
}
.legal-body ul li {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.7;
    padding: 4px 0 4px 22px;
    position: relative;
}
.legal-body ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.legal-body a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}
.legal-body a:hover { text-decoration: underline; }

/* ============================================================
   INTRO BOX
============================================================ */
.legal-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 36px;
    font-size: 0.875rem;
    color: #0369a1;
    line-height: 1.6;
}
.legal-intro-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
    color: #0284c7;
}

/* ============================================================
   HIGHLIGHT / WARNING BOXES
============================================================ */
.legal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--green-light);
    border: 1px solid rgba(26,122,74,0.2);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 0.875rem;
    color: var(--green-dark);
    line-height: 1.6;
}
.legal-highlight i {
    color: var(--green);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8ec;
    border: 1px solid rgba(245,166,35,0.3);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.6;
}
.legal-warning i {
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   CONTACT BLOCK
============================================================ */
.legal-contact-block {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.legal-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text);
}
.legal-contact-item i {
    color: var(--green);
    font-size: 1rem;
    width: 18px;
    flex-shrink: 0;
}
.legal-contact-item a { color: var(--green); font-weight: 600; }
.legal-contact-item a:hover { text-decoration: underline; }

/* ============================================================
   RIGHTS GRID (privacy page)
============================================================ */
.rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}
.rights-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: all 0.2s;
}
.rights-item:hover {
    border-color: var(--green);
    background: var(--green-light);
}
.rights-item > i {
    color: var(--green);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.rights-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 4px;
}
.rights-item p {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
============================================================ */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9990;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: all 0.25s ease;
    text-decoration: none;
}
.wa-float:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.wa-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Pulse ring animation */
.wa-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: waPulse 2.2s ease-out infinite;
    z-index: -1;
}
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.wa-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: var(--dark);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.2s ease;
    pointer-events: none;
}
.wa-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--dark);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991px) {
    .legal-container { grid-template-columns: 1fr; }
    .legal-toc { position: static; max-height: none; }
}

@media (max-width: 767px) {
    .legal-body { padding: 28px 22px; }
    .legal-container { padding: 0 16px; }
    .rights-grid { grid-template-columns: 1fr; }
    .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.4rem; }
}
