/* =====================================================================
   Greenway Transfers — Legal pages (Privacy Policy & Terms)
   ===================================================================== */

/* ── Hero ── */
.lg-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0f2447 65%, #0097B2 100%);
    padding: 72px 24px 60px;
    position: relative;
    overflow: hidden;
}

.lg-hero--terms {
    background: linear-gradient(135deg, #0a1628 0%, #0f2447 65%, #2d6a4f 100%);
}

.lg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.lg-hero__inner {
    position: relative;
    max-width: 800px;
}

.lg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.lg-hero__title {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 18px;
}

.lg-hero__meta {
    font-size: 13.5px;
    color: rgba(255,255,255,.60);
}

.lg-hero__meta strong { color: rgba(255,255,255,.85); }

/* ── Layout ── */
.lg-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    padding-top: 52px;
    padding-bottom: 80px;
    align-items: start;
}

/* ── TOC sidebar ── */
.lg-toc {
    position: sticky;
    top: 96px;
}

.lg-toc__inner {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border-left: 3px solid #0097B2;
}

.lg-hero--terms ~ .lg-layout .lg-toc__inner,
.lg-hero--terms + .lg-layout .lg-toc__inner {
    border-left-color: #2d6a4f;
}

.lg-toc__heading {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9aa0b5;
    margin: 0 0 14px;
}

.lg-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lg-toc__list li { list-style: none; }

.lg-toc__list a {
    display: block;
    font-size: 12.5px;
    color: #5a6272;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    line-height: 1.4;
    transition: background .15s, color .15s;
}

.lg-toc__list a:hover {
    background: #f0f9ff;
    color: #0097B2;
}

/* ── Main prose ── */
.lg-main {
    min-width: 0;
}

.lg-prose {
    font-size: 15.5px;
    line-height: 1.8;
    color: #374151;
}

.lg-prose section {
    margin-bottom: 52px;
    padding-top: 8px;
}

.lg-prose h2 {
    font-size: 20px;
    font-weight: 800;
    color: #14213d;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f4f8;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.lg-prose h3 {
    font-size: 15px;
    font-weight: 700;
    color: #14213d;
    margin: 24px 0 10px;
}

.lg-prose p { margin: 0 0 14px; }

.lg-prose ul, .lg-prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.lg-prose li { margin-bottom: 8px; }

.lg-prose strong { color: #14213d; font-weight: 700; }

.lg-prose a {
    color: #0097B2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lg-prose a:hover { color: #007a91; }

/* Intro highlight box */
.lg-intro-box {
    background: #f0f9ff;
    border-left: 4px solid #0097B2;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin-bottom: 44px;
    font-size: 15px;
    color: #14213d;
    line-height: 1.7;
}

.lg-intro-box p { margin: 0; }

/* Info card (company details) */
.lg-info-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

.lg-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f4f8;
    font-size: 14px;
}

.lg-info-row:last-child { border-bottom: none; }

.lg-info-row span {
    min-width: 140px;
    color: #8a8fa4;
    font-weight: 500;
    flex-shrink: 0;
}

.lg-info-row strong { color: #14213d; }

/* Table */
.lg-table-wrap {
    overflow-x: auto;
    margin: 16px 0 20px;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.lg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lg-table thead {
    background: #14213d;
    color: #fff;
}

.lg-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .04em;
    white-space: nowrap;
}

.lg-table tbody tr { border-bottom: 1px solid #f1f4f8; }
.lg-table tbody tr:last-child { border-bottom: none; }
.lg-table tbody tr:hover { background: #f8fafc; }
.lg-table tbody td { padding: 12px 16px; vertical-align: top; }

.lg-green { color: #16a34a; font-weight: 700; }
.lg-amber { color: #d97706; font-weight: 700; }
.lg-red   { color: #dc2626; font-weight: 700; }

/* ARCO rights grid */
.lg-rights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0 24px;
}

.lg-right-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lg-right-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0097B2;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
}

.lg-right-box strong {
    font-size: 13.5px;
    color: #14213d;
    display: block;
}

.lg-right-box p {
    font-size: 12px;
    color: #5a6272;
    line-height: 1.5;
    margin: 0;
}

/* Alert boxes */
.lg-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
}

.lg-alert svg { flex-shrink: 0; margin-top: 2px; }
.lg-alert p { margin: 0; }

.lg-alert--info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.lg-alert--info svg { stroke: #3b82f6; }

.lg-alert--warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.lg-alert--warning svg { stroke: #f59e0b; }

/* Payment methods */
.lg-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 20px;
}

.lg-payment-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
}

.lg-payment-item svg { flex-shrink: 0; margin-top: 2px; }

.lg-payment-item strong {
    display: block;
    font-size: 14.5px;
    color: #14213d;
    margin-bottom: 4px;
}

.lg-payment-item p {
    font-size: 13.5px;
    color: #5a6272;
    line-height: 1.55;
    margin: 0;
}

/* Contact grid */
.lg-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.lg-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.lg-contact-card:hover {
    border-color: #0097B2;
    box-shadow: 0 4px 16px rgba(0,151,178,.12);
}

.lg-contact-card svg { flex-shrink: 0; }

.lg-contact-card strong {
    display: block;
    font-size: 13.5px;
    color: #14213d;
    margin-bottom: 3px;
}

.lg-contact-card span {
    font-size: 13px;
    color: #5a6272;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .lg-layout {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }
    .lg-rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lg-layout {
        grid-template-columns: 1fr;
        padding-top: 32px;
        padding-bottom: 56px;
    }
    .lg-toc {
        position: static;
    }
    .lg-toc__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    .lg-rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lg-contact-grid {
        grid-template-columns: 1fr;
    }
    .lg-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .lg-info-row span { min-width: unset; }
}

@media (max-width: 480px) {
    .lg-hero { padding: 52px 20px 44px; }
    .lg-rights-grid { grid-template-columns: repeat(2, 1fr); }
    .lg-toc__list { grid-template-columns: 1fr; }
}
