/* assets/css/legal.css
   Styles for legal pages (2257, DMCA, Terms, Privacy, Cookies, Contact, Cookie settings)
   and small shared components like the toast notification.
*/

/* Main container for legal pages */
.vc-legal {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    font-size: 15px;
    line-height: 1.6;
}

/* Hero section */
.vc-legal__hero {
    margin-bottom: 32px;
}

.vc-legal__hero h1 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.vc-legal__intro {
    max-width: 720px;
    opacity: 0.9;
}

/* Card blocks (each section) */
.vc-legal-card {
    background: rgba(0, 0, 0, 0.55);
    border-radius: 18px;
    padding: 24px 22px 20px;
    margin-bottom: 24px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.vc-legal-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.vc-legal-card h3 {
    font-size: 1.1rem;
    margin-top: 18px;
    margin-bottom: 6px;
}

/* Small text notes */
.vc-legal__note {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Lists */
.vc-legal-card ul {
    padding-left: 20px;
    margin: 8px 0 8px;
}

.vc-legal-card li {
    margin-bottom: 4px;
}

/* Links inside legal content */
.vc-legal a {
    color: #90ff4f;
    text-decoration: none;
}

.vc-legal a:hover,
.vc-legal a:focus {
    text-decoration: underline;
}

/* Cookie settings controls */
.vc-cookie-settings__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

/* Generic button styles for legal pages
   (override or complement .vc-btn from main.css if needed) */
.vc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.vc-btn--primary {
    background: #7fd63b;
    border-color: #7fd63b;
    color: #02140a;
    font-weight: 600;
}

.vc-btn--primary:hover {
    background: #a3ff5d;
    border-color: #a3ff5d;
    transform: translateY(-1px);
}

.vc-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.vc-btn--ghost:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Small helpers */
.vc-footer__legal-links {
    font-size: 0.85rem;
}

/* Cookie banner (if you use #vcCookieBanner in layout) */
#vcCookieBanner {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: 960px;
    width: calc(100% - 24px);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 18px;
    padding: 14px 16px 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#vcCookieBanner[hidden] {
    display: none !important;
}

.vc-cookie-banner__row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.vc-cookie-banner__text {
    font-size: 0.9rem;
}

.vc-cookie-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Toast notification */
.vc-toast {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.vc-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.vc-toast__inner {
    background: rgba(0, 0, 0, 0.95);
    border-radius: 999px;
    padding: 8px 14px 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    font-size: 0.9rem;
}

.vc-toast__text {
    white-space: nowrap;
}

.vc-toast__close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
}

/* On larger screens keep toast closer to the right side if you prefer */
@media (min-width: 900px) {
    .vc-toast {
        left: auto;
        right: 24px;
        transform: translateX(0) translateY(120%);
    }
    .vc-toast--visible {
        transform: translateX(0) translateY(0);
    }
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .vc-legal {
        padding-top: 28px;
    }

    .vc-legal__hero h1 {
        font-size: 1.7rem;
    }

    .vc-cookie-banner__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .vc-toast__text {
        white-space: normal;
    }
}
