/* =========================================================
   VALRYN LEGAL CENTER
   legal.css — FINAL LOCKED VERSION
   ========================================================= */

:root {
    --lc-bg: #090705;
    --lc-panel: rgba(24, 18, 13, 0.9);
    --lc-panel-light: rgba(42, 30, 20, 0.94);

    --lc-gold: #c89b3c;
    --lc-gold-light: #f1d38a;

    --lc-text: #ffffff;
    --lc-muted: #c8beb2;

    --lc-border: rgba(255, 255, 255, 0.11);
    --lc-gold-border: rgba(200, 155, 60, 0.32);

    --lc-radius: 24px;
    --lc-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    min-width: 320px;
    overflow: hidden;
    color: var(--lc-text);
    background: var(--lc-bg);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--lc-gold-light);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

/* =========================================================
   APP BACKGROUND
   ========================================================= */

.lc-app {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.lc-background {
    position: fixed;
    inset: 0;
    z-index: -12;

    background-image: url("../assets/images/court-room.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: scale(1.03);
}

.lc-overlay {
    position: fixed;
    inset: 0;
    z-index: -10;

    background:
        linear-gradient(
            180deg,
            rgba(8, 6, 4, 0.32) 0%,
            rgba(8, 6, 4, 0.68) 42%,
            rgba(8, 6, 4, 0.9) 100%
        ),
        linear-gradient(
            90deg,
            rgba(8, 6, 4, 0.5),
            rgba(8, 6, 4, 0.68)
        );
}

.lc-particles {
    position: fixed;
    inset: 0;
    z-index: -8;
    pointer-events: none;

    opacity: 0.18;

    background-image:
        radial-gradient(
            circle,
            var(--lc-gold-light) 1px,
            transparent 1px
        );

    background-size: 96px 96px;

    animation: lcDust 40s linear infinite;
}

/* =========================================================
   HEADER
   ========================================================= */

.lc-header {
    position: relative;
    z-index: 100;

    width: min(94%, 1650px);
    min-height: 84px;

    margin: 22px auto 0;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;

    padding: 14px 26px;

    border: 1px solid var(--lc-border);
    border-radius: 24px;

    background: rgba(19, 14, 10, 0.9);
    box-shadow: var(--lc-shadow);
    backdrop-filter: blur(18px);
}

.lc-logo {
    display: flex;
    align-items: center;
    gap: 14px;

    color: var(--lc-text);
    text-decoration: none;
}

.lc-logo-mark {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            var(--lc-gold),
            var(--lc-gold-light)
        );

    color: #19110a;

    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 700;

    box-shadow:
        0 0 28px rgba(200, 155, 60, 0.38);
}

.lc-logo strong {
    display: block;
    letter-spacing: 0.18em;
}

.lc-logo span {
    display: block;
    margin-top: 3px;

    color: var(--lc-gold-light);

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.lc-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    overflow-x: auto;
    scrollbar-width: none;
}

.lc-nav::-webkit-scrollbar {
    display: none;
}

.lc-nav-button {
    flex: 0 0 auto;

    min-height: 42px;
    padding: 0 10px;

    color: var(--lc-muted);

    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;

    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.lc-nav-button:hover,
.lc-nav-button.active {
    color: var(--lc-gold-light);
    border-color: rgba(200, 155, 60, 0.2);
    background: rgba(200, 155, 60, 0.08);
}

.lc-nav-button:hover {
    transform: translateY(-2px);
}

/* =========================================================
   SCREEN SYSTEM
   ========================================================= */

.lc-main {
    width: min(94%, 1650px);
    height: calc(100vh - 128px);

    margin: 0 auto;
    padding: 14px 0 18px;
}

.lc-screen {
    width: 100%;
    height: 100%;
}

.lc-screen:not(.active) {
    display: none;
}

.lc-screen.active {
    display: block;
}

.lc-screen-shell {
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
}

.lc-screen-header {
    min-height: 124px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;

    padding: 20px 24px;

    border: 1px solid var(--lc-border);
    border-radius: 24px;

    background: rgba(19, 14, 10, 0.9);
    box-shadow: var(--lc-shadow);
    backdrop-filter: blur(16px);
}

.lc-screen-header h2 {
    margin-top: 5px;

    font-family: "Playfair Display", serif;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1;
}

.lc-screen-header p:last-child {
    max-width: 900px;
    margin-top: 8px;

    color: var(--lc-muted);
    line-height: 1.65;
}

.lc-back-button {
    min-height: 46px;
    padding: 0 17px;

    color: var(--lc-text);

    border: 1px solid var(--lc-gold-border);
    border-radius: 14px;

    background: rgba(200, 155, 60, 0.08);

    font-weight: 800;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.lc-back-button:hover {
    transform: translateY(-3px);

    color: #1a120b;

    background:
        linear-gradient(
            135deg,
            var(--lc-gold),
            var(--lc-gold-light)
        );
}

/* =========================================================
   SHARED TEXT
   ========================================================= */

.lc-label,
.lc-section-label {
    color: var(--lc-gold-light);

    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* =========================================================
   LEGAL CENTER HOME
   ========================================================= */

.lc-home-layout {
    width: 100%;
    height: 100%;

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

    overflow: hidden;
    text-align: center;
}

.lc-home-copy {
    width: min(100%, 1100px);
    padding: 24px 20px 10px;
}

.lc-home-copy h1 {
    margin-top: 14px;

    font-family: "Playfair Display", serif;
    font-size: clamp(3.8rem, 6vw, 6rem);
    line-height: 0.92;
}

.lc-description {
    max-width: 920px;
    margin: 22px auto 0;

    color: var(--lc-muted);

    font-size: 0.98rem;
    line-height: 1.72;
}

.lc-home-options {
    width: min(100%, 980px);
    margin: 28px auto 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lc-entry-card {
    min-height: 104px;

    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;

    padding: 16px;

    color: var(--lc-text);

    border: 1px solid var(--lc-border);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 14, 10, 0.91),
            rgba(43, 31, 21, 0.93)
        );

    text-align: left;

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(14px);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.lc-entry-card:hover {
    transform: translateY(-5px);

    border-color: rgba(200, 155, 60, 0.44);

    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.38);
}

.lc-entry-card.wide {
    grid-column: 1 / -1;
}

.lc-entry-number {
    color: var(--lc-gold-light);

    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.lc-entry-icon {
    font-size: 1.9rem;
}

.lc-entry-copy {
    display: grid;
    gap: 4px;
}

.lc-entry-copy strong {
    font-size: 0.98rem;
}

.lc-entry-copy small {
    color: var(--lc-muted);

    font-size: 0.68rem;
    line-height: 1.4;
}

.lc-home-visual {
    display: none;
}

/* =========================================================
   LEGAL ROOM CARDS
   ========================================================= */

.lc-room-grid {
    min-height: 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lc-room-card {
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 24px;

    border: 1px solid var(--lc-border);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 14, 10, 0.94),
            rgba(43, 31, 21, 0.96)
        );

    box-shadow: var(--lc-shadow);
    backdrop-filter: blur(14px);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.lc-room-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 155, 60, 0.4);
}

.lc-room-card span {
    font-size: 2.2rem;
}

.lc-room-card h3 {
    margin-top: 14px;

    color: var(--lc-gold-light);
    font-size: 1.1rem;
}

.lc-room-card p {
    margin-top: 9px;

    color: var(--lc-muted);

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

.lc-room-statement {
    position: relative;

    margin-top: 0;
    padding: 13px 18px;

    color: var(--lc-gold-light);

    border: 1px solid rgba(200, 155, 60, 0.2);
    border-radius: 15px;

    background: rgba(19, 14, 10, 0.95);

    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    text-align: center;
}

/* =========================================================
   CONTACT LEGAL
   ========================================================= */

.lc-contact-grid {
    min-height: 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lc-contact-card {
    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: 24px;

    color: var(--lc-text);

    border: 1px solid var(--lc-border);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 14, 10, 0.94),
            rgba(43, 31, 21, 0.96)
        );

    box-shadow: var(--lc-shadow);
    text-align: left;
    backdrop-filter: blur(14px);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.lc-contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 155, 60, 0.42);
}

.lc-contact-card span {
    font-size: 2.3rem;
}

.lc-contact-card strong {
    margin-top: 14px;

    color: var(--lc-gold-light);
    font-size: 1.08rem;
}

.lc-contact-card small {
    margin-top: 8px;

    color: var(--lc-muted);

    font-size: 0.72rem;
    line-height: 1.5;
}

/* =========================================================
   TOAST
   ========================================================= */

.lc-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;

    max-width: min(400px, calc(100% - 44px));

    padding: 14px 18px;

    color: var(--lc-text);

    border: 1px solid var(--lc-gold-border);
    border-radius: 14px;

    background: rgba(19, 14, 10, 0.97);

    box-shadow: var(--lc-shadow);

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

    backdrop-filter: blur(16px);
}

/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes lcDust {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-96px);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1120px) {
    body {
        overflow: auto;
    }

    .lc-app {
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }

    .lc-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lc-nav {
        justify-content: flex-start;
    }

    .lc-main {
        height: auto;
        min-height: calc(100vh - 150px);
    }

    .lc-screen-shell {
        height: auto;
    }

    .lc-home-layout {
        min-height: 900px;
    }

    .lc-room-grid,
    .lc-contact-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .lc-room-card,
    .lc-contact-card {
        min-height: 210px;
    }
}

@media (max-width: 680px) {
    .lc-home-options {
        grid-template-columns: 1fr;
    }

    .lc-entry-card.wide {
        grid-column: auto;
    }

    .lc-screen-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lc-home-copy h1 {
        font-size: 3.4rem;
    }
}