/* ==========================================================================
   Policy pages (terms, privacy, returns...) -- resources/views/front/policies/show.blade.php
   Plain CSS, namespaced `pl`; logical properties, so it mirrors for rtl/ltr.
   The storefront's language: Cairo, #532740, #F2F2F2 borders, radius 10 cards,
   the listing pages' grey title band.
   ========================================================================== */

.pl-page { background: #FFFFFF; font-family: 'Cairo', 'Tajawal', system-ui, sans-serif; color: #080907; }
.pl-page a { text-decoration: none; }

/* ---------- Title band (as on the product listings): #F8F9FA, a hairline under it ---------- */
.pl-band { background: #F8F9FA; border-bottom: 1px solid #EEEEEE; padding-block: 40px 32px; }

.pl-crumbs ol {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 24px; padding: 0; list-style: none;
    font-size: 16px; font-weight: 500; line-height: 1.4; color: #999999;
}
.pl-crumbs a { color: #999999; }
.pl-crumbs a:hover { color: #532740; }
.pl-crumbs [aria-current="page"] { color: #532740; }
.pl-crumbs__sep { display: flex; align-items: center; font-size: 10px; }

/* Title: Cairo 600 / 32 / 1.3, #222222 */
.pl-title { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.3; color: #222222; text-align: start; }
.pl-updated {
    display: flex; align-items: center; gap: 8px; margin: 12px 0 0;
    font-size: 15px; font-weight: 500; line-height: 1.4; color: #737373;
}
.pl-updated i { color: #532740; }

/* ---------- Layout: the document beside a 320px side menu, 32px apart ---------- */
.pl-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start;
    padding-block: 40px 88px;
}

/* ---------- The document card: white, 2px #F2F2F2, radius 10 ---------- */
.pl-card {
    min-width: 0; padding: 40px 48px;
    border: 2px solid #F2F2F2; border-radius: 10px; background: #FFFFFF;
}

.pl-note {
    display: flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 12px 16px;
    border-radius: 8px; background: #F6F0F3; color: #532740;
    font-size: 14px; font-weight: 600; line-height: 1.6;
}

/* The admin's rich text: comfortable measure, generous leading, clear heading steps */
.pl-prose { max-width: 760px; font-size: 16px; font-weight: 400; line-height: 1.9; color: #3D3D3D; text-align: start; }
.pl-prose[lang="en"] { line-height: 1.75; }
.pl-prose > :first-child { margin-top: 0; }
.pl-prose > :last-child { margin-bottom: 0; }

.pl-prose h2,
.pl-prose h3,
.pl-prose h4 { color: #222222; line-height: 1.4; scroll-margin-top: calc(var(--mh-header-h, 80px) + 16px); }
.pl-prose h2 {
    margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 1px solid #F2F2F2;
    font-size: 24px; font-weight: 700;
}
/* A section heading: the brand colour with a short accent before it */
.pl-prose h3 {
    position: relative; margin: 32px 0 12px; padding-inline-start: 16px;
    font-size: 19px; font-weight: 700; color: #532740;
}
.pl-prose h3::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em;
    width: 4px; border-radius: 4px; background: #532740;
}
.pl-prose h4 { margin: 24px 0 8px; font-size: 17px; font-weight: 700; }

.pl-prose p { margin: 0 0 16px; }
.pl-prose ul,
.pl-prose ol { margin: 0 0 16px; padding-inline-start: 24px; }
.pl-prose li { margin-bottom: 8px; padding-inline-start: 4px; }
.pl-prose li::marker { color: #532740; }
.pl-prose strong, .pl-prose b { font-weight: 700; color: #222222; }
.pl-prose a { color: #532740; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pl-prose a:hover { color: #43203A; }
.pl-prose blockquote {
    margin: 0 0 16px; padding: 12px 16px; border-inline-start: 4px solid #E6DCE2;
    border-radius: 4px; background: #FBFAFA; color: #555555;
}
.pl-prose table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 15px; }
.pl-prose th, .pl-prose td { padding: 10px 12px; border: 1px solid #EEEEEE; text-align: start; }
.pl-prose th { background: #FBFAFA; font-weight: 700; }
.pl-prose img { max-width: 100%; height: auto; border-radius: 8px; }

.pl-top {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 32px;
    font-size: 14px; font-weight: 600; color: #737373;
}
.pl-top:hover { color: #532740; }

/* ---------- Side menu: stays in view while reading ---------- */
.pl-aside {
    position: sticky; top: calc(var(--mh-header-h, 80px) + 24px);
    display: flex; flex-direction: column; gap: 16px;
}
.pl-box { padding: 24px; border: 2px solid #F2F2F2; border-radius: 10px; background: #FFFFFF; }
.pl-box__title {
    margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #F2F2F2;
    font-size: 16px; font-weight: 600; line-height: 1.3; color: #222222;
}

.pl-toc__list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: pl-toc; }
.pl-toc__list a {
    display: block; padding: 6px 12px; border-inline-start: 2px solid #EEEEEE;
    font-size: 15px; font-weight: 500; line-height: 1.5; color: #555555;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.pl-toc__list a:hover { border-color: #532740; background: #FBFAFA; color: #532740; }
.pl-toc__sub a { padding-inline-start: 24px; font-size: 14px; }

.pl-links { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pl-links a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
    font-size: 15px; font-weight: 500; line-height: 1.4; color: #222222;
    transition: background-color .15s ease, color .15s ease;
}
.pl-links a i { color: #919191; }
.pl-links a:hover { background: #FBFAFA; color: #532740; }
.pl-links a.is-current { background: #532740; color: #FFFFFF; font-weight: 600; }
.pl-links a.is-current i { color: #FFFFFF; }

.pl-help { background: #FBFAFA; }
.pl-help__text { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.5; color: #222222; }
.pl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    height: 44px; padding: 0 20px; border-radius: 10px; background: #532740; color: #FFFFFF;
    font-size: 15px; font-weight: 600; line-height: 1;
    transition: background-color .15s ease;
}
.pl-page .pl-btn:hover { background: #43203A; color: #FFFFFF; }

.pl-page a:focus-visible { outline: 2px solid #532740; outline-offset: 2px; border-radius: 4px; }

/* ---------- Tablets and phones: one column, the document first ---------- */
@media (max-width: 991.98px) {
    .pl-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 32px 64px; }
    .pl-aside { position: static; }
    /* The sections list is for long reads on a wide screen; below it the document is the list. */
    .pl-toc { display: none; }
}

@media (max-width: 575.98px) {
    .pl-band { padding-block: 24px 20px; }
    .pl-crumbs ol { margin-bottom: 16px; font-size: 14px; }
    .pl-title { font-size: 26px; }
    .pl-card { padding: 24px 20px; }
    .pl-prose { font-size: 15px; }
    .pl-prose h2 { font-size: 21px; }
    .pl-prose h3 { font-size: 17px; }
}
