/* ==========================================================================
   L&C Cabinetry — long-form legal pages (Privacy Policy, Terms of Service)
   --------------------------------------------------------------------------
   Loaded only by /privacy-policy and /terms-of-service. The shared
   .policy-* components in styles.css were built for the short Return Policy
   page and do not style lists, sub-headings, or a 25-40 item section nav.
   ========================================================================== */

/* --- Section nav, long variant -------------------------------------------- */

/* The base .policy-nav prefixes a literal "0", which renders "042" past
   section 9. Long documents use a plain number instead. */
.policy-nav--long a::before {
    content: counter(policyNav) ".";
    min-width: 22px;
}

.policy-nav--long a {
    padding: 9px 2px;
    font-size: 0.72rem;
    line-height: 1.3;
}

.policy-nav--long {
    max-height: calc(100vh - var(--nav-height) - 84px);
    overflow-y: auto;
    padding-right: 10px;
}

/* --- Clause body content -------------------------------------------------- */

.policy-clause ul,
.policy-clause ol {
    max-width: 740px;
    margin: 18px 0 0;
    padding-left: 22px;
    color: var(--ink-700);
    font-size: 1.02rem;
}

.policy-clause li {
    margin-bottom: 9px;
    line-height: 1.65;
}

.policy-clause li:last-child {
    margin-bottom: 0;
}

.policy-clause ul {
    list-style: none;
    padding-left: 0;
}

.policy-clause ul li {
    position: relative;
    padding-left: 22px;
}

.policy-clause ul li::before {
    position: absolute;
    top: 0.62em;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-500);
    content: "";
}

.policy-clause p + p,
.policy-clause ul + p,
.policy-clause ol + p,
.policy-clause p + ul,
.policy-clause p + ol {
    margin-top: 18px;
}

.policy-clause h3 {
    max-width: 740px;
    margin: 32px 0 0;
    color: var(--navy-950);
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.policy-clause h3 + p,
.policy-clause h3 + ul,
.policy-clause h3 + ol {
    margin-top: 12px;
}

.policy-clause strong {
    color: var(--navy-950);
    font-weight: 800;
}

/* Statutory all-caps disclaimers (warranty, liability) read as a block. */
.policy-callout {
    max-width: 740px;
    margin-top: 24px !important;
    padding: 22px 24px;
    border-left: 4px solid var(--navy-900);
    background: #f2f4f5;
    font-size: 0.95rem !important;
    line-height: 1.7;
}

/* --- Unresolved placeholder ----------------------------------------------- */
/* Anything still awaiting a real value before publication. Deliberately loud
   so it cannot ship unnoticed. Delete the markup once the value is filled. */
.policy-todo {
    display: inline-block;
    padding: 3px 9px;
    border: 2px dashed #b3261e;
    border-radius: 5px;
    color: #b3261e;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* --- Privacy choices control ---------------------------------------------- */

.privacy-choices-state {
    display: block;
    margin-top: 10px;
    color: var(--ink-500);
    font-size: 0.86rem;
}

.policy-clause button.privacy-choices-button {
    margin-top: 18px;
    padding: 13px 26px;
    border: 1px solid var(--navy-900);
    border-radius: 999px;
    background: var(--navy-900);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 240ms ease, color 240ms ease;
}

.policy-clause button.privacy-choices-button:hover,
.policy-clause button.privacy-choices-button:focus-visible {
    background: transparent;
    color: var(--navy-900);
}

@media (max-width: 900px) {
    .policy-nav--long {
        max-height: none;
        overflow-y: visible;
    }
}
