/* ═══════════════════════════════════════════════════════════
   Oishii — Legal Pages Shared Styles
   Used by: privacy_policy.html, terms_of_service.html, cookie_policy.html
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset ───────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── Base ────────────────────────────────────────────── */
body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #1a1a1a;
    color-scheme: dark;
}

a {
    color: #ff6b6b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ─── Container ───────────────────────────────────────── */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

/* ─── Header (hero-like) ──────────────────────────────── */
.header {
    position: relative;
    text-align: center;
    padding: 60px 24px 48px;
    overflow: hidden;
}

.header__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.header__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.15;
    filter: saturate(0.5) blur(2px);
}

.header__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.2) 40%,
        rgba(26, 26, 26, 0.6) 80%,
        #1a1a1a 100%
    );
}

.header__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 24px;
}

.header__logo img {
    width: 48px;
    height: 48px;
}

.header__logo span {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: #ff6b6b;
}

.header__logo:hover {
    text-decoration: none;
    opacity: 0.85;
}

.header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.4rem;
    color: #f5f5f5;
    margin-bottom: 8px;
    font-weight: 800;
}

.header .date {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

/* ─── Back link (inside header) ───────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.back-link:hover {
    color: #ff6b6b;
    text-decoration: none;
}

/* ─── Sections ────────────────────────────────────────── */
.section {
    margin-bottom: 32px;
}

.section h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem;
    color: #ff6b6b;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.15);
    font-weight: 700;
}

.section h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 600;
}

.section p {
    margin-bottom: 14px;
    text-align: justify;
    color: #a0a0a0;
    font-size: 15px;
}

.section ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 14px;
}

.section li {
    margin-bottom: 8px;
    color: #a0a0a0;
    font-size: 15px;
    padding-left: 20px;
    position: relative;
}

.section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #e55f5f 100%);
    border-radius: 50%;
}

/* ─── Text utilities ──────────────────────────────────── */
.strong-text {
    font-weight: 600;
    color: #f5f5f5;
}

.foot-note {
    color: #6b6b6b;
    font-size: 14px;
    font-style: italic;
    margin-top: 8px;
}

/* ─── Highlight boxes ─────────────────────────────────── */
.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    margin: 24px 0;
    border-radius: 12px;
}

.highlight-box .icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 0;
    line-height: 1;
}

.highlight-box--info .icon {
    color: #33b8cc;
}

.highlight-box--success .icon {
    color: #66bb6a;
}

.highlight-box--warning .icon {
    color: #ffb74d;
}

.highlight-box p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
}

.highlight-box--info {
    background-color: rgba(51, 184, 204, 0.08);
}

.highlight-box--info p {
    color: #33b8cc;
}

.highlight-box--success {
    background-color: rgba(76, 175, 80, 0.08);
}

.highlight-box--success p {
    color: #66bb6a;
}

.highlight-box--warning {
    background-color: rgba(255, 152, 0, 0.08);
}

.highlight-box--warning p {
    color: #ffb74d;
}

/* ─── Usage lists (terms) ─────────────────────────────── */
.usage-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.usage-box {
    padding: 20px;
    border-radius: 12px;
    color: #f5f5f5;
}

.usage-box h4 {
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.usage-box ul {
    list-style: none;
    margin-left: 0;
}

.usage-box li {
    padding-left: 20px;
    position: relative;
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 6px;
}

.allowed {
    background-color: rgba(76, 175, 80, 0.08);
}

.allowed h4 {
    color: #66bb6a;
}

.allowed li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
}

.prohibited {
    background-color: rgba(244, 67, 54, 0.08);
}

.prohibited h4 {
    color: #ef5350;
}

.prohibited li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #f44336;
    border-radius: 50%;
}

/* ─── Cookie table ────────────────────────────────────── */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.cookie-table th,
.cookie-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #3d3d3d;
    font-size: 14px;
}

.cookie-table th {
    background-color: #ff6b6b;
    color: white;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.cookie-table td {
    color: #a0a0a0;
}

.cookie-table td strong {
    color: #f5f5f5;
}

/* ─── Contact section ─────────────────────────────────── */
.contact-section {
    background-color: #2a2a2a;
    padding: 24px;
    border-radius: 12px;
    margin-top: 40px;
}

.contact-section h3 {
    font-family: 'Nunito', sans-serif;
    color: #ff6b6b;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-info {
    list-style: none;
    margin-left: 0;
}

.contact-info li {
    margin-bottom: 8px;
    color: #6b6b6b;
    font-size: 14px;
    padding-left: 0;
}

.contact-info li::before {
    display: none;
}

.contact-info strong {
    color: #f5f5f5;
}

/* ─── Footer ──────────────────────────────────────────── */
.footer {
    background: #2a2a2a;
    padding: 64px 0 40px;
    margin-top: 48px;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer__logo img {
    height: 32px;
    width: auto;
}

.footer__logo span {
    font-family: 'Pacifico', cursive;
    font-size: 22px;
    color: #ff6b6b;
}

.footer__logo:hover {
    text-decoration: none;
    opacity: 0.85;
}

.footer__tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
}

.footer__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__section h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 4px;
}

.footer__section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__section li {
    padding-left: 0;
    margin-bottom: 0;
}

.footer__section li::before {
    display: none;
}

.footer__section a {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__section a:hover {
    color: #ff6b6b;
    text-decoration: none;
}

.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 0;
    margin-top: 40px;
    border-top: 1px solid #3d3d3d;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #6b6b6b;
}

.footer__legal {
    display: flex;
    gap: 20px;
}

.footer__legal a {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__legal a:hover {
    color: #a0a0a0;
    text-decoration: none;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .header {
        padding: 48px 16px 36px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header__logo img {
        width: 40px;
        height: 40px;
    }

    .header__logo span {
        font-size: 1.6rem;
    }

    .container {
        padding: 16px;
        margin: 0;
    }

    .section h2 {
        font-size: 1.15rem;
    }

    .usage-lists {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cookie-table {
        font-size: 13px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
