/* Legal Pages Styles */

.legal-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header .jp-title {
    font-size: 1.8rem;
}

.legal-intro {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 2;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-card-border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--color-accent);
}

.legal-section p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 10px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section ul li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.legal-section ul li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Contact Box */
.contact-box {
    margin-top: 15px;
    padding: 20px 25px;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 10px;
    text-align: center;
}

.contact-box p {
    color: var(--color-text);
    margin-bottom: 5px;
}

.contact-box a {
    color: var(--color-accent);
    text-decoration: underline;
}

.contact-box a:hover {
    opacity: 0.8;
}

/* Legal Info Table (for tokushoho) */
.legal-table-wrapper {
    margin-bottom: 40px;
    overflow-x: auto;
}

.legal-info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    overflow: hidden;
}

.legal-info-table th,
.legal-info-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-card-border);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-info-table th {
    background: rgba(251, 191, 36, 0.06);
    color: var(--color-accent);
    font-weight: 600;
    width: 30%;
    white-space: nowrap;
}

.legal-info-table td {
    color: var(--color-text-muted);
}

.legal-info-table tr:last-child th,
.legal-info-table tr:last-child td {
    border-bottom: none;
}

/* Back Button */
.legal-back {
    text-align: center;
    margin-top: 60px;
}

.btn-back {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.95rem;
    padding: 12px 30px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--color-accent);
    opacity: 1;
}

/* Mobile Responsiveness for Legal Pages */
@media (max-width: 900px) {
    .legal-page {
        padding: 120px 0 60px;
    }

    .legal-header .jp-title {
        font-size: 1.4rem;
    }

    .legal-info-table th {
        width: 35%;
        font-size: 0.85rem;
        padding: 14px 12px;
    }

    .legal-info-table td {
        font-size: 0.85rem;
        padding: 14px 12px;
    }

    .legal-section h2 {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .legal-info-table th,
    .legal-info-table td {
        display: block;
        width: 100%;
    }

    .legal-info-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .legal-info-table td {
        padding-top: 5px;
        padding-bottom: 18px;
    }
}
