/* Parin Jewellers – legal pages (Figma: Parin Jewellers – Terms & Conditions (Redesign) + Mobile).
   Builds on css/home-v2.css. Used by terms_condition.php through partials/pj_legal.php. */

.pj-legal-page .pj-eyebrow {
    font-size: 12px;
    letter-spacing: 2.64px;
}

/* Breadcrumb (same as the other redesigned pages) */
.pj-home .pj-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--pj-muted);
}

.pj-crumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pj-crumbs li + li::before {
    content: "/";
    color: var(--pj-gold);
}

.pj-home .pj-crumbs a:hover {
    color: var(--pj-maroon);
}

.pj-home .pj-crumbs [aria-current] {
    font-weight: 500;
    color: var(--pj-ink);
}

/* ---------- Page header ---------- */
.pj-lhead {
    padding: 56px 0;
    background: var(--pj-sand);
}

.pj-lhead .pj-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.pj-home .pj-lhead__title {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 56px;
    line-height: 1.05;
    color: var(--pj-ink);
}

.pj-home .pj-lhead__lead {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--pj-muted);
}

.pj-home .pj-lhead__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.pj-home .pj-lhead__meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    font-size: 12px;
    color: var(--pj-ink);
}

.pj-lhead__meta li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pj-gold);
}

/* ---------- Body: sidebar + content ---------- */
.pj-lbody {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 72px;
    padding-top: 72px;
    padding-bottom: 96px;
}

.pj-lside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pj-ltoc,
.pj-lpolicies {
    border: 1px solid var(--pj-line);
    border-radius: 20px;
    background: #fff;
}

.pj-ltoc__details {
    padding: 24px 20px;
}

.pj-home .pj-ltoc__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    list-style: none;
    pointer-events: none; /* always open on desktop */
}

.pj-ltoc__summary::-webkit-details-marker {
    display: none;
}

.pj-ltoc__summary > .pj-icon {
    display: none;
}

.pj-home .pj-ltoc__label,
.pj-home .pj-lside__label {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1.98px;
    text-transform: uppercase;
    color: var(--pj-gold-text);
}

.pj-ltoc__count {
    display: none;
}

.pj-home .pj-ltoc__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pj-home .pj-ltoc__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pj-muted);
    transition: background-color 0.2s var(--pj-ease), color 0.2s var(--pj-ease);
}

.pj-home .pj-ltoc__list a span {
    flex: none;
    font-weight: 500;
    font-size: 11px;
    color: var(--pj-gold);
}

.pj-home .pj-ltoc__list a:hover {
    color: var(--pj-maroon);
}

.pj-home .pj-ltoc__list a.is-active {
    background: var(--pj-sand);
    font-weight: 500;
    color: var(--pj-maroon);
}

.pj-home .pj-ltoc__list a.is-active span {
    color: var(--pj-maroon);
}

.pj-lpolicies {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
}

.pj-home .pj-lpolicies ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pj-home .pj-lpolicies a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--pj-ink);
}

.pj-lpolicies a .pj-icon {
    color: var(--pj-faint);
    transition: transform 0.2s var(--pj-ease), color 0.2s var(--pj-ease);
}

.pj-home .pj-lpolicies a:hover,
.pj-home .pj-lpolicies a[aria-current] {
    color: var(--pj-maroon);
}

.pj-home .pj-lpolicies a[aria-current] {
    font-weight: 600;
}

.pj-lpolicies a:hover .pj-icon,
.pj-lpolicies a[aria-current] .pj-icon {
    color: var(--pj-maroon);
}

.pj-lpolicies a:hover .pj-icon {
    transform: translateX(3px);
}

.pj-lhelp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 20px;
    border-radius: 20px;
    background: var(--pj-maroon);
}

.pj-home .pj-lhelp__title {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 24px;
    color: var(--pj-ivory);
}

.pj-home .pj-lhelp__text {
    font-size: 13px;
    line-height: 1.55;
    color: #ebd9d0;
}

.pj-home .pj-lhelp__btn {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--pj-gold);
    font-weight: 500;
    font-size: 13px;
    color: #fff;
    transition: background-color 0.2s var(--pj-ease);
}

.pj-home .pj-lhelp__btn:hover {
    background: var(--pj-gold-text);
    color: #fff;
}

/* ---------- Sections ---------- */
.pj-lsec {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px 0;
    border-bottom: 1px solid var(--pj-line);
    scroll-margin-top: calc(var(--pj-header-bottom, 84px) + 16px);
}

.pj-lsec:first-child {
    padding-top: 0;
}

.pj-lsec:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pj-home .pj-lsec__title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 30px;
    line-height: 1.15;
    color: var(--pj-ink);
}

.pj-home .pj-lsec__num {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pj-sand);
    font-family: var(--pj-sans);
    font-weight: 600;
    font-size: 13px;
    color: var(--pj-maroon);
}

.pj-home .pj-lsec__p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pj-muted);
}

.pj-home .pj-lsec strong {
    font-weight: 500;
    color: var(--pj-ink);
}

.pj-home .pj-lsec a {
    color: var(--pj-maroon);
    text-decoration: underline;
    text-decoration-color: rgba(91, 21, 25, 0.35);
    text-underline-offset: 3px;
}

.pj-home .pj-lsec a:hover {
    text-decoration-color: currentColor;
}

.pj-home .pj-lsec a strong {
    color: inherit;
}

.pj-home .pj-lsec__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 2px 0;
    list-style: none;
    counter-reset: pj-li;
}

.pj-home .pj-lsec__list li {
    position: relative;
    padding-left: 36px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--pj-muted);
    counter-increment: pj-li;
}

.pj-lsec__list li::before {
    content: counter(pj-li);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--pj-line);
    border-radius: 50%;
    background: #fff;
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    color: var(--pj-maroon);
}

.pj-home .pj-lsec__bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 2px 0;
    list-style: none;
}

.pj-home .pj-lsec__bullets li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--pj-muted);
}

/* Small gold diamond */
.pj-lsec__bullets li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--pj-gold);
    transform: rotate(45deg);
}

.pj-home .pj-lsec__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--pj-sand);
    font-size: 14px;
    line-height: 1.6;
    color: var(--pj-ink);
}

.pj-lsec__note .pj-icon {
    margin-top: 2px;
    color: var(--pj-maroon);
}

.pj-home .pj-lsec .pj-lsec__note a {
    text-decoration: none;
}

.pj-home .pj-lsec .pj-lsec__note a:hover {
    text-decoration: underline;
}

/* Contact card */
.pj-home .pj-lcontact {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--pj-line);
    border-radius: 20px;
    background: #fff;
    list-style: none;
}

.pj-lcontact li {
    flex: 1 1 0;
    min-width: 0;
}

.pj-home .pj-lsec .pj-lcontact a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    color: var(--pj-maroon);
    text-decoration: none;
}

.pj-home .pj-lsec .pj-lcontact a:hover > span:last-child {
    text-decoration: underline;
}

.pj-lcontact__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pj-sand);
    color: var(--pj-maroon);
}

.pj-lcontact a > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pj-home .pj-lcontact small {
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 1.6px;
    color: var(--pj-gold-text);
}

/* ---------- Laptop ---------- */
@media (max-width: 1199px) {
    .pj-lbody {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 48px;
    }
}

/* ---------- Tablet & mobile: contents list above the text ---------- */
@media (max-width: 1023px) {
    .pj-lhead {
        padding: 40px 0;
    }

    .pj-home .pj-lhead__title {
        font-size: 46px;
    }

    .pj-lbody {
        display: block;
        padding-top: 32px;
        padding-bottom: 64px;
    }

    .pj-lside {
        margin-bottom: 32px;
    }

    .pj-lpolicies,
    .pj-lhelp {
        display: none;
    }

    .pj-ltoc {
        border-radius: 14px;
    }

    .pj-ltoc__details {
        padding: 0;
    }

    .pj-home .pj-ltoc__summary {
        margin: 0;
        padding: 15px 17px;
        pointer-events: auto;
        cursor: pointer;
    }

    .pj-ltoc__summary > .pj-icon {
        display: inline-block;
        color: var(--pj-maroon);
    }

    .pj-ltoc__summary > span {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pj-home .pj-ltoc__label {
        font-weight: 500;
        font-size: 14px;
        letter-spacing: 0;
        text-transform: none;
        color: var(--pj-ink);
    }

    .pj-home .pj-ltoc__count {
        display: inline;
        font-size: 14px;
        color: var(--pj-muted);
    }

    .pj-ltoc__chev {
        transition: transform 0.2s var(--pj-ease);
    }

    .pj-ltoc__details[open] .pj-ltoc__chev {
        transform: rotate(180deg);
    }

    .pj-home .pj-ltoc__list {
        padding: 0 10px 12px;
        border-top: 1px solid var(--pj-line);
        padding-top: 10px;
    }

    .pj-home .pj-ltoc__list a {
        padding: 9px 10px;
        font-size: 14px;
    }
}

/* ---------- Mobile (Figma 390) ---------- */
@media (max-width: 767px) {
    .pj-lhead {
        padding: 28px 0 32px;
    }

    .pj-lhead .pj-container {
        gap: 12px;
    }

    .pj-home .pj-lhead__title {
        font-size: 36px;
    }

    .pj-home .pj-lhead__lead {
        font-size: 15px;
    }

    .pj-lbody {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .pj-lside {
        margin-bottom: 24px;
    }

    .pj-lsec {
        padding: 28px 0;
    }

    .pj-home .pj-lsec__title {
        font-size: 24px;
    }

    .pj-home .pj-lsec__num {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .pj-home .pj-lsec__p {
        line-height: 1.6;
    }

    .pj-home .pj-lsec__list li,
    .pj-home .pj-lsec__bullets li {
        line-height: 1.55;
    }

    .pj-home .pj-lcontact {
        flex-direction: column;
        gap: 12px;
        padding: 22px;
    }
}

/* ---------- Highlight cards (Figma: Return & Refund Policy → Summary) ---------- */
.pj-home .pj-lsummary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0 0 40px;
    list-style: none;
}

.pj-lsummary li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 18px;
    border-radius: 18px;
    background: var(--pj-maroon, #5b1519);
}

.pj-home .pj-lsummary strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: 36px;
    line-height: normal;
    color: #e9c9a0;
}

.pj-home .pj-lsummary span {
    font-size: 12px;
    line-height: 1.5;
    color: #ebd9d0;
}

@media (max-width: 1199px) {
    .pj-home .pj-lsummary strong {
        font-size: 30px;
    }
}

/* Mobile (Figma: Return & Refund Policy – Mobile, 390) */
@media (max-width: 767px) {
    .pj-home .pj-lsummary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-bottom: 28px;
    }

    .pj-lsummary li {
        min-height: 116px;
        padding: 20px 18px;
        border-radius: 18px;
    }

    .pj-home .pj-lsummary strong {
        font-size: 30px;
    }

    .pj-home.pj-legal--returns .pj-lhead__title {
        font-size: 38px;
    }

    .pj-home.pj-legal--returns .pj-lhead__lead {
        font-size: 14px;
        line-height: 1.6;
    }

    .pj-home.pj-legal--returns .pj-ltoc__summary {
        padding: 14px 16px;
    }

    .pj-home.pj-legal--returns .pj-lsec__num {
        font-size: 11px;
    }

    .pj-home.pj-legal--returns .pj-lsec__p {
        font-size: 14px;
        line-height: 1.7;
    }

    .pj-home.pj-legal--returns .pj-lsec__bullets li {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* Very narrow phones: keep the highlight numbers on one line */
@media (max-width: 359px) {
    .pj-lsummary li {
        padding: 16px 14px;
    }

    .pj-home .pj-lsummary strong {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pj-home .pj-ltoc__list a,
    .pj-lpolicies a .pj-icon,
    .pj-ltoc__chev {
        transition: none;
    }
}
