/* ================================================================
   LATERPRO - PRODUCTION LEGAL, ABOUT & CONTACT STYLES
   ================================================================ */

:root {
    --bg-main: #060913;
    --bg-surface: #0a101f;
    --bg-card: rgba(13, 20, 36, 0.78);
    --bg-card-hover: rgba(18, 28, 50, 0.9);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(9, 14, 26, 0.9);
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.14);
    --primary-glow: rgba(16, 185, 129, 0.35);
    --accent: #3b82f6;
    --accent-light: rgba(59, 130, 246, 0.14);
    --danger: #f43f5e;
    --warning: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-glass: 0 20px 45px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 8%, rgba(16, 185, 129, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 90% 92%, rgba(59, 130, 246, 0.09) 0%, transparent 48%),
        radial-gradient(circle at 50% 35%, rgba(13, 20, 36, 0.75) 0%, transparent 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: #34d399;
}

/* ========================================== */
/* TOP NAVIGATION BAR                         */
/* ========================================== */
.legal-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--bg-card-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.navbar-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.brand-icon img {
    width: 26px;
    height: 26px;
}
.brand-text h2 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.brand-badge {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.brand-text p {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}
.nav-link {
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-portal {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition);
}
.btn-portal:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ========================================== */
/* HERO SECTION                               */
/* ========================================== */
.legal-hero {
    padding: 56px 24px 44px;
    text-align: center;
    position: relative;
}
.hero-container {
    max-width: 860px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
}
.legal-hero h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.25;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.legal-hero p.subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 20px;
    line-height: 1.6;
}
.hero-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 12.5px;
    color: var(--text-dim);
    flex-wrap: wrap;
}
.hero-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-meta-row i {
    color: var(--primary);
}

/* ========================================== */
/* LEGAL CONTENT LAYOUT (2-COLUMN)            */
/* ========================================== */
.legal-main-container {
    max-width: 1240px;
    margin: 0 auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

/* Sticky Sidebar Table of Contents */
.legal-sidebar {
    position: sticky;
    top: 96px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-glass);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.sidebar-heading {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-heading i {
    color: var(--primary);
}
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.toc-item a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    border-left: 2px solid transparent;
}
.toc-item a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}
.toc-item.active a {
    color: var(--primary);
    background: var(--primary-light);
    border-left-color: var(--primary);
}

/* Legal Body */
.legal-content-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-glass);
}
.legal-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}
.legal-section:last-child {
    margin-bottom: 0;
}
.legal-section h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-card-border);
}
.section-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 9px;
    border-radius: 6px;
}
.legal-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: #e2e8f0;
}
.legal-section p {
    font-size: 14.5px;
    color: #cbd5e1;
    margin-bottom: 14px;
    line-height: 1.7;
}
.legal-list {
    margin: 14px 0 18px 24px;
    color: #cbd5e1;
}
.legal-list li {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.legal-list li strong {
    color: #ffffff;
}

/* Callout Alerts */
.legal-callout {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.6;
}
.legal-callout i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}
.legal-callout.note {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}
.legal-callout.note i { color: var(--accent); }
.legal-callout.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
}
.legal-callout.warning i { color: var(--warning); }
.legal-callout.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}
.legal-callout.success i { color: var(--primary); }

/* Legal Table */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-card-border);
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}
.legal-table th {
    background: rgba(15, 23, 42, 0.85);
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--bg-card-border);
}
.legal-table td {
    padding: 12px 16px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.legal-table tr:last-child td {
    border-bottom: none;
}

/* ========================================== */
/* ABOUT US PAGE STYLES                       */
/* ========================================== */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 36px 0 50px;
}
.about-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}
.about-stat-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}
.about-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.about-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
}
.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}
.feature-box:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}
.feature-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}
.feature-box p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Architecture Flow Card */
.arch-card {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 20, 36, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    margin: 40px 0;
}
.arch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
    position: relative;
}
.arch-step {
    background: rgba(6, 10, 20, 0.7);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
}
.arch-step-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.arch-step h4 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}
.arch-step p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================== */
/* CONTACT US PAGE STYLES                     */
/* ========================================== */
.contact-container {
    max-width: 1240px;
    margin: 0 auto 60px;
    padding: 0 24px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 36px;
}
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-glass);
}
.contact-info-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}
.contact-info-card p.desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}
.contact-channel-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.channel-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}
.channel-info p {
    font-size: 13px;
    color: var(--text-muted);
}
.channel-info a {
    color: var(--primary);
    font-weight: 600;
}

.support-sla-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 12.5px;
    color: #a7f3d0;
    line-height: 1.5;
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-glass);
}
.contact-form-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}
.contact-form-card p.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-group label span.req {
    color: var(--danger);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 13.5px;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
    background: rgba(12, 19, 36, 0.98);
}
.form-group select option {
    background: #090e1a;
    color: white;
}
.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit-contact {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition);
    width: 100%;
}
.btn-submit-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}
.btn-submit-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* FAQ Accordion */
.faq-section {
    margin-top: 60px;
}
.faq-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}
.faq-section p.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 36px;
}
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.faq-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}
.faq-header {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}
.faq-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}
.faq-header i {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.faq-body {
    padding: 0 22px 18px;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.65;
    display: none;
}
.faq-card.open .faq-body {
    display: block;
    animation: fadeIn 0.25s ease;
}
.faq-card.open .faq-header i {
    transform: rotate(180deg);
    color: var(--primary);
}

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

/* ========================================== */
/* ENTERPRISE FOOTER                          */
/* ========================================== */
.legal-footer {
    background: #04070e;
    border-top: 1px solid var(--bg-card-border);
    padding: 60px 24px 30px;
    margin-top: 80px;
}
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}
.footer-brand h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}
.footer-brand p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 380px;
}
.compliance-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.c-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bg-card-border);
    padding: 4px 10px;
    border-radius: 6px;
}
.c-badge i {
    color: var(--primary);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: white;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-bottom-bar {
    padding-top: 24px;
    border-top: 1px solid var(--bg-card-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}
.trademark-disclaimer {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 980px;
    margin: 0 auto;
}

/* ========================================== */
/* RESPONSIVE BREAKPOINTS                     */
/* ========================================== */
@media (max-width: 1024px) {
    .legal-main-container {
        grid-template-columns: 1fr;
    }
    .legal-sidebar {
        display: none; /* Hide sidebar table of contents on mobile/tablet */
    }
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid-3 {
        grid-template-columns: 1fr;
    }
    .arch-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: inline-flex;
    }
    .legal-hero h1 {
        font-size: 28px;
    }
    .legal-content-card {
        padding: 24px 18px;
    }
    .contact-form-card {
        padding: 24px 18px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .arch-grid {
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
