:root {
    --legal-navy: #0f1f3d;
    --legal-navy-2: #1a2f57;
    --legal-gold: #c4a24f;
    --legal-cream: #f6f3eb;
    --legal-border: #d7dbe4;
}

* {
    box-sizing: border-box;
}

body.legal-body {
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    color: #0f172a;
    background:
        radial-gradient(circle at 15% -10%, #d9e6fb 0%, transparent 40%),
        radial-gradient(circle at 90% 15%, #f2e9d1 0%, transparent 30%),
        var(--legal-cream);
}

.font-serif {
    font-family: "Merriweather", serif;
}

.legal-header {
    background: linear-gradient(135deg, var(--legal-navy) 0%, var(--legal-navy-2) 100%);
    border-bottom: 3px solid var(--legal-gold);
}

.brand-block {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-title {
    color: #ffffff;
    font-family: "Merriweather", serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-subtitle {
    color: #dbe5ff;
    font-size: 0.9rem;
}

.nav-link {
    color: #dbe5ff;
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 0.4rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.nav-link-highlight {
    border: 1px solid rgba(196, 162, 79, 0.65);
}

.legal-footer {
    margin-top: 3rem;
    background: var(--legal-navy);
    border-top: 2px solid var(--legal-gold);
}

.panel {
    background: #ffffff;
    border: 1px solid var(--legal-border);
    border-radius: 0.9rem;
    box-shadow: 0 10px 30px rgba(15, 31, 61, 0.07);
}

.hero-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.hero-card {
    background:
        linear-gradient(140deg, rgba(15, 31, 61, 0.95) 0%, rgba(26, 47, 87, 0.93) 80%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 8px, transparent 8px, transparent 16px);
    border: 1px solid rgba(196, 162, 79, 0.55);
    border-radius: 1rem;
    padding: 2rem;
    color: #fff;
}

.hero-card h1,
.hero-card p {
    color: #fff;
}

.hero-side {
    align-self: stretch;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--legal-gold);
    font-weight: 700;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    padding: 0.58rem 0.95rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 0;
}

.btn-primary {
    background: linear-gradient(140deg, #b88f3a 0%, #d3b56d 100%);
    color: #1f2937;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary {
    border: 1px solid #b8c2d6;
    color: #10213f;
    background: #ffffff;
}

.btn-secondary:hover {
    border-color: #94a3b8;
}

.btn-danger {
    border: 1px solid #fecaca;
    color: #9f1239;
    background: #fff1f2;
}

.btn-danger:hover {
    border-color: #fda4af;
    background: #ffe4e6;
}

.chip-chip {
    background: #f5ebd2;
    color: #765707;
    border: 1px solid #e8d3a1;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.fa-solid,
.fa-regular,
.fa-brands,
.svg-inline--fa {
    width: 1em;
    min-width: 1em;
    vertical-align: -0.125em;
}

.input-text {
    width: 100%;
    border: 1px solid #c9d2e1;
    border-radius: 0.6rem;
    padding: 0.63rem 0.72rem;
    font: inherit;
    background: #fff;
}

.input-text:focus {
    outline: 2px solid rgba(37, 99, 235, 0.2);
    border-color: #3b82f6;
}

.label-text {
    display: block;
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
}

.notice {
    border-radius: 0.65rem;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
}

.notice-success {
    border: 1px solid #95d5b2;
    background: #e8f9ef;
    color: #166534;
}

.notice-error {
    border: 1px solid #fca5a5;
    background: #fff1f2;
    color: #9f1239;
}

.editor-box {
    background: #fff;
    border: 1px solid #c9d2e1;
    border-radius: 0.65rem;
    min-height: 260px;
    padding: 0.63rem 0.72rem;
}

.tox-tinymce {
    border-radius: 0.65rem !important;
    border-color: #c9d2e1 !important;
}

.frame-wrap {
    background: #f1f5f9;
    border: 1px solid #d8e0ec;
    border-radius: 0.8rem;
    overflow: hidden;
}

.prose-zone {
    color: #1e293b;
    line-height: 1.65;
}

.prose-zone p {
    margin-bottom: 1rem;
}

.prose-zone a {
    color: #1d4ed8;
    text-decoration: underline;
}
