/* Shared styles for legal pages (refund, shipping). Copied from Terms.cshtml. Prefix lp- */
/* ══════════════════════════════════════════
   LEGAL-PAGE SHARED STYLES  (lp- prefix)
   Scoped here — won't bleed into site CSS
══════════════════════════════════════════ */
.lp-wrap {
    max-width: 960px;
    margin: 2rem auto 4rem;
    padding: 0 1.25rem;
    overflow: visible;
}

.lp-meta {
    background: linear-gradient(90deg,#f0fdf4,#e8f5e9);
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: .7rem 1.1rem;
    font-size: .8rem;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: .75rem;
}

.lp-notice {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 10px;
    padding: .75rem 1.1rem;
    font-size: .84rem;
    color: #92400e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lp-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1.75rem;
    align-items: start;
}

.lp-toc {
    position: sticky !important;
    top: 80px !important;
    height: auto !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 1.25rem 1.1rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.07) !important;
    backdrop-filter: none !important;
    z-index: 1 !important;
    scrollbar-width: thin;
}

.lp-toc-heading {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4CAF50;
    padding-bottom: .6rem;
    border-bottom: 1.5px solid #e2e8f0;
    margin-bottom: .75rem;
    display: block;
}

.lp-toc ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.lp-toc ul li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lp-toc ul li a {
    display: block !important;
    font-size: .84rem !important;
    color: #374151 !important;
    padding: .4rem .55rem !important;
    border-radius: 7px !important;
    text-decoration: none !important;
    line-height: 1.45 !important;
    transition: background .13s, color .13s !important;
    background: transparent !important;
}

.lp-toc ul li a:hover {
    background: #f0fdf4 !important;
    color: #2B3BAB !important;
}

.lp-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-section {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    scroll-margin-top: 90px;
    transition: box-shadow .18s;
}

.lp-section:hover {
    box-shadow: 0 4px 18px rgba(43,59,171,.07);
}

.lp-sh {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .75rem;
}

.lp-badge {
    flex-shrink: 0;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .4rem;
    background: linear-gradient(135deg,#4CAF50,#5fa81e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .03em;
}

.lp-stitle {
    font-size: 1rem;
    font-weight: 700;
    color: #0e1422;
    line-height: 1.3;
}

.lp-body {
    font-size: .9rem;
    color: #374151;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .lp-layout {
        grid-template-columns: 1fr;
    }
    .lp-toc {
        display: none !important;
    }
    .lp-section {
        padding: 1.1rem 1rem;
    }
    .lp-wrap {
        margin-top: 1.25rem;
    }
}

/* summary box at the top of a policy */
.lp-summary { background:#fff; border:1.5px solid #c8e6c9; border-radius:14px; padding:1.1rem 1.3rem; margin-bottom:1.25rem; }
.lp-summary-h { font-weight:800; color:#2e7d32; font-size:.9rem; margin-bottom:.55rem; }
.lp-summary ul { margin:0; padding-left:1.15rem; font-size:.88rem; color:#374151; line-height:1.75; }
.lp-body ul { margin:.4rem 0 .4rem 1.15rem; padding:0; }
.lp-body li { margin:.15rem 0; }
.lp-body a { color:#2B3BAB; font-weight:600; }
.lp-table { width:100%; border-collapse:collapse; font-size:.86rem; margin:.5rem 0; }
.lp-table th, .lp-table td { text-align:left; padding:.55rem .6rem; border-bottom:1px solid #eef2f7; vertical-align:top; }
.lp-table th { color:#64748b; font-size:.74rem; text-transform:uppercase; letter-spacing:.04em; }
