/* Store Legal Pages Styling */

/* Base Styles (English / Default) */
.legal-content {
    font-family: 'Inter', sans-serif;
    color: #f3f3f3;
    line-height: 1.8;
}

/* Page Title */
.legal-title {
    font-family: 'IBM Plex Mono', sans-serif;
    /* Using existing improved font */
    font-weight: 400;
    letter-spacing: 0em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Headings - matching Store aesthetic */
.legal-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    /* text-lg */
    margin-bottom: 1rem;
    margin-top: 2rem;
    letter-spacing: -0.02em;
    opacity: 0.9;
}

.legal-content p {
    margin-bottom: 1rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.legal-content a:hover {
    opacity: 1;
}


/* --- Japanese Localization Overrides --- */
/* These rules automatically apply when the html tag has lang="ja" */

:lang(ja) .legal-content {
    font-family: 'Hiragino Kaku Gothic Std', 'Noto Sans JP', sans-serif;
}

:lang(ja) .legal-title {
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    font-weight: 600;
    letter-spacing: 0.1em;
}

:lang(ja) .legal-content h3 {
    font-family: 'Hiragino Kaku Gothic Std', sans-serif;
    font-weight: 800;
    /* W8 */
    letter-spacing: 0.05em;
}

/* Page Background Overrides */
/* Applying to both body and html to ensure full coverage */
body.store-legal-page,
body.store-contact-page,
html:has(body.store-legal-page),
html:has(body.store-contact-page) {
    background-color: #0b090a !important;
}

/* Ensure the main content wrapper is transparent so body bg shows through */
.store-legal-page #main-content,
.store-contact-page #main-content {
    background-color: transparent !important;
}

/* Contact Page Specifics - Scope to main content to avoid footer conflict */
.store-contact-page main h4 {
    font-family: 'IBM Plex Mono', monospace !important;
    font-weight: 400 !important;
    font-size: 0.75rem;
    /* Matches tracking-widest uppercase aesthetic usually */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}