:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle at top right, #ffffff 0%, #f8fafc 48%, #f3f4f6 100%);
}

.font-display {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.015em;
}

.lang-urdu,
[dir='rtl'] {
    font-family: 'Noto Naskh Arabic', 'Noto Serif', serif;
}

[dir='rtl'] .font-display {
    font-family: 'Noto Naskh Arabic', 'Noto Serif', serif;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
    color: #0f172a;
    background: #f1f5f9;
}

.nav-pill-active {
    color: #0f172a;
    background: #f8efda;
}

.legal-prose {
    color: #334155;
    font-size: 1rem;
    line-height: 1.95;
}

.legal-prose h1,
.legal-prose h2,
.legal-prose h3,
.legal-prose h4,
.legal-prose h5,
.legal-prose h6 {
    margin-top: 2rem;
    margin-bottom: 0.9rem;
    color: #0f172a;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
}

.legal-prose h1 {
    font-size: 2rem;
}

.legal-prose h2 {
    font-size: 1.6rem;
}

.legal-prose h3 {
    font-size: 1.3rem;
}

[dir='rtl'] .legal-prose h1,
[dir='rtl'] .legal-prose h2,
[dir='rtl'] .legal-prose h3,
[dir='rtl'] .legal-prose h4,
[dir='rtl'] .legal-prose h5,
[dir='rtl'] .legal-prose h6 {
    font-family: 'Noto Naskh Arabic', serif;
}

.legal-prose p {
    margin: 1rem 0;
}

.legal-prose ul,
.legal-prose ol {
    margin: 1rem 0;
    padding-inline-start: 1.3rem;
}

.legal-prose li {
    margin: 0.45rem 0;
}

.legal-prose a {
    color: #a87f34;
    text-decoration: none;
    font-weight: 600;
}

.legal-prose a:hover,
.legal-prose a:focus-visible {
    color: #8a6728;
}

.legal-prose blockquote {
    margin: 1.4rem 0;
    border-inline-start: 4px solid #d4b062;
    background: #f8fafc;
    padding: 0.8rem 1rem;
    border-radius: 0.65rem;
}

.legal-prose code {
    border-radius: 0.35rem;
    background: #e2e8f0;
    padding: 0.1rem 0.35rem;
    font-size: 0.92em;
}

.legal-prose pre {
    margin: 1.2rem 0;
    overflow-x: auto;
    border-radius: 0.8rem;
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem;
}

.legal-prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

[dir='rtl'] .legal-prose ul,
[dir='rtl'] .legal-prose ol {
    padding-inline-start: 0;
    padding-inline-end: 1.3rem;
}

@media (max-width: 767px) {
    .nav-pill {
        padding: 0.65rem 0.8rem;
    }
}
