/* ================================================================
   Avesta Travel - Legal Policy Page
   Clean, text-first legal layout
================================================================ */

.page-legal {
    background: #fafaf8;
}

.lp-hero {
    position: relative;
    background: #0f0f0f;
    color: #fff;
    padding: 122px 0 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 93, 4, 0.65), transparent);
}

.lp-hero-inner {
    position: relative;
    z-index: 1;
}

.lp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
    font-weight: 700;
}

.lp-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.16s ease;
}

.lp-breadcrumb a:hover {
    color: #fff;
}

.lp-heading {
    max-width: 860px;
}

.lp-kicker {
    display: inline-block;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 2px solid var(--primary, #e85d04);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
}

.lp-heading h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display, Georgia, serif);
    font-size: 3.05rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

.lp-heading p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 1rem;
    line-height: 1.78;
}

.lp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.84rem;
    font-weight: 650;
}

.lp-meta span + span {
    position: relative;
    padding-left: 18px;
}

.lp-meta span + span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
    transform: translateY(-50%);
}

.lp-meta strong {
    color: #fff;
    font-weight: 800;
}

.lp-main {
    padding: 58px 0 84px;
}

.lp-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 860px);
    gap: 52px;
    align-items: start;
}

.lp-sidebar {
    position: sticky;
    top: 112px;
    padding-top: 4px;
}

.lp-sidebar-title {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
}

.lp-toc {
    display: grid;
    gap: 2px;
    padding-left: 18px;
    border-left: 1px solid #d8dee8;
}

.lp-toc a {
    display: block;
    padding: 7px 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.42;
    transition: color 0.16s ease, transform 0.16s ease;
}

.lp-toc a.is-child {
    padding-left: 12px;
    color: #7c8798;
    font-size: 0.82rem;
    font-weight: 600;
}

.lp-toc a:hover {
    color: var(--primary-dark, #c2410c);
    transform: translateX(2px);
}

.lp-document {
    min-width: 0;
    max-width: 860px;
    overflow: hidden;
}

.lp-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.9;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.lp-content > *:first-child {
    margin-top: 0;
}

.lp-content *,
.lp-content *::before,
.lp-content *::after {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lp-content h1,
.lp-content h2,
.lp-content h3,
.lp-content h4 {
    color: #0f172a;
    letter-spacing: 0;
    scroll-margin-top: 112px;
}

.lp-content h1 {
    margin: 0 0 22px;
    font-family: var(--font-display, Georgia, serif);
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.16;
}

.lp-content h2 {
    margin: 46px 0 16px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.lp-content h3 {
    margin: 30px 0 10px;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.36;
}

.lp-content h4 {
    margin: 24px 0 8px;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    font-weight: 900;
}

.lp-content p {
    margin: 0 0 18px;
    max-width: 72ch;
}

.lp-content ul,
.lp-content ol {
    margin: 14px 0 24px;
    padding-left: 24px;
}

.lp-content ul {
    list-style: disc;
}

.lp-content ol {
    list-style: decimal;
}

.lp-content li {
    margin: 0 0 9px;
    padding-left: 2px;
    max-width: 72ch;
}

.lp-content a {
    color: var(--primary-dark, #c2410c);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.lp-content blockquote {
    margin: 28px 0;
    padding: 2px 0 2px 18px;
    border-left: 2px solid var(--primary, #e85d04);
    color: #475569;
    font-weight: 650;
}

.lp-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 26px 0;
    background: transparent;
    table-layout: fixed;
    -webkit-overflow-scrolling: touch;
}

.lp-content th,
.lp-content td {
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 0;
    text-align: left;
    vertical-align: top;
}

.lp-content th {
    color: #0f172a;
    font-weight: 900;
}

.lp-content td + td,
.lp-content th + th {
    padding-left: 24px;
}

.lp-content img,
.lp-content video,
.lp-content iframe {
    height: auto;
    max-width: 100%;
}

.lp-assistance {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid #d8dee8;
}

.lp-assistance-copy h2 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0;
}

.lp-assistance-copy p {
    max-width: 610px;
    margin: 0;
    color: #64748b;
    line-height: 1.68;
}

.lp-assistance-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lp-assistance-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #0f172a;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 850;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.lp-assistance-actions a + a {
    background: transparent;
    color: #0f172a;
}

.lp-assistance-actions a:hover {
    border-color: var(--primary-dark, #c2410c);
    background: var(--primary-dark, #c2410c);
    color: #fff;
}

@media (max-width: 1024px) {
    .lp-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .lp-sidebar {
        position: static;
        padding-top: 0;
    }

    .lp-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
    }
}

@media (max-width: 760px) {
    .lp-hero {
        padding: 96px 0 42px;
    }

    .lp-breadcrumb {
        margin-bottom: 22px;
        font-size: 0.76rem;
    }

    .lp-heading h1 {
        font-size: 2.16rem;
    }

    .lp-heading p {
        font-size: 0.95rem;
    }

    .lp-main {
        padding: 40px 0 58px;
    }

    .lp-toc {
        grid-template-columns: 1fr;
    }

    .lp-content {
        font-size: 0.96rem;
        line-height: 1.82;
    }

    .lp-content h1 {
        font-size: 1.76rem;
    }

    .lp-content h2 {
        margin-top: 36px;
        padding-top: 20px;
        font-size: 1.42rem;
    }

    .lp-assistance {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lp-assistance-actions {
        justify-content: stretch;
    }

    .lp-assistance-actions a {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .lp-heading h1 {
        font-size: 1.88rem;
    }

    .lp-meta {
        display: grid;
        gap: 7px;
    }

    .lp-meta span + span {
        padding-left: 0;
    }

    .lp-meta span + span::before {
        display: none;
    }

    .lp-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
