/* ============================================================
   NJARIN AI - Legal Pages Design System
   ============================================================ */

:root {
    --legal-primary: #8B4513;
    --legal-bg: #F4ECE2;
    --legal-card: rgba(255, 255, 255, 0.7);
    --legal-text: #3E2723;
    --legal-text-dim: #5D4037;
    --legal-line: rgba(139, 69, 19, 0.1);
    --legal-blur: blur(15px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--legal-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10l10 10M10 20l10-10M30 10l10 10M30 20l10-10M50 10l10 10M50 20l10-10M70 10l10 10M70 20l10-10M90 10l10 10M90 20l10-10M10 30l10 10M10 40l10-10M30 30l10 10M30 40l10-10M50 30l10 10M50 40l10-10M70 30l10 10M70 40l10-10M90 30l10 10M90 40l10-10M10 50l10 10M10 60l10-10M30 50l10 10M30 60l10-10M50 50l10 10M50 60l10-10M70 50l10 10M70 60l10-10M90 50l10 10M90 60l10-10M10 70l10 10M10 80l10-10M30 70l10 10M30 80l10-10M50 70l10 10M50 80l10-10M70 70l10 10M70 80l10-10M90 70l10 10M90 80l10-10M10 90l10 10M10 100l10-10M30 90l10 10M30 100l10-10M50 90l10 10M50 100l10-10M70 90l10 10M70 100l10-10M90 90l10 10M90 100l10-10' stroke='%238B4513' stroke-width='0.4' fill='none' opacity='0.08'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--legal-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(244, 236, 226, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--legal-line);
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; color: var(--legal-primary);
    text-decoration: none;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 4px;
    background: transparent; z-index: 1001;
}
.progress-bar {
    height: 100%; background: var(--legal-primary);
    width: 0%;
}

/* Main Container */
.legal-wrapper {
    max-width: 900px;
    margin: 120px auto 100px;
    padding: 0 20px;
}

.legal-hero {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 0.8s ease-out;
}

.legal-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--legal-primary);
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.legal-hero p {
    font-size: 1.1rem;
    opacity: 0.6;
}

/* Content Sections */
.legal-card {
    background: var(--legal-card);
    backdrop-filter: var(--legal-blur);
    -webkit-backdrop-filter: var(--legal-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(62, 39, 35, 0.05);
}

.legal-section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.legal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon {
    width: 44px;
    height: 44px;
    background: var(--legal-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--legal-text);
}

.legal-text {
    font-size: 1.05rem;
    color: var(--legal-text-dim);
    margin-left: 59px;
}

.legal-text p { margin-bottom: 20px; }

.legal-text ul {
    list-style: none;
    margin-bottom: 25px;
}

.legal-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.legal-text li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--legal-primary);
    font-weight: 800;
}

/* Footer Legal */
.legal-footer {
    border-top: 1px solid var(--legal-line);
    margin-top: 80px;
    padding-top: 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--legal-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-col a { color: var(--legal-text-dim); text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--legal-primary); }

.footer-copyright {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--legal-line);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .legal-card { padding: 30px 20px; }
    .legal-text { margin-left: 0; margin-top: 15px; }
    .legal-footer { grid-template-columns: 1fr; gap: 30px; }
}
