/* ─────────────────────────────────────────
   projects.css  –  Magnico Projects & Partners
   ───────────────────────────────────────── */

/* ── global base: same font + colors as index.html ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0f0f0f;
    color: #e8e8e8;
    /* flex column so footer always sits right after content */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* the <main> wrapper inserted by base.html grows to fill all available space */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── shared page background ── */
.page-body {
    background: #0a0a0a;
    color: #e8e8e8;
}

/* ── PAGE HERO (list page) ── */
.page-hero {
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px 60px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-hero-content { max-width: 860px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }

.page-hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #fff;
    margin: 12px 0 16px;
    line-height: 1.05;
}

.page-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}

/* ── PROJECTS SECTION ── */
.projects-section {
    padding: 80px 40px 100px;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 100%);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* ── PROJECT CARD ── */
.project-card {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #1f1f1f;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-img {
    transform: scale(1.06);
}

.project-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.project-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.project-card-body {
    padding: 24px 24px 28px;
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.project-card-meta svg {
    width: 13px;
    height: 13px;
    fill: rgba(255,255,255,0.35);
    flex-shrink: 0;
}

.project-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.project-card-scope {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.55;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.4px;
    transition: color 0.2s, gap 0.2s;
}

.project-card:hover .project-card-cta {
    color: #fff;
    gap: 10px;
}

.project-card-cta svg {
    width: 14px;
    height: 14px;
}

/* ── PAGINATION ── */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
}

.pagination-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.pagination-btn--disabled {
    opacity: 0.3;
    cursor: default;
}

.pagination-pages {
    display: flex;
    gap: 6px;
}

.pagination-page {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.pagination-page:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.pagination-page--active {
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
    font-weight: 700;
}

/* ── EMPTY STATE ── */
.projects-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.3);
    font-size: 18px;
}

/* ─────────────────────────────────────────
   DETAIL PAGE
   ───────────────────────────────────────── */

.detail-hero {
    margin-top: 80px;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: #141414;
    position: relative;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 56px;
    max-width: 900px;
    color: #fff;
    margin: 0 auto; 
    text-align: center;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.detail-back-link:hover { color: #fff; }
.detail-back-link svg { width: 16px; height: 16px; }

.detail-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.detail-hero-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.08;
    margin-bottom: 16px;
}

.detail-hero-location {
    /* display: flex; */
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    text-align: center;
}

.detail-hero-location svg {
    width: 16px;
    height: 16px;
    fill: rgba(255,255,255,0.5);
}

/* ── DETAIL BODY ── */
.detail-body {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    padding: 0 0 100px;
}

.detail-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Meta strip */
.detail-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    margin-top: -30px;
    position: relative;
    z-index: 3;
    margin-bottom: 56px;
}

.detail-meta-item {
    background: #121212;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.detail-meta-value {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

/* Description */
.detail-description h2,
.detail-gallery-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.detail-description-text {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255,255,255,0.65);
    margin-bottom: 56px;
}

.detail-description-text p { margin-bottom: 14px; }

/* Gallery */
.detail-gallery-section { margin-bottom: 60px; }

.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    background: #1a1a1a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    padding: 24px 12px 10px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-caption {
    margin-top: 16px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

/* CTA box */
.detail-cta-box {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
}

.detail-cta-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.detail-cta-box p {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    margin-bottom: 32px;
}

/* ─────────────────────────────────────────
   HOME PAGE – PROJECTS TEASER SECTION
   ───────────────────────────────────────── */

.home-projects-section {
    padding: 100px 40px;
    background: #0f0f0f;
}

.home-projects-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
    display: block;
}

.section-heading {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.08;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 52px;
    max-width: 540px;
}

.home-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.home-projects-footer {
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 36px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.btn-outline svg { width: 18px; height: 18px; }

/* ─────────────────────────────────────────
   PARTNERS FULL PAGE
   ───────────────────────────────────────── */

.partners-full-section {
    padding: 80px 40px 100px;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 100%);
}

.partners-full-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-logos-grid--full {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ─────────────────────────────────────────
   HOME PAGE – PARTNERS SECTION
   ───────────────────────────────────────── */

.home-partners-section {
    padding: 90px 40px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.home-partners-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.partner-logo-card {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    min-height: 100px;
    transition: border-color 0.25s, background 0.25s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}


.partner-logo-card > h3 {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-align: center;
    letter-spacing: 0.5px;
}

.partner-logo-card:hover {
    border-color: rgba(255,255,255,0.18);
    background: #1a1a1a;
}

.partner-logo-card img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    /* filter: brightness(0) invert(0.75); */
    transition: filter 0.25s;
}

.partner-logo-card:hover img {
    filter: brightness(0) invert(1);
}

.partner-logo-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-align: center;
    letter-spacing: 0.5px;
    transition: color 0.25s;
}

.partner-logo-card:hover .partner-logo-name {
    color: rgba(255,255,255,0.85);
}

.partners-empty-note {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.25);
    font-size: 15px;
    padding: 40px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */

@media (max-width: 768px) {
    .page-hero { padding: 60px 24px 40px; }
    .projects-section { padding: 48px 20px 60px; }
    .projects-grid { grid-template-columns: 1fr; }
    .detail-hero { min-height: 360px; }
    .detail-hero-content { padding: 32px 24px; }
    .detail-container { padding: 0 20px; }
    .detail-meta-strip { grid-template-columns: 1fr 1fr; margin-top: 0; border-radius: 0; }
    .home-projects-section,
    .home-partners-section { padding: 64px 20px; }
    .home-projects-grid { grid-template-columns: 1fr; }
    .partners-logos-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-full-section { padding: 48px 20px 60px; }
    .partners-logos-grid--full { grid-template-columns: repeat(2, 1fr); }
}


/* ===============================================================
   PRODUCTS LIST PAGE
   =============================================================== */

.products-filter-section {
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0 40px;
}

.products-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.22s;
    background: transparent;
}

.filter-btn:hover {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.filter-btn--active {
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
    font-weight: 700;
}

.prod-list-section {
    padding: 60px 40px 100px;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f0f 100%);
}

.prod-list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.prod-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.prod-list-card {
    display: flex;
    flex-direction: column;
    background: #141414;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.prod-list-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 22px 52px rgba(0,0,0,0.5);
}

.prod-list-card-img {
    background: linear-gradient(135deg, #1e1e2e 0%, #252538 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    overflow: hidden;
}

.prod-list-card-img img {
    width: 100%;
    max-width: 280px;
    height: 160px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: brightness(0) invert(1);
}

.prod-list-card:hover .prod-list-card-img img {
    transform: scale(1.05);
}

.prod-list-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 24px 28px;
    flex: 1;
}

.prod-list-card-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.prod-list-card-body p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.prod-list-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s, gap 0.2s;
}

.prod-list-card-btn svg {
    width: 13px;
    height: 13px;
    transition: transform 0.2s;
}

.prod-list-card:hover .prod-list-card-btn { color: #fff; gap: 10px; }
.prod-list-card:hover .prod-list-card-btn svg { transform: translateX(3px); }

@media (max-width: 900px) {
    .prod-list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .prod-list-grid { grid-template-columns: 1fr; }
    .prod-list-section { padding: 40px 20px 80px; }
    .products-filter-section { padding: 0 20px; }
}

/* ===============================================================
   PRODUCT CATEGORY DETAIL PAGE
   =============================================================== */

.prod-detail-hero {
    margin-top: 80px;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f0f 100%);
    overflow: hidden;
}

.prod-detail-hero-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
}

.prod-detail-hero-img img {
    width: 55%;
    max-width: 480px;
    object-fit: contain;
}

.prod-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,20,0.96) 0%, rgba(10,10,20,0.5) 60%, transparent 100%);
}

.prod-detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 56px;
    max-width: 860px;
    color: #fff;
    width: 100%;
}

.prod-detail-hero-content h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -1.2px;
    line-height: 1.08;
    margin: 14px 0 16px;
}

.prod-detail-hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    max-width: 540px;
    line-height: 1.7;
}

.prod-detail-body {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    padding: 60px 0 100px;
}

.prod-detail-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
}

.prod-detail-intro {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255,255,255,0.7);
    margin-bottom: 52px;
    border-left: 3px solid rgba(255,255,255,0.15);
    padding-left: 24px;
}

.prod-detail-features h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.4px;
}

.prod-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 56px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prod-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
}

.prod-feature-list li::before {
    content: "✓";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 700;
}

.prod-detail-cta {
    text-align: center;
    padding-top: 20px;
}

@media (max-width: 640px) {
    .prod-detail-hero-content { padding: 40px 24px; }
    .prod-detail-container { padding: 0 20px; }
}

/* ===============================================================
   LEGAL PAGES (Privacy Policy & Terms of Use)
   =============================================================== */

.legal-content-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    padding: 72px 40px 120px;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content .legal-intro {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255,255,255,0.6);
    margin-bottom: 52px;
    padding: 24px 28px;
    border-left: 3px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    border-radius: 0 8px 8px 0;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 48px 0 14px;
    letter-spacing: -0.3px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.legal-content p {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255,255,255,0.62);
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 0 0 20px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-content ul li {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.62);
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 7px;
    padding-left: 40px;
    position: relative;
}

.legal-content ul li::before {
    content: "–";
    position: absolute;
    left: 16px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.legal-content a {
    color: rgba(160,180,230,0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(160,180,230,0.3);
    transition: color 0.2s, border-color 0.2s;
}

.legal-content a:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
}

.legal-content strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-content-section { padding: 48px 24px 80px; }
    .legal-content h2 { font-size: 18px; }
    .legal-content .legal-intro { font-size: 15px; }
}
