/**
 * HisabNiben - Legal Pages Styles (Privacy Policy & Terms)
 */

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
}

.logo-text { color: var(--text-primary); }
.logo-text span { color: var(--primary); }

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.back-link:hover { color: var(--primary); }

/* ========== LEGAL PAGE ========== */
.legal-page {
    padding: 84px 0 40px;
    background: var(--bg-light);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 14px;
    color: var(--text-hint);
}

/* ========== LEGAL CONTENT ========== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-lighter);
}

.legal-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

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

.legal-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* ========== LEGAL NOTE ========== */
.legal-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--primary-lighter);
    border-radius: 10px;
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.legal-note-success {
    background: #D1FAE5;
    color: #065F46;
}

.legal-note i {
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.legal-not-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.legal-not-list li {
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.legal-not-list li::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    width: auto;
    height: auto;
    background: none;
    font-size: 12px;
    color: #10B981;
}

/* ========== THIRD PARTY CARDS ========== */
.third-party-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    margin: 16px 0;
    transition: border-color 0.2s;
}
.third-party-card:hover {
    border-color: var(--primary);
}

.tp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tp-header i {
    font-size: 20px;
}

.tp-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.third-party-card p {
    font-size: 14px;
    margin-bottom: 8px;
}

.third-party-card ul {
    margin: 0 0 10px 0;
}

.third-party-card ul li {
    font-size: 14px;
    padding-left: 20px;
    margin-bottom: 6px;
}

.third-party-card ul li::before {
    width: 6px;
    height: 6px;
}

.tp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
.tp-link:hover {
    color: var(--primary-dark);
}
.tp-link i {
    font-size: 11px;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background: linear-gradient(135deg, #FFF8F5, #FFF);
    border: 1px solid rgba(245,73,39,0.1);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.contact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-card span {
    display: block;
    font-size: 12px;
    color: var(--text-hint);
    margin-bottom: 4px;
}

.contact-card a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}
.contact-card a:hover {
    color: var(--primary);
}

/* ========== FOOTER ========== */
.footer {
    background: #0F172A;
    color: rgba(255,255,255,0.7);
    padding: 24px 0;
}

.footer-bottom {
    text-align: center;
}
.footer-bottom p {
    font-size: 14px;
    margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .legal-header h1 { font-size: 26px; }
    .legal-section { padding: 22px 18px; }
    .legal-section h2 { font-size: 18px; }
    .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 16px; }
    .nav-logo { font-size: 18px; }
    .logo-icon { width: 30px; height: 30px; font-size: 13px; }
    .back-link { font-size: 13px; }
    .legal-page { padding: 74px 0 32px; }
    .legal-header { padding: 24px 16px; }
    .legal-header h1 { font-size: 22px; }
    .legal-section { padding: 18px 14px; border-radius: 12px; }
    .legal-section h2 { font-size: 16px; }
    .legal-section h3 { font-size: 14px; }
    .legal-section p,
    .legal-section ul li { font-size: 14px; }
}
