/* Rust Hub - Privacy Policy + Cookie Policy */

.rh-legal-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    color: #eef1f2;
    background:
        radial-gradient(circle at 20% 0%, rgba(219, 60, 25, 0.07), transparent 28%),
        #0b0d0f;
}

.rh-legal-page,
.rh-legal-page * {
    box-sizing: border-box;
}

.rh-legal-shell {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 84px;
}

.rh-legal-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 36px;
    margin-bottom: 26px;

    border: 1px solid #30383e;
    border-left: 4px solid #db3c19;
    background:
        linear-gradient(110deg, rgba(219, 60, 25, 0.08), transparent 42%),
        #111518;
}

.rh-legal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        115deg,
        transparent 0 8px,
        rgba(255,255,255,0.012) 8px 9px
    );
}

.rh-legal-kicker {
    position: relative;
    z-index: 1;

    display: block;
    margin-bottom: 8px;

    color: #db3c19;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.rh-legal-hero h1 {
    position: relative;
    z-index: 1;

    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: 0.2px;
    line-height: 1.05;
    text-transform: uppercase;
}

.rh-legal-hero > p {
    position: relative;
    z-index: 1;

    max-width: 820px;
    margin: 14px 0 0;

    color: #aeb8be;
    font-size: 15px;
    line-height: 1.7;
}

.rh-legal-meta {
    position: relative;
    z-index: 1;

    margin-top: 22px;
    padding-top: 18px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;

    border-top: 1px solid #2d353a;

    color: #7f8991;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.rh-legal-meta a {
    color: #e6eaec;
    text-decoration: none;
}

.rh-legal-meta a:hover {
    color: #db3c19;
}

.rh-legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.rh-legal-nav {
    position: sticky;
    top: 24px;

    padding: 18px;
    border: 1px solid #2b3338;
    background: #101417;
}

.rh-legal-nav > strong {
    display: block;
    margin-bottom: 12px;

    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.rh-legal-nav nav {
    display: grid;
    gap: 2px;
}

.rh-legal-nav a {
    padding: 8px 9px;

    border-left: 2px solid transparent;

    color: #879198;
    text-decoration: none;

    font-size: 11px;
    line-height: 1.45;

    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease;
}

.rh-legal-nav a:hover,
.rh-legal-nav a:focus-visible {
    border-left-color: #db3c19;
    background: #171c20;
    color: #ffffff;
}

.rh-legal-nav a:focus-visible,
.rh-legal-content a:focus-visible {
    outline: 2px solid #db3c19;
    outline-offset: 3px;
}

.rh-legal-content {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.rh-legal-content > section {
    scroll-margin-top: 24px;
    padding: 26px 28px;

    border: 1px solid #2b3338;
    background: #111518;
}

.rh-legal-content > section:hover {
    border-color: #3a4349;
}

.rh-legal-intro-card {
    border-left: 3px solid #db3c19 !important;
    background:
        linear-gradient(90deg, rgba(219, 60, 25, 0.06), transparent 36%),
        #111518 !important;
}

.rh-legal-section-number {
    display: block;
    margin-bottom: 6px;

    color: #db3c19;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.rh-legal-content h2 {
    margin: 0 0 14px;

    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.rh-legal-content p {
    margin: 0 0 14px;

    color: #aeb7bd;
    font-size: 13px;
    line-height: 1.75;
}

.rh-legal-content p:last-child {
    margin-bottom: 0;
}

.rh-legal-content ul {
    margin: 14px 0 16px;
    padding: 0;
    list-style: none;
}

.rh-legal-content li {
    position: relative;
    margin: 0;
    padding: 7px 0 7px 20px;

    color: #aeb7bd;
    font-size: 13px;
    line-height: 1.65;
}

.rh-legal-content li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 2px;

    width: 7px;
    height: 7px;

    border: 1px solid #db3c19;
    background: #171c20;
}

.rh-legal-content strong {
    color: #e7ebed;
}

.rh-legal-content a {
    color: #e16850;
    text-decoration: underline;
    text-decoration-color: rgba(225, 104, 80, 0.45);
    text-underline-offset: 3px;
}

.rh-legal-content a:hover {
    color: #ff795c;
    text-decoration-color: currentColor;
}

.rh-legal-contact-card {
    margin: 18px 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    border: 1px solid #2e373d;
    background: #0c1012;
}

.rh-legal-contact-card > div {
    min-width: 0;
    padding: 15px 16px;

    display: grid;
    gap: 5px;

    border-right: 1px solid #2e373d;
}

.rh-legal-contact-card > div:last-child {
    border-right: 0;
}

.rh-legal-contact-card span {
    color: #707b82;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.rh-legal-contact-card strong,
.rh-legal-contact-card a {
    min-width: 0;
    overflow-wrap: anywhere;

    font-size: 12px;
    line-height: 1.55;
}

.rh-legal-contact-card-single {
    grid-template-columns: 1fr;
}

.rh-legal-contact-card-single > div {
    border-right: 0;
}

.rh-legal-note {
    padding: 12px 14px;

    border: 1px solid #57432d;
    border-left: 3px solid #c78c46;
    background: #17130f;

    color: #c7a77f !important;
    font-size: 11px !important;
}

.rh-legal-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #2e373d;
}

.rh-legal-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #0d1113;
}

.rh-legal-table th,
.rh-legal-table td {
    padding: 14px 15px;
    border-right: 1px solid #2e373d;
    border-bottom: 1px solid #2e373d;
    text-align: left;
    vertical-align: top;
}

.rh-legal-table th:last-child,
.rh-legal-table td:last-child {
    border-right: 0;
}

.rh-legal-table tbody tr:last-child td {
    border-bottom: 0;
}

.rh-legal-table th {
    color: #8f999f;
    background: #151a1d;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.rh-legal-table td {
    color: #b8c1c6;
    font-size: 12px;
    line-height: 1.6;
}

.rh-legal-bottom-links {
    padding: 18px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    border: 1px solid #2b3338;
    background: #101417;
}

.rh-legal-bottom-links a {
    min-height: 42px;
    padding: 0 15px;

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

    border: 1px solid #db3c19;
    background: #15181b;

    color: #ffffff;
    text-decoration: none;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.rh-legal-bottom-links a:hover {
    background: #1d2226;
    color: #ffffff;
}

@media (max-width: 980px) {
    .rh-legal-layout {
        grid-template-columns: 1fr;
    }

    .rh-legal-nav {
        position: static;
    }

    .rh-legal-nav nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
}

@media (max-width: 700px) {
    .rh-legal-shell {
        width: min(100% - 30px, 1320px);
        padding: 38px 0 64px;
    }

    .rh-legal-hero,
    .rh-legal-content > section {
        padding: 20px;
    }

    .rh-legal-meta,
    .rh-legal-bottom-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .rh-legal-nav nav,
    .rh-legal-contact-card {
        grid-template-columns: 1fr;
    }

    .rh-legal-contact-card > div {
        border-right: 0;
        border-bottom: 1px solid #2e373d;
    }

    .rh-legal-contact-card > div:last-child {
        border-bottom: 0;
    }

    .rh-legal-bottom-links a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rh-legal-nav a {
        transition: none;
    }
}
