* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    color: #e8e6eb;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 40, 65, 0.08),
            transparent 38%
        ),
        #08080b;

    font-family: "Segoe UI", Arial, sans-serif;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );
}

.legal-page {
    position: relative;
    z-index: 1;

    width: min(900px, calc(100% - 40px));

    margin: 0 auto;
    padding: 45px 0 80px;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom: 1px solid #19181d;
}

.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #fff;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-decoration: none;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    color: #ff304b;

    background: #120d0f;

    border: 1px solid #30252a;
    border-radius: 8px;

    box-shadow:
        0 0 16px rgba(255, 48, 75, 0.08);
}

.brand strong {
    color: #ff304b;
}

.back-link {
    color: #77737d;

    font-size: 11px;

    text-decoration: none;

    transition: color 150ms ease;
}

.back-link:hover {
    color: #ff304b;
}

.legal-heading {
    padding: 70px 0 45px;
}

.legal-label {
    margin: 0 0 12px;

    color: #ff304b;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2.5px;
}

.legal-heading h1 {
    margin: 0;

    color: #f7f6f8;

    font-size: clamp(34px, 6vw, 52px);
    font-weight: 700;

    letter-spacing: -1.5px;
}

.legal-heading p {
    max-width: 650px;

    margin: 18px 0 0;

    color: #85818b;

    font-size: 13px;
    line-height: 1.8;
}

.legal-content {
    padding: 35px;

    background: rgba(15, 15, 19, 0.72);

    border: 1px solid #211f25;
    border-radius: 14px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.3);
}

.legal-content h2 {
    margin: 35px 0 12px;

    color: #f1eff3;

    font-size: 18px;
    font-weight: 700;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin: 25px 0 10px;

    color: #ddd9e0;

    font-size: 14px;
}

.legal-content p,
.legal-content li {
    color: #92909a;

    font-size: 13px;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-content li {
    margin: 7px 0;
}

.legal-content strong {
    color: #d9d6dc;
}

.legal-content a {
    color: #ff4058;

    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.notice {
    margin: 0 0 30px;
    padding: 15px 17px;

    color: #a9a5ae;

    background: rgba(255, 48, 75, 0.045);

    border-left: 2px solid #ff304b;
    border-radius: 0 7px 7px 0;

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

.legal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    margin-top: 35px;
    padding-top: 25px;

    border-top: 1px solid #19181d;

    color: #55525b;
    font-size: 10px;

    text-align: center;
}

.discord-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    color: #65616b;

    border: 1px solid #211f25;
    border-radius: 8px;

    background: rgba(15, 15, 19, 0.5);

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

.discord-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.discord-link:hover {
    color: #ff304b;
    border-color: #3a2027;
    background: rgba(255, 48, 75, 0.06);
    box-shadow: 0 0 14px rgba(255, 48, 75, 0.12);
}

.legal-footer-links {
    display: flex;
    gap: 20px;
}

.legal-footer a {
    color: #65616b;

    text-decoration: none;
}

.legal-footer a:hover {
    color: #ff304b;
}

@media (max-width: 650px) {
    .legal-page {
        width: min(100% - 28px, 900px);
        padding-top: 25px;
    }

    .legal-heading {
        padding: 50px 0 30px;
    }

    .legal-content {
        padding: 24px;
    }

    .legal-footer {
        flex-direction: column;
    }
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 48, 75, 0.8);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff304b;
}

/* Success Page */

.success-card {
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 35px auto 24px;

    border: 1px solid rgba(255, 48, 75, 0.35);
    border-radius: 50%;

    color: #ff304b;
    background: rgba(255, 48, 75, 0.06);

    font-size: 30px;
    font-weight: 700;

    box-shadow:
        0 0 25px rgba(255, 48, 75, 0.12),
        inset 0 0 20px rgba(255, 48, 75, 0.04);
}

.success-card h1 {
    margin-bottom: 10px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;

    margin-top: 32px;
}

.success-button,
.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

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

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

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

.success-button {
    color: #ffffff;
    background: #ff304b;
    border: 1px solid #ff304b;
}

.success-button:hover {
    background: #ff4058;
    transform: translateY(-1px);
}

.discord-button {
    color: #f5f5f7;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #29272f;
}

.discord-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #3a3742;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .success-actions {
        flex-direction: column;
    }

    .success-button,
    .discord-button {
        width: 100%;
    }
}

/* =========================================
   VulnDrive Success Page
   ========================================= */

.success-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 48, 75, 0.08),
            transparent 38%
        ),
        #08080b;
}

.success-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-card {
    width: 100%;
    max-width: 620px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 15, 19, 0.94);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(255, 48, 75, 0.04);
    text-align: center;
}

.success-check {
    width: 54px;
    height: 54px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 48, 75, 0.35);
    border-radius: 50%;
    background: rgba(255, 48, 75, 0.08);
    color: #ff304b;
    font-size: 23px;
    font-weight: 700;
}

.success-label {
    margin-bottom: 12px;
    color: #ff304b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.success-card h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -1.2px;
    line-height: 1.1;
}

.success-description {
    max-width: 470px;
    margin: 16px auto 32px;
    color: #92929a;
    font-size: 14px;
    line-height: 1.7;
}

/* License */

.license-box {
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 48, 75, 0.22);
    border-radius: 12px;
    background: #0a0a0d;
    text-align: left;
    box-shadow:
        inset 0 0 30px rgba(255, 48, 75, 0.025);
}

.license-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    color: #77777f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.license-status {
    color: #ff304b;
}

.license-key-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
}

.license-key {
    min-width: 0;
    flex: 1;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #27272e;
    border-radius: 8px;
    outline: none;
    background: #111116;
    color: #f5f5f7;
    font-family:
        "Cascadia Code",
        "Consolas",
        monospace;
    font-size: 12px;
    letter-spacing: 0.2px;
    user-select: text;
    -webkit-user-select: text;
}

.license-key:focus {
    border-color: rgba(255, 48, 75, 0.5);
}

.copy-button {
    height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255, 48, 75, 0.35);
    border-radius: 8px;
    background: rgba(255, 48, 75, 0.08);
    color: #ff304b;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.copy-button:hover {
    border-color: #ff304b;
    background: rgba(255, 48, 75, 0.14);
}

.copy-button:active {
    transform: translateY(1px);
}

.copy-button.copied {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
}

.license-hint {
    margin-top: 11px;
    color: #5f5f67;
    font-size: 11px;
}

/* Details */

.license-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    text-align: left;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    color: #5f5f67;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.detail-item strong {
    color: #d8d8dd;
    font-size: 13px;
    font-weight: 600;
}

.detail-divider {
    width: 1px;
    height: 30px;
    background: #29292f;
}

.success-message {
    min-height: 20px;
    margin: 18px 0 0;
    color: #77777f;
    font-size: 12px;
    line-height: 1.5;
}

/* Actions */

.success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.success-button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ff304b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.success-button:hover {
    background: #ff4058;
    transform: translateY(-1px);
}

.success-discord {
    color: #696970;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.success-discord:hover {
    color: #ffffff;
}

/* Mobile */

@media (max-width: 600px) {
    .success-container {
        padding: 20px 14px;
    }

    .success-card {
        padding: 32px 20px;
        border-radius: 14px;
    }

    .license-key-wrapper {
        flex-direction: column;
    }

    .copy-button {
        width: 100%;
    }

    .license-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .detail-divider {
        width: 100%;
        height: 1px;
    }
}