/* =========================================================
   NIOSHE — LEGAL PAGES
   File: assets/css/legal-page.css

   Used for:
   - Privacy Policy
   - Terms & Conditions
   - Disclaimer
========================================================= */

:root {
    --nl-navy: #07172d;
    --nl-navy-2: #0b2749;
    --nl-blue: #135bb5;
    --nl-blue-dark: #0d4d97;
    --nl-blue-soft: #eef5fd;
    --nl-gold: #d9a51d;
    --nl-gold-light: #f3c64f;
    --nl-white: #ffffff;
    --nl-bg: #f5f8fc;
    --nl-text: #18263b;
    --nl-muted: #627086;
    --nl-line: #dfe7ef;
    --nl-max: 1450px;
}


/* =========================================================
   RESET
========================================================= */

.nioshe-legal-page,
.nioshe-legal-page *,
.nioshe-legal-page *::before,
.nioshe-legal-page *::after {
    box-sizing: border-box;
}

.nioshe-legal-page {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    background: var(--nl-bg);
    color: var(--nl-text);

    font-family:
        "Poppins",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.nioshe-legal-page h1,
.nioshe-legal-page h2,
.nioshe-legal-page h3,
.nioshe-legal-page h4,
.nioshe-legal-page p {
    margin-top: 0;
}

.nioshe-legal-page a {
    text-decoration: none;
}

.nl-shell {
    width: min(calc(100% - 48px), var(--nl-max));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.nl-hero {
    position: relative;
    overflow: hidden;

    padding: 62px 0 66px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(217, 165, 29, 0.12),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #061529 0%,
            #092542 58%,
            #0b315a 100%
        );
}

.nl-hero::after {
    content: "";

    position: absolute;
    top: -170px;
    right: -120px;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.nl-hero-inner {
    position: relative;
    z-index: 2;

    max-width: 850px;
}

.nl-kicker {
    display: inline-flex;

    margin-bottom: 15px;
    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.06);

    color: var(--nl-gold-light);

    font-size: 12px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nl-hero h1 {
    margin-bottom: 15px;

    color: #fff;

    font-size: clamp(40px, 4.5vw, 62px);
    line-height: 1.1;
    font-weight: 800;

    letter-spacing: -0.04em;
}

.nl-hero p {
    max-width: 780px;

    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   MAIN
========================================================= */

.nl-main {
    padding: 60px 0 78px;

    background: var(--nl-bg);
}

.nl-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);

    gap: 28px;

    align-items: start;
}


/* =========================================================
   SIDEBAR
========================================================= */

.nl-sidebar {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.nl-sidebar-box {
    padding: 22px;

    border: 1px solid var(--nl-line);
    border-radius: 13px;

    background: #fff;

    box-shadow: 0 10px 30px rgba(7, 23, 45, 0.04);
}

.nl-sidebar-label {
    display: block;

    margin-bottom: 15px;

    color: var(--nl-navy);

    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   LEGAL NAVIGATION
========================================================= */

.nl-legal-nav {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.nl-legal-nav > a {
    min-height: 46px;

    padding: 10px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border: 1px solid transparent;
    border-radius: 8px;

    color: var(--nl-text);

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.nl-legal-nav > a span {
    color: var(--nl-blue);

    font-size: 17px;
}

.nl-legal-nav > a:hover {
    border-color: #dbe6f2;

    background: var(--nl-blue-soft);

    color: var(--nl-blue);
}

.nl-legal-nav > a.is-active {
    border-color: var(--nl-blue);

    background: var(--nl-blue);

    color: #fff;
}

.nl-legal-nav > a.is-active span {
    color: var(--nl-gold-light);
}


/* =========================================================
   HELP BOX
========================================================= */

.nl-help-box {
    padding: 22px;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            var(--nl-navy),
            #0b315a
        );

    box-shadow: 0 14px 32px rgba(7, 23, 45, 0.12);
}

.nl-help-box > span {
    display: block;

    margin-bottom: 9px;

    color: var(--nl-gold-light);

    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.nl-help-box > strong {
    display: block;

    margin-bottom: 9px;

    color: #fff;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
}

.nl-help-box p {
    margin-bottom: 16px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 13px;
    line-height: 1.65;
}

.nl-help-box > a {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: var(--nl-gold-light);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.nl-help-box > a span {
    font-size: 17px;
}


/* =========================================================
   CONTENT CARD
========================================================= */

.nl-content {
    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--nl-line);
    border-radius: 15px;

    background: #fff;

    box-shadow: 0 12px 36px rgba(7, 23, 45, 0.05);
}


/* =========================================================
   CONTENT TOP
========================================================= */

.nl-content-top {
    padding: 29px 34px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    border-bottom: 1px solid var(--nl-line);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfdff
        );
}

.nl-content-label {
    display: block;

    margin-bottom: 7px;

    color: var(--nl-blue);

    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nl-content-top h2 {
    margin-bottom: 0;

    color: var(--nl-navy);

    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.nl-updated {
    flex: 0 0 auto;

    text-align: right;
}

.nl-updated span {
    display: block;

    margin-bottom: 4px;

    color: var(--nl-muted);

    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
}

.nl-updated strong {
    display: block;

    color: var(--nl-navy);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}


/* =========================================================
   LEGAL CONTENT
========================================================= */

.nl-content-body {
    padding: 38px 42px 44px;
}


/* Paragraphs */

.nl-content-body p {
    margin: 0 0 19px;

    color: #4f5e72;

    font-size: 16px;
    line-height: 1.82;
    font-weight: 400;
}


/* Main headings inside editor */

.nl-content-body h2 {
    margin: 40px 0 15px;

    padding-bottom: 11px;

    border-bottom: 1px solid var(--nl-line);

    color: var(--nl-navy);

    font-size: 27px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.nl-content-body h2:first-child {
    margin-top: 0;
}


/* Subheadings */

.nl-content-body h3 {
    margin: 30px 0 11px;

    color: var(--nl-navy);

    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
}

.nl-content-body h4 {
    margin: 24px 0 9px;

    color: var(--nl-navy);

    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
}


/* Strong */

.nl-content-body strong,
.nl-content-body b {
    color: var(--nl-navy);

    font-weight: 700;
}


/* Links */

.nl-content-body a {
    color: var(--nl-blue);

    font-weight: 600;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.nl-content-body a:hover {
    color: var(--nl-blue-dark);
}


/* Lists */

.nl-content-body ul,
.nl-content-body ol {
    margin: 0 0 22px;

    padding-left: 25px;
}

.nl-content-body li {
    margin-bottom: 9px;

    padding-left: 3px;

    color: #4f5e72;

    font-size: 16px;
    line-height: 1.75;
}

.nl-content-body li:last-child {
    margin-bottom: 0;
}

.nl-content-body li::marker {
    color: var(--nl-blue);

    font-weight: 700;
}


/* Nested Lists */

.nl-content-body li ul,
.nl-content-body li ol {
    margin-top: 9px;
    margin-bottom: 10px;
}


/* Blockquote */

.nl-content-body blockquote {
    margin: 28px 0;

    padding: 20px 22px;

    border-left: 4px solid var(--nl-gold);
    border-radius: 0 9px 9px 0;

    background: var(--nl-bg);
}

.nl-content-body blockquote p {
    margin-bottom: 0;

    color: var(--nl-text);

    font-size: 15px;
    line-height: 1.72;
}


/* Horizontal rule */

.nl-content-body hr {
    margin: 34px 0;

    border: 0;
    border-top: 1px solid var(--nl-line);
}


/* Tables */

.nl-content-body table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;

    border: 1px solid var(--nl-line);

    font-size: 14px;
}

.nl-content-body th,
.nl-content-body td {
    padding: 12px 14px;

    border: 1px solid var(--nl-line);

    text-align: left;
    vertical-align: top;

    line-height: 1.6;
}

.nl-content-body th {
    background: var(--nl-blue-soft);

    color: var(--nl-navy);

    font-weight: 700;
}

.nl-content-body td {
    color: #4f5e72;
}


/* Images */

.nl-content-body img {
    max-width: 100%;
    height: auto;

    border-radius: 9px;
}


/* =========================================================
   EMPTY CONTENT
========================================================= */

.nl-empty-content {
    padding: 35px;

    border: 1px dashed #c7d6e7;
    border-radius: 10px;

    background: #f8fbff;

    text-align: center;
}

.nl-empty-content strong {
    display: block;

    margin-bottom: 8px;

    color: var(--nl-navy);

    font-size: 18px;
    line-height: 1.4;
}

.nl-empty-content p {
    max-width: 560px;

    margin: 0 auto;

    color: var(--nl-muted);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   CONTENT FOOTER
========================================================= */

.nl-content-footer {
    padding: 25px 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    border-top: 1px solid var(--nl-line);

    background: #fbfdff;
}

.nl-content-footer > div {
    max-width: 750px;
}

.nl-content-footer > div > span {
    display: block;

    margin-bottom: 5px;

    color: var(--nl-blue);

    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.nl-content-footer p {
    margin: 0;

    color: var(--nl-muted);

    font-size: 13px;
    line-height: 1.65;
}

.nl-content-footer > a {
    min-height: 44px;

    padding: 0 14px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border-radius: 8px;

    background: var(--nl-blue);

    color: #fff;

    font-size: 13px;
    line-height: 1;
    font-weight: 700;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.nl-content-footer > a:hover {
    background: var(--nl-blue-dark);

    color: #fff;

    transform: translateY(-1px);
}

.nl-content-footer > a span {
    font-size: 17px;
}


/* =========================================================
   ASTRA / WORDPRESS CONTENT CLEANUP
========================================================= */

.nl-content-body .wp-block-heading:first-child {
    margin-top: 0;
}

.nl-content-body > *:first-child {
    margin-top: 0;
}

.nl-content-body > *:last-child {
    margin-bottom: 0;
}

.nl-content-body .wp-block-list {
    padding-left: 25px;
}

.nl-content-body .wp-block-table {
    overflow-x: auto;
}

.nl-content-body .wp-block-table table {
    margin: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .nl-layout {
        grid-template-columns: 230px minmax(0, 1fr);

        gap: 18px;
    }

    .nl-sidebar-box,
    .nl-help-box {
        padding: 18px;
    }

    .nl-content-body {
        padding: 32px;
    }
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 780px) {

    .nl-shell {
        width: calc(100% - 28px);
    }

    .nl-hero {
        padding: 48px 0;
    }

    .nl-hero h1 {
        font-size: 40px;
    }

    .nl-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .nl-main {
        padding: 38px 0 55px;
    }

    .nl-layout {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* Legal navigation becomes horizontal */

    .nl-sidebar {
        gap: 12px;
    }

    .nl-sidebar-box {
        padding: 14px;
    }

    .nl-sidebar-label {
        margin-bottom: 10px;
    }

    .nl-legal-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 6px;
    }

    .nl-legal-nav > a {
        min-height: 48px;

        padding: 8px 9px;

        justify-content: center;

        text-align: center;

        font-size: 12px;
    }

    .nl-legal-nav > a span {
        display: none;
    }


    /* Help box */

    .nl-help-box {
        display: grid;
        grid-template-columns: 1fr auto;

        column-gap: 20px;

        align-items: center;
    }

    .nl-help-box > span,
    .nl-help-box > strong,
    .nl-help-box > p {
        grid-column: 1;
    }

    .nl-help-box > a {
        grid-column: 2;
        grid-row: 1 / 4;
    }


    /* Content */

    .nl-content-top {
        padding: 24px 26px;
    }

    .nl-content-body {
        padding: 30px 27px 35px;
    }

    .nl-content-footer {
        padding: 22px 26px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .nl-shell {
        width: calc(100% - 22px);
    }


    /* HERO */

    .nl-hero {
        padding: 38px 0 40px;
    }

    .nl-kicker {
        margin-bottom: 12px;

        padding: 6px 9px;

        font-size: 10px;
    }

    .nl-hero h1 {
        margin-bottom: 13px;

        font-size: 34px;
        line-height: 1.14;
    }

    .nl-hero p {
        font-size: 15px;
        line-height: 1.68;
    }


    /* MAIN */

    .nl-main {
        padding: 28px 0 45px;
    }


    /* NAV */

    .nl-sidebar-box {
        padding: 11px;

        border-radius: 10px;
    }

    .nl-sidebar-label {
        font-size: 11px;
    }

    .nl-legal-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 5px;
    }

    .nl-legal-nav > a {
        min-width: 0;
        min-height: 46px;

        padding: 7px 5px;

        font-size: 10px;
        line-height: 1.35;
    }


    /* HELP */

    .nl-help-box {
        display: block;

        padding: 17px;

        border-radius: 10px;
    }

    .nl-help-box > span {
        font-size: 10px;
    }

    .nl-help-box > strong {
        font-size: 15px;
        line-height: 1.45;
    }

    .nl-help-box p {
        margin-bottom: 13px;

        font-size: 13px;
        line-height: 1.6;
    }

    .nl-help-box > a {
        font-size: 12px;
    }


    /* CONTENT CARD */

    .nl-content {
        border-radius: 11px;
    }

    .nl-content-top {
        padding: 19px 17px;

        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .nl-content-label {
        font-size: 10px;
    }

    .nl-content-top h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .nl-updated {
        padding-top: 10px;

        width: 100%;

        border-top: 1px solid var(--nl-line);

        text-align: left;
    }

    .nl-updated span {
        font-size: 10px;
    }

    .nl-updated strong {
        font-size: 12px;
    }


    /* LEGAL CONTENT */

    .nl-content-body {
        padding: 24px 17px 29px;
    }

    .nl-content-body p {
        margin-bottom: 17px;

        font-size: 15px;
        line-height: 1.72;
    }

    .nl-content-body h2 {
        margin: 31px 0 12px;

        padding-bottom: 9px;

        font-size: 23px;
        line-height: 1.35;
    }

    .nl-content-body h3 {
        margin: 25px 0 9px;

        font-size: 19px;
        line-height: 1.4;
    }

    .nl-content-body h4 {
        margin: 21px 0 8px;

        font-size: 16px;
        line-height: 1.45;
    }

    .nl-content-body ul,
    .nl-content-body ol {
        margin-bottom: 19px;

        padding-left: 21px;
    }

    .nl-content-body li {
        margin-bottom: 8px;

        font-size: 15px;
        line-height: 1.68;
    }

    .nl-content-body blockquote {
        margin: 22px 0;

        padding: 16px;
    }

    .nl-content-body blockquote p {
        font-size: 14px;
        line-height: 1.65;
    }


    /* TABLE */

    .nl-content-body table {
        display: block;

        max-width: 100%;

        overflow-x: auto;

        white-space: nowrap;

        font-size: 13px;
    }

    .nl-content-body th,
    .nl-content-body td {
        padding: 10px 11px;
    }


    /* FOOTER */

    .nl-content-footer {
        padding: 19px 17px;

        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .nl-content-footer > div > span {
        font-size: 10px;
    }

    .nl-content-footer p {
        font-size: 13px;
        line-height: 1.6;
    }

    .nl-content-footer > a {
        min-height: 42px;

        padding: 0 13px;

        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .nl-shell {
        width: calc(100% - 18px);
    }

    .nl-hero h1 {
        font-size: 31px;
    }

    .nl-legal-nav {
        grid-template-columns: 1fr;
    }

    .nl-legal-nav > a {
        min-height: 41px;

        justify-content: space-between;

        padding: 8px 11px;

        text-align: left;

        font-size: 11px;
    }

    .nl-legal-nav > a span {
        display: inline;
    }

    .nl-content-body {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.nioshe-legal-page a:focus-visible {
    outline: 2px solid var(--nl-blue);
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .nioshe-legal-page *,
    .nioshe-legal-page *::before,
    .nioshe-legal-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* =========================================================
   PRINT — CLEAN LEGAL DOCUMENT
========================================================= */

@media print {

    .nl-hero,
    .nl-sidebar,
    .nl-content-footer {
        display: none !important;
    }

    .nl-main {
        padding: 0;

        background: #fff;
    }

    .nl-layout {
        display: block;
    }

    .nl-content {
        border: 0;

        box-shadow: none;
    }

    .nl-content-top {
        padding: 0 0 20px;

        border-bottom: 1px solid #ccc;
    }

    .nl-content-body {
        padding: 25px 0;
    }

    .nl-content-body p,
    .nl-content-body li {
        color: #000;
    }
}