/**
 * Modern Legal & Policy Pages Styling
 * Applied to: Return Policy, Privacy Policy, Terms & Conditions, Disclaimer
 */
.gg-legal-hero {
    background: linear-gradient(135deg, #1f4e78 0%, #0d2642 100%);
    padding: clamp(48px, 5vw, 64px) 0 clamp(40px, 4.5vw, 54px);
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gg-legal-hero .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.gg-legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.gg-legal-hero h1,
.gg-legal-hero h1 * {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.gg-legal-hero p,
.gg-legal-hero p * {
    font-size: clamp(15px, 2vw, 17px);
    color: #ffffff !important;
    line-height: 1.65;
    max-width: 740px;
    margin: 0 auto 22px;
    opacity: 0.95;
}

.gg-legal-meta-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 13px;
    color: #ffffff !important;
    opacity: 0.9;
}

.gg-legal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
}

/* Page Body Layout */
.gg-legal-body {
    background: #f8fafc;
    padding: clamp(36px, 4vw, 56px) 0 clamp(48px, 5vw, 72px);
}

.gg-legal-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.gg-legal-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    padding: clamp(24px, 4vw, 48px);
    margin-bottom: 30px;
}

.gg-legal-card h2 {
    font-size: 21px;
    font-weight: 800;
    color: #0f2438;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gg-legal-card h2:first-of-type {
    margin-top: 10px;
}

.gg-legal-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f4e78;
    margin-top: 22px;
    margin-bottom: 10px;
}

.gg-legal-card p {
    font-size: 15px;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 16px;
}

.gg-legal-card ul,
.gg-legal-card ol {
    margin: 0 0 20px 20px;
    padding: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
}

.gg-legal-card li {
    margin-bottom: 8px;
}

.gg-legal-card a {
    color: #0073ea;
    text-decoration: underline;
    font-weight: 600;
}

.gg-legal-card a:hover {
    color: #005fcf;
}

/* Callout Highlights */
.gg-callout {
    padding: 18px 22px;
    border-radius: 10px;
    margin: 22px 0;
    font-size: 14.5px;
    line-height: 1.65;
}

.gg-callout-info {
    background: #eff6ff;
    border-left: 4px solid #0073ea;
    color: #1e40af;
}

.gg-callout-info strong {
    color: #1e3a8a;
}

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

.gg-callout-warning strong {
    color: #78350f;
}

.gg-callout-success {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #166534;
}

/* Quick Jump / Sticky Navigation Sidebar */
.gg-legal-sidebar {
    position: sticky;
    top: 24px;
}

.gg-toc-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    padding: 22px 20px;
    margin-bottom: 24px;
}

.gg-toc-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f2438;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gg-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gg-toc-list li {
    margin-bottom: 8px;
}

.gg-toc-link {
    display: block;
    font-size: 13.5px;
    color: #475569;
    text-decoration: none !important;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.18s ease;
    line-height: 1.4;
}

.gg-toc-link:hover,
.gg-toc-link.active {
    background: #eff6ff;
    color: #0073ea;
    font-weight: 600;
    transform: translateX(3px);
}

/* Bottom Help Banner */
.gg-legal-help-banner {
    background: linear-gradient(135deg, #1f4e78 0%, #153a5c 100%);
    border-radius: 14px;
    padding: 30px;
    color: #ffffff;
    text-align: center;
    margin-top: 30px;
}

.gg-legal-help-banner h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 8px;
}

.gg-legal-help-banner p {
    font-size: 14.5px;
    color: #dbeafe !important;
    margin: 0 0 18px;
}

.gg-legal-help-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gg-btn-legal-help {
    background: #0073ea;
    color: #ffffff !important;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.18s ease;
}

.gg-btn-legal-help:hover {
    background: #005fcf;
}

.gg-btn-legal-ghost {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.18s ease;
}

.gg-btn-legal-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 991px) {
    .gg-legal-sidebar {
        position: static;
        margin-bottom: 24px;
    }
}
