/**
 * Legal Pages Styles - Mobile
 * Extends mobile.css
 */

/* === UTILITIES & COMPONENTS === */
.glass-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pt-safe-top {
    padding-top: max(12px, env(safe-area-inset-top));
}

/* === TYPOGRAPHY === */
.text-2xl {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--pm-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.text-xl { font-size: 1.1rem; font-weight: 700; }

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.text-lg { font-size: 1rem; margin-bottom: 1rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.leading-relaxed { line-height: 1.65; }
.text-center { text-align: center; }

/* === COLORS === */
.text-gray-800, .text-gray-900, .dark\:text-gray-100 { color: var(--pm-text-primary) !important; }
.text-gray-600, .text-gray-700, .dark\:text-gray-300 { color: var(--pm-text-secondary) !important; }
.text-gray-500, .dark\:text-gray-400 { color: var(--pm-text-muted) !important; }

.text-blue-600 { color: #38bdf8 !important; }
.text-red-600 { color: #f87171 !important; }
.text-purple-600 { color: #c084fc !important; }
.text-green-600 { color: #4ade80 !important; }
.text-orange-600 { color: #fb923c !important; }

/* === LAYOUT & SPACING === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

.block { display: block; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.mt-1 { margin-top: 4px; }
.mr-2 { margin-right: 8px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-8 > * + * { margin-top: 32px; }

.grid { display: grid; gap: 16px; }
.md\:grid-cols-2 { grid-template-columns: 1fr; } /* Mobile first: 1 col */
.md\:grid-cols-3 { grid-template-columns: 1fr; } /* Mobile first: 1 col */

/* === COMPONENTS === */

/* Cards/Containers */
.bg-gray-50, .bg-white, .dark\:bg-gray-800 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.bg-gray-50:active {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(0.99);
}

.bg-blue-50, .dark\:bg-blue-900\/20 {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.bg-green-50, .dark\:bg-green-900\/20 {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.bg-orange-50, .dark\:bg-orange-900\/20 {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 12px;
    padding: 16px;
}

/* Icons Containers */
.w-12 { width: 48px; }
.h-12 { height: 48px; }

.bg-blue-100 { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.bg-red-100 { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.bg-purple-100 { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.bg-green-100 { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 32px 0;
    width: 100%;
}

/* Lists */
.list-disc {
    list-style-type: disc;
    padding-left: 20px;
}
.list-disc li {
    padding-left: 4px;
    margin-bottom: 8px;
}

/* Tables */
.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

.table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    color: var(--pm-text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.table td {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--pm-text-secondary);
}

.table-zebra tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

/* Buttons */
.btn {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 9999px; /* Capsule */
    font-weight: 600;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.btn-primary {
    background: var(--pm-primary);
    color: white;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.btn-warning {
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.5);
    background: rgba(251, 146, 60, 0.1);
}

.btn-success {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.hover\:underline:hover { text-decoration: underline; }

/* Sections Animation */
.legal-content section {
    animation: fade-in-up 0.5s ease-out backwards;
}

.legal-content section:nth-child(1) { animation-delay: 0.0s; }
.legal-content section:nth-child(2) { animation-delay: 0.1s; }
.legal-content section:nth-child(3) { animation-delay: 0.2s; }
.legal-content section:nth-child(4) { animation-delay: 0.3s; }
.legal-content section:nth-child(5) { animation-delay: 0.4s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
