/* ==========================================================================
   Londyn Publishing — Legal Hub
   Compact Card Dashboard
   ========================================================================== */

.veil-legal-hub {
    --legal-gold: #c6a45c;
    --legal-gold-bright: #e1c47a;
    --legal-border: rgba(198, 164, 92, 0.22);
    --legal-border-hover: rgba(198, 164, 92, 0.48);
    --legal-red: #6f1d2d;
    --legal-bg: #08080a;
    --legal-panel: rgba(18, 18, 21, 0.94);
    --legal-panel-hover: rgba(24, 23, 27, 0.98);
    --legal-text: #d8d4cc;
    --legal-text-bright: #f0ebe1;
    --legal-muted: #98948c;

    position: relative;
    overflow: hidden;
    color: var(--legal-text);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(111, 29, 45, 0.16),
            transparent 32%
        ),
        #08080a;
}


/* ==========================================================================
   COMPACT HERO
   ========================================================================== */

.veil-legal-hub__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 250px;
    padding: 48px 24px 42px;

    text-align: center;

    border-bottom: 1px solid rgba(198, 164, 92, 0.16);

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(111, 29, 45, 0.24),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #0d0c0f,
            #09090b
        );
}

.veil-legal-hub__hero-glow {
    position: absolute;
    top: -240px;
    left: 50%;
    z-index: -1;

    width: 600px;
    height: 600px;

    transform: translateX(-50%);
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(111, 29, 45, 0.15),
            transparent 70%
        );

    pointer-events: none;
}

.veil-legal-hub__hero-content {
    width: min(100%, 760px);
    margin: 0 auto;
}

.veil-legal-hub__eyebrow {
    display: block;
    margin-bottom: 8px;

    color: var(--legal-gold);

    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.veil-legal-hub__hero h1 {
    margin: 0;

    color: var(--legal-text-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
}

.veil-legal-hub__ornament {
    margin: 12px 0 8px;

    color: var(--legal-gold);

    font-size: 0.7rem;
}

.veil-legal-hub__bloodline {
    margin: 0 0 5px;

    color: var(--legal-gold-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-style: italic;
}

.veil-legal-hub__intro {
    max-width: 580px;
    margin: 0 auto;

    color: var(--legal-muted);

    font-size: 0.88rem;
    line-height: 1.55;
}


/* ==========================================================================
   PAGE
   ========================================================================== */

.veil-legal-hub__inner {
    width: min(100%, 1380px);
    margin: 0 auto;

    padding: 34px 24px 48px;
}


/* ==========================================================================
   SECTION TITLE
   ========================================================================== */

.veil-legal-hub__section-header {
    margin-bottom: 22px;
    text-align: center;
}

.veil-legal-hub__section-kicker {
    display: block;
    margin-bottom: 5px;

    color: var(--legal-gold);

    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.veil-legal-hub__section-header h2 {
    margin: 0;

    color: var(--legal-text-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
}


/* ==========================================================================
   4 × 2 LEGAL GRID
   ========================================================================== */

.veil-legal-hub__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.veil-legal-hub__card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-height: 222px;
    padding: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 19, 22, 0.96),
            rgba(12, 12, 14, 0.98)
        );

    border: 1px solid var(--legal-border);
    border-radius: 4px;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.20);

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.veil-legal-hub__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    opacity: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--legal-gold),
            transparent
        );

    transition: opacity 160ms ease;
}

.veil-legal-hub__card:hover,
.veil-legal-hub__card:focus-within {
    transform: translateY(-3px);

    border-color: var(--legal-border-hover);

    background:
        linear-gradient(
            145deg,
            rgba(25, 23, 27, 0.99),
            rgba(14, 14, 17, 0.99)
        );

    box-shadow:
        0 15px 36px rgba(0, 0, 0, 0.30);
}

.veil-legal-hub__card:hover::before,
.veil-legal-hub__card:focus-within::before {
    opacity: 1;
}


/* Copyright card */

.veil-legal-hub__card--copyright {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(111, 29, 45, 0.18),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(23, 21, 24, 0.98),
            rgba(12, 12, 14, 0.98)
        );

    border-color: rgba(198, 164, 92, 0.36);
}


/* ==========================================================================
   CARD ICON
   ========================================================================== */

.veil-legal-hub__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin-bottom: 13px;

    color: var(--legal-gold-bright);

    border: 1px solid rgba(198, 164, 92, 0.24);
    border-radius: 50%;

    background: rgba(198, 164, 92, 0.05);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
}


/* ==========================================================================
   CARD TYPOGRAPHY
   ========================================================================== */

.veil-legal-hub__card-label {
    display: block;
    margin-bottom: 5px;

    color: var(--legal-gold);

    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.veil-legal-hub__card h3,
.veil-legal-hub__quick-card h3 {
    margin: 0 0 8px;

    color: var(--legal-text-bright);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.25;
}

.veil-legal-hub__card p,
.veil-legal-hub__quick-card p {
    margin: 0;

    color: var(--legal-muted);

    font-size: 0.80rem;
    line-height: 1.55;
}

.veil-legal-hub__card-link {
    margin-top: auto;
    padding-top: 13px;

    color: var(--legal-gold-bright);

    font-size: 0.72rem;
    font-weight: 600;
}


/* ==========================================================================
   STRETCHED CARD LINKS
   ========================================================================== */

.veil-legal-hub__stretched-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.veil-legal-hub__stretched-link:focus-visible {
    outline: 2px solid var(--legal-gold-bright);
    outline-offset: -4px;
}


/* ==========================================================================
   QUICK ACTIONS
   ========================================================================== */

.veil-legal-hub__quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 14px;
}

.veil-legal-hub__quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 110px;
    padding: 20px 22px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 18, 21, 0.96),
            rgba(11, 11, 13, 0.98)
        );

    border: 1px solid var(--legal-border);
    border-radius: 4px;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.16);
}

.veil-legal-hub__quick-copy {
    max-width: 420px;
}

.veil-legal-hub__quick-card h3 {
    margin-bottom: 5px;
}


/* ==========================================================================
   CONSENT
   ========================================================================== */

.veil-legal-hub__consent-control {
    flex: 0 0 auto;
}

.veil-legal-hub__consent-control .cmplz-manage-consent,
.veil-legal-hub__consent-control button {
    padding: 10px 16px !important;

    color: #111 !important;
    background: var(--legal-gold-bright) !important;

    border: 1px solid var(--legal-gold-bright) !important;
    border-radius: 3px !important;

    font-size: 0.75rem !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   EMAIL CONTACT
   ========================================================================== */

.veil-legal-hub__contact {
    position: relative;
    z-index: 6;

    flex: 0 0 auto;

    color: var(--legal-gold-bright);

    font-size: 0.8rem;
    font-weight: 600;

    text-decoration: none;
}

.veil-legal-hub__contact:hover,
.veil-legal-hub__contact:focus-visible {
    color: #f1d89a;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.veil-legal-hub__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 25px;

    color: var(--legal-gold);
    text-align: center;
}

.veil-legal-hub__footer span {
    font-size: 0.65rem;
}

.veil-legal-hub__footer p {
    margin: 0;

    color: var(--legal-muted);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    letter-spacing: 0.045em;
}


/* ==========================================================================
   SELECTION
   ========================================================================== */

.veil-legal-hub ::selection {
    color: #fff;
    background: rgba(111, 29, 45, 0.78);
}


/* ==========================================================================
   LAPTOP
   ========================================================================== */

@media (max-width: 1150px) {

    .veil-legal-hub__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 850px) {

    .veil-legal-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .veil-legal-hub__quick {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 560px) {

    .veil-legal-hub__hero {
        min-height: 220px;
        padding: 40px 18px 36px;
    }

    .veil-legal-hub__hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .veil-legal-hub__inner {
        padding: 28px 14px 40px;
    }

    .veil-legal-hub__grid {
        grid-template-columns: 1fr;
    }

    .veil-legal-hub__card {
        min-height: 190px;
    }

    .veil-legal-hub__quick-card {
        align-items: flex-start;
        flex-direction: column;

        min-height: auto;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .veil-legal-hub *,
    .veil-legal-hub *::before,
    .veil-legal-hub *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* ==========================================================================
   TYPOGRAPHY — LP DESIGN SYSTEM
   ========================================================================== */

/* Default Legal Hub typography */
.veil-legal-hub {
    font-family: var(--lpds-font-body);
}


/* Main page title */
.veil-legal-hub__hero h1 {
    font-family: var(
        --lpds-font-decorative,
        "Cinzel Decorative",
        Cinzel,
        serif
    );
}


/* Hero eyebrow */
.veil-legal-hub__eyebrow {
    font-family: var(--lpds-font-body);
}


/* Hero tagline */
.veil-legal-hub__bloodline {
    font-family: var(--lpds-font-display);
}


/* Hero description */
.veil-legal-hub__intro {
    font-family: var(--lpds-font-body);
}


/* Section titles */
.veil-legal-hub__section-header h2 {
    font-family: var(
        --lpds-font-decorative,
        "Cinzel Decorative",
        Cinzel,
        serif
    );
}


/* Section kicker */
.veil-legal-hub__section-kicker {
    font-family: var(--lpds-font-body);
}


/* Card category labels */
.veil-legal-hub__card-label {
    font-family: var(--lpds-font-body);
}


/* Card titles */
.veil-legal-hub__card h3,
.veil-legal-hub__quick-card h3 {
    font-family: var(--lpds-font-display);
}


/* Card body copy */
.veil-legal-hub__card p,
.veil-legal-hub__quick-card p {
    font-family: var(--lpds-font-body);
}


/* Card links */
.veil-legal-hub__card-link,
.veil-legal-hub__contact {
    font-family: var(--lpds-font-body);
}


/* Consent controls */
.veil-legal-hub__consent-control,
.veil-legal-hub__consent-control button,
.veil-legal-hub__consent-control .cmplz-manage-consent {
    font-family: var(--lpds-font-body) !important;
}


/* Footer */
.veil-legal-hub__footer,
.veil-legal-hub__footer p {
    font-family: var(--lpds-font-body);
}

/* Legal Hub main title */
.veil-legal-hub__hero h1 {
    font-weight: 700;
}

/* Legal Hub section titles */
.veil-legal-hub__section-header h2 {
    font-weight: 700;
}
