@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Scope everything to .legal-content to ensure we override Tailwind's preflight */
.legal-content {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #374151;
    /* gray-700 */
    line-height: 1.8;
    /* Extra breathing room */
}

/* Headings with massive vertical rhythm */
.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    /* gray-900 */
    margin-bottom: 3rem;
    /* Huge space after title */
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-top: 5rem;
    /* Distinct sections */
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: -0.02em;
}

.legal-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d5a6b;
    /* primary-500 */
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Body Text */
.legal-content p {
    margin-bottom: 2rem;
    /* Clear paragraph separation */
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 65ch;
    /* Optimal reading length */
}

.legal-content p.lead {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #374151;
    font-weight: 400;
    margin-bottom: 4rem;
    border-left: 4px solid #2d5a6b;
    padding-left: 1.5rem;
}

/* Lists with breathing room */
.legal-content ul,
.legal-content ol {
    margin-bottom: 2.5rem;
    padding-left: 0;
    list-style: none;
}

.legal-content li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    max-width: 65ch;
    font-size: 1.05rem;
    color: #4b5563;
}

.legal-content ul li::before {
    content: "•";
    color: #2d5a6b;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
    line-height: 1.5rem;
}

/* Tables - Card style */
.legal-content table {
    width: 100%;
    margin: 3rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.legal-content th {
    background-color: #f8fafc;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.legal-content td {
    padding: 1.25rem 1.5rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.legal-content tr:last-child td {
    border-bottom: none;
}

/* Links */
.legal-content a:not([class]) {
    color: #2d5a6b;
    text-decoration: none;
    border-bottom: 2px solid rgba(45, 90, 107, 0.2);
    transition: all 0.2s;
    font-weight: 500;
}

.legal-content a:not([class]):hover {
    color: #1a3c48;
    border-bottom-color: #2d5a6b;
    background-color: rgba(45, 90, 107, 0.05);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .legal-content h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 3.5rem;
    }

    .legal-content p.lead {
        font-size: 1.15rem;
        margin-bottom: 3rem;
    }

    .legal-content th,
    .legal-content td {
        padding: 1rem;
    }

    .legal-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}