/* Shared legal / content pages (about, returns, privacy, terms) */

.penny-legal-page,
.penny-legal-page * {
    text-transform: none !important;
}

.penny-legal-page {
    padding: 0 0 4.5rem;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(ellipse 70% 45% at 12% 0%, rgba(255, 145, 77, 0.14), transparent 50%),
        radial-gradient(ellipse 55% 40% at 88% 8%, rgba(15, 23, 42, 0.05), transparent 48%),
        #f1f4f7;
}

.penny-legal-hero {
    padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background:
        linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 70%, transparent 100%);
}

.penny-legal-hero__inner {
    width: 100%;
    max-width: min(48rem, 100%);
    margin: 0 auto;
    text-align: center;
}

.penny-legal-body.container,
.penny-legal-page > .container {
    width: 100%;
}

.penny-legal-body {
    margin-top: -0.25rem;
}

/* Fill the Bootstrap container — do not nest a second narrow max-width */
.penny-legal-shell {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: clamp(1.15rem, 2.5vw, 1.75rem);
}

.penny-legal-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.penny-legal-brand__img {
    display: block;
    max-width: min(180px, 55vw);
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.penny-legal-brand .penny-store-logo__inner {
    justify-content: center;
}

.penny-legal-eyebrow {
    display: inline-block;
    margin: 0 0 0.85rem !important;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 145, 77, 0.14);
    color: #c45f1a !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.penny-legal-title {
    margin: 0 0 0.7rem !important;
    font-size: clamp(1.85rem, 4vw, 2.75rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em;
    line-height: 1.15 !important;
    color: var(--header, #0f172a) !important;
}

.penny-legal-lead {
    margin: 0 auto 0.9rem !important;
    max-width: min(44rem, 100%);
    color: #64748b !important;
    font-size: clamp(1rem, 1.6vw, 1.0625rem) !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

.penny-legal-updated {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.penny-legal-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.5vw, 1rem);
    margin: 0 0 clamp(1.1rem, 2vw, 1.5rem);
    width: 100%;
}

.penny-legal-highlights--about {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.penny-legal-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    padding: clamp(0.85rem, 1.5vw, 1.1rem) clamp(0.9rem, 1.5vw, 1.15rem);
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.penny-legal-highlight > div {
    min-width: 0;
    flex: 1 1 auto;
}

.penny-legal-highlight__icon {
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 145, 77, 0.12);
    color: #c45f1a;
    font-size: 1rem;
}

.penny-legal-highlight__label {
    margin: 0 0 0.15rem !important;
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.penny-legal-highlight__value {
    margin: 0 !important;
    color: var(--header, #0f172a) !important;
    font-size: clamp(0.88rem, 1.3vw, 0.98rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.penny-legal-card {
    width: 100%;
    max-width: 100%;
    padding: clamp(1.35rem, 3vw, 2.5rem) clamp(1.15rem, 3.2vw, 2.75rem);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: clamp(0.95rem, 1.5vw, 1.25rem);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 18px 40px rgba(15, 23, 42, 0.06);
}

.penny-legal-card > *:first-child {
    margin-top: 0 !important;
}

.penny-legal-card > p:last-child,
.penny-legal-card > ul:last-child,
.penny-legal-card > ol:last-child {
    margin-bottom: 0 !important;
}

.penny-legal-section-title,
.penny-legal-card h2,
.penny-legal-card h3,
.penny-legal-card .h5 {
    position: relative;
    display: block;
    margin: 2.15rem 0 0.85rem !important;
    padding: 0.15rem 0 0.15rem 1rem;
    border-left: 3px solid var(--theme, #ff914d) !important;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
    font-size: clamp(1.12rem, 1.8vw, 1.3rem) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: var(--header, #0f172a) !important;
    letter-spacing: -0.02em;
}

.penny-legal-card > .penny-legal-section-title:first-child,
.penny-legal-card > h2:first-child,
.penny-legal-card > h3:first-child {
    margin-top: 0 !important;
}

.penny-legal-card p {
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
    max-width: 72ch;
    color: #334155 !important;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
    font-size: clamp(1rem, 1.35vw, 1.075rem) !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    letter-spacing: 0.005em;
}

.penny-legal-card .penny-legal-section-title + p,
.penny-legal-card h2 + p,
.penny-legal-card h3 + p,
.penny-legal-card .h5 + p {
    margin-top: 0 !important;
}

.penny-legal-card p + .penny-legal-section-title,
.penny-legal-card p + h2,
.penny-legal-card ul + .penny-legal-section-title,
.penny-legal-card ol + .penny-legal-section-title {
    margin-top: 2.15rem !important;
}

.penny-legal-card strong,
.penny-legal-card b {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.penny-legal-card em,
.penny-legal-card i {
    font-style: italic;
}

.penny-legal-card li {
    color: #334155 !important;
    font-size: clamp(1rem, 1.35vw, 1.075rem) !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    margin: 0 0 0.55rem !important;
}

.penny-legal-card ul,
.penny-legal-card ol {
    margin: 0 0 1.35rem !important;
    padding-left: 1.35rem !important;
    list-style-position: outside;
    max-width: 72ch;
}

.penny-legal-card ul {
    list-style-type: disc !important;
}

.penny-legal-card ol {
    list-style-type: decimal !important;
}

.penny-legal-card li::marker {
    color: #94a3b8;
}

.penny-legal-card a {
    color: var(--theme, #ff914d) !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.penny-legal-help {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    margin-top: clamp(1.1rem, 2vw, 1.5rem);
    padding: clamp(1.1rem, 2vw, 1.35rem) clamp(1.1rem, 2vw, 1.5rem);
    border-radius: 1rem;
    border: 1px solid rgba(255, 145, 77, 0.28);
    background: linear-gradient(135deg, #fff7ed 0%, #fff 70%);
}

.penny-legal-help__icon {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme, #ff914d);
    color: #fff;
    font-size: 1.05rem;
}

.penny-legal-help__title {
    margin: 0 0 0.4rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--header, #0f172a) !important;
}

.penny-legal-help__text {
    margin: 0 !important;
    color: #64748b !important;
    line-height: 1.65 !important;
    font-size: 0.98rem !important;
    font-weight: 400 !important;
}

.penny-legal-help__text a {
    color: #c45f1a !important;
    font-weight: 700 !important;
}

.penny-legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    width: 100%;
    margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.penny-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.15rem;
    min-width: min(11.5rem, 100%);
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.penny-legal-btn--primary {
    background: var(--theme, #ff914d);
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(255, 145, 77, 0.28);
}

.penny-legal-btn--primary:hover {
    transform: translateY(-1px);
    color: #fff !important;
    filter: brightness(1.03);
}

.penny-legal-btn--secondary {
    background: #fff;
    color: var(--header, #0f172a) !important;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.penny-legal-btn--secondary:hover {
    border-color: var(--theme, #ff914d);
    color: var(--theme, #ff914d) !important;
}

/* Large desktops: keep highlight row comfortable */
@media (min-width: 1200px) {
    .penny-legal-highlight {
        padding: 1.15rem 1.25rem;
        gap: 0.9rem;
    }
}

/* Tablets / small laptops */
@media (max-width: 1199.98px) {
    .penny-legal-highlights--about {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .penny-legal-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .penny-legal-highlights--about {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .penny-legal-highlights,
    .penny-legal-highlights--about {
        grid-template-columns: 1fr;
    }

    .penny-legal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .penny-legal-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .penny-legal-page {
        padding-bottom: 3rem;
    }

    .penny-legal-section-title,
    .penny-legal-card h2,
    .penny-legal-card h3,
    .penny-legal-card .h5 {
        padding-left: 0.85rem;
    }

    .penny-legal-help {
        flex-direction: column;
        gap: 0.75rem;
    }

    .penny-legal-highlight {
        padding: 0.95rem 1rem;
    }
}

.penny-about-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.penny-about-brand-panel .penny-store-logo__img,
.penny-about-brand-panel img {
    max-width: min(280px, 80%);
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}
