/* Legal pages — Privacy Policy & Terms (DESIGN4IT theme) */

.legal-page {
    background: #f4f6fc;
    color: #1a2238;
}

.legal-hero {
    position: relative;
    padding: 88px 0 72px;
    background: linear-gradient(135deg, #1a2a6c 0%, #2d3d8a 48%, #3d52b8 100%);
    overflow: hidden;
}

.legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.08) 0%, transparent 38%);
    pointer-events: none;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.legal-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-hero__breadcrumb a:hover {
    color: #fff;
}

.legal-hero__breadcrumb span {
    opacity: 0.55;
}

.legal-hero h1 {
    color: #fff !important;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: left;
}

.legal-hero h1 span {
    color: #c8d4ff;
}

.legal-hero__lead {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.legal-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.legal-hero__meta i {
    opacity: 0.9;
}

.legal-body {
    padding: 56px 0 80px;
}

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

.legal-sidebar {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid #e4e9f5;
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 12px 32px rgba(45, 61, 138, 0.08);
}

.legal-sidebar h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2d3d8a;
    margin: 0 0 14px;
    font-weight: 700;
}

.legal-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-sidebar a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #4a5678;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.legal-sidebar a:hover,
.legal-sidebar a.is-active {
    background: #eef2ff;
    color: #2d3d8a;
    font-weight: 600;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.legal-section {
    background: #fff;
    border: 1px solid #e4e9f5;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 10px 28px rgba(26, 34, 56, 0.05);
    scroll-margin-top: 100px;
}

.legal-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.legal-section__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d3d8a, #4a5fc1);
    color: #fff;
    flex-shrink: 0;
    font-size: 16px;
}

.legal-section h2 {
    font-size: 22px;
    line-height: 1.3;
    color: #1a2238 !important;
    margin: 0;
    font-weight: 700;
}

.legal-section p {
    color: #4a5678 !important;
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 12px;
}

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

.legal-section a {
    color: #2d3d8a;
    font-weight: 600;
    text-decoration: none;
}

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

.legal-cta {
    margin-top: 8px;
    padding: 28px 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1a2a6c 0%, #2d3d8a 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.legal-cta h3 {
    color: #fff !important;
    font-size: 22px;
    margin: 0 0 6px;
}

.legal-cta p {
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 0;
    font-size: 15px;
}

.legal-cta .btn-legal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #fff;
    color: #2d3d8a;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-cta .btn-legal:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #2d3d8a;
}

.legal-page .header_area .menu > .btn_main_right,
.legal-page .header_area .menu ul .btn_main_right {
    display: none !important;
}

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

    .legal-sidebar {
        position: static;
    }

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

@media (max-width: 575px) {
    .legal-hero {
        padding: 72px 0 56px;
    }

    .legal-sidebar nav {
        grid-template-columns: 1fr;
    }

    .legal-section {
        padding: 22px 18px;
    }
}
