/* 
    Premium Legal Portal Styling
    Design Language: Glassmorphism-inspired, Modern, Accessible
*/

:root {
    --primary-bg: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --header-bg: rgba(30, 41, 59, 0.95);
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-red: #dc2626;
    --accent-blue: #2563eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

.section {
    scroll-margin-top: 100px; /* Offset for fixed 80px header + 20px breathing room */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--primary-bg);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px; /* Space for header */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.header-logo img {
    height: 32px;
    width: auto;
}

.header-logo span {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 99px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

nav a.active {
    background: white;
    color: var(--text-main);
}

nav a.danger {
    color: #fca5a5;
}

nav a.danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
}

/* Layout Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Card Styling */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    margin-bottom: 40px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

li {
    margin-bottom: 0.5rem;
}

/* Table of Contents */
.toc-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

.toc-box h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.toc-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .toc-list {
        grid-template-columns: 1fr 1fr;
    }
}

.toc-list a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.toc-list a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--text-muted);
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

button.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

button.btn-submit:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Dashboard Cards */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.client-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}

.client-logo-placeholder {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 15px;
}

.client-card h3 {
    color: var(--accent-blue);
    font-size: 1.5rem;
    font-weight: 800;
}

.client-card p {
    font-size: 0.875rem;
    margin: 0;
}

/* Footer */
footer.legal-footer {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Utilities */
.hidden { display: none !important; }
.text-red { color: var(--accent-red) !important; }

/* Callout Box (Special Features) */
.callout-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    position: relative;
}

.callout-box h3 {
    color: #92400e;
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.callout-box h3::before {
    content: '⚠️';
    font-size: 1.1rem;
}

.callout-box p {
    color: #b45309;
    font-weight: 600;
    margin-bottom: 12px;
}

.callout-box ul {
    color: #b45309;
    margin-bottom: 0;
}

