/**
 * Terms of Service Page Styles - 利用規約页面样式
 * 
 * @package YuuYuuRental
 * @since 1.0.0
 */

/* ==========================================================================
   Terms of Service Page Specific Styles
   ========================================================================== */

/* Enhanced page content styling for terms of service */
.page-slug-terms .page-content-wrapper,
.page-template-terms .page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page-slug-terms .entry-content,
.page-template-terms .entry-content {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

/* Typography Hierarchy */
.page-slug-terms .entry-content h1,
.page-template-terms .entry-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #CC211B;
    margin: 50px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #CC211B;
    position: relative;
}

.page-slug-terms .entry-content h1:first-child,
.page-template-terms .entry-content h1:first-child {
    margin-top: 0;
}

.page-slug-terms .entry-content h2,
.page-template-terms .entry-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #351e15;
    margin: 40px 0 20px 0;
    padding-left: 20px;
    position: relative;
}

.page-slug-terms .entry-content h2::before,
.page-template-terms .entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 25px;
    background: linear-gradient(135deg, #CC211B 0%, #A01915 100%);
    border-radius: 3px;
}

.page-slug-terms .entry-content h3,
.page-template-terms .entry-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #444;
    margin: 30px 0 15px 0;
    padding: 8px 0 8px 15px;
    background: linear-gradient(90deg, rgba(204, 33, 27, 0.08) 0%, transparent 100%);
    border-left: 4px solid #CC211B;
}

.page-slug-terms .entry-content h4,
.page-template-terms .entry-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin: 25px 0 12px 0;
}

/* Paragraph and text styling */
.page-slug-terms .entry-content p,
.page-template-terms .entry-content p {
    margin: 0 0 18px 0;
    line-height: 1.8;
}

.page-slug-terms .entry-content p:last-child,
.page-template-terms .entry-content p:last-child {
    margin-bottom: 0;
}

/* Ordered Lists (条項) */
.page-slug-terms .entry-content ol,
.page-template-terms .entry-content ol {
    margin: 20px 0;
    padding-left: 25px;
    counter-reset: item;
}

.page-slug-terms .entry-content ol li,
.page-template-terms .entry-content ol li {
    margin-bottom: 15px;
    line-height: 1.7;
    padding-left: 8px;
    position: relative;
}

.page-slug-terms .entry-content ol li::marker,
.page-template-terms .entry-content ol li::marker {
    color: #CC211B;
    font-weight: 600;
}

/* Nested lists styling */
.page-slug-terms .entry-content ol li ul,
.page-template-terms .entry-content ol li ul {
    margin: 10px 0;
    padding-left: 20px;
}

.page-slug-terms .entry-content ol li ul li,
.page-template-terms .entry-content ol li ul li {
    margin-bottom: 8px;
    padding-left: 0;
}

.page-slug-terms .entry-content ol li ul li::marker,
.page-template-terms .entry-content ol li ul li::marker {
    color: #666;
    font-weight: normal;
}

/* Unordered Lists */
.page-slug-terms .entry-content ul,
.page-template-terms .entry-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.page-slug-terms .entry-content ul li,
.page-template-terms .entry-content ul li {
    margin-bottom: 8px;
    line-height: 1.7;
    position: relative;
}

.page-slug-terms .entry-content ul li::marker,
.page-template-terms .entry-content ul li::marker {
    color: #CC211B;
    font-weight: bold;
}

/* Service categories styling */
.page-slug-terms .entry-content ul li strong,
.page-template-terms .entry-content ul li strong {
    color: #CC211B;
    font-weight: 700;
}

/* Cancellation fee table styling */
.page-slug-terms .entry-content .cancellation-table,
.page-template-terms .entry-content .cancellation-table {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.page-slug-terms .entry-content .cancellation-table ul,
.page-template-terms .entry-content .cancellation-table ul {
    margin: 10px 0;
}

/* Contact Information Section Styling */
.page-slug-terms .entry-content .contact-section,
.page-template-terms .entry-content .contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-slug-terms .entry-content .contact-info,
.page-template-terms .entry-content .contact-info {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.page-slug-terms .entry-content .contact-item,
.page-template-terms .entry-content .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.page-slug-terms .entry-content .contact-item .icon,
.page-template-terms .entry-content .contact-item .icon {
    color: #CC211B;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.page-slug-terms .entry-content .contact-item .label,
.page-template-terms .entry-content .contact-item .label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
    flex-shrink: 0;
}

.page-slug-terms .entry-content .contact-item .value,
.page-template-terms .entry-content .contact-item .value {
    color: #555;
    flex: 1;
}

/* Links */
.page-slug-terms .entry-content a,
.page-template-terms .entry-content a {
    color: #CC211B;
    text-decoration: none;
    border-bottom: 1px dotted #CC211B;
    transition: all 0.3s ease;
}

.page-slug-terms .entry-content a:hover,
.page-template-terms .entry-content a:hover {
    color: #A01915;
    border-bottom-style: solid;
    background: rgba(204, 33, 27, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
    margin: -2px -4px;
}

/* Table styling (if needed) */
.page-slug-terms .entry-content table,
.page-template-terms .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
}

.page-slug-terms .entry-content table th,
.page-template-terms .entry-content table th {
    background: #CC211B;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.page-slug-terms .entry-content table td,
.page-template-terms .entry-content table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.page-slug-terms .entry-content table tr:nth-child(even),
.page-template-terms .entry-content table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Emphasis and strong text */
.page-slug-terms .entry-content strong,
.page-template-terms .entry-content strong {
    font-weight: 700;
    color: #CC211B;
}

.page-slug-terms .entry-content em,
.page-template-terms .entry-content em {
    font-style: italic;
    color: #555;
}

/* Date and version info */
.page-slug-terms .entry-content .policy-meta,
.page-template-terms .entry-content .policy-meta {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 15px 20px;
    margin: 25px 0;
    font-size: 14px;
    color: #666;
    border-radius: 0 8px 8px 0;
}

/* Special styling for important sections */
.page-slug-terms .entry-content .important-note,
.page-template-terms .entry-content .important-note {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
}

.page-slug-terms .entry-content .important-note::before,
.page-template-terms .entry-content .important-note::before {
    content: '⚠️';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 20px;
}

.page-slug-terms .entry-content .important-note p,
.page-template-terms .entry-content .important-note p {
    margin-left: 35px;
    margin-bottom: 0;
}

/* Article sections styling */
.page-slug-terms .entry-content > h2:nth-of-type(n+2),
.page-template-terms .entry-content > h2:nth-of-type(n+2) {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-slug-terms .page-content-wrapper,
    .page-template-terms .page-content-wrapper {
        padding: 30px 15px 40px;
    }
    
    .page-slug-terms .entry-content,
    .page-template-terms .entry-content {
        font-size: 15px;
    }
    
    .page-slug-terms .entry-content h1,
    .page-template-terms .entry-content h1 {
        font-size: 1.8rem;
        margin: 35px 0 20px 0;
    }
    
    .page-slug-terms .entry-content h2,
    .page-template-terms .entry-content h2 {
        font-size: 1.5rem;
        margin: 30px 0 15px 0;
    }
    
    .page-slug-terms .entry-content h3,
    .page-template-terms .entry-content h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px 0;
    }
    
    .page-slug-terms .entry-content .contact-section,
    .page-template-terms .entry-content .contact-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .page-slug-terms .entry-content .contact-item,
    .page-template-terms .entry-content .contact-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .page-slug-terms .entry-content .contact-item .label,
    .page-template-terms .entry-content .contact-item .label {
        min-width: auto;
    }
    
    .page-slug-terms .entry-content ol,
    .page-template-terms .entry-content ol,
    .page-slug-terms .entry-content ul,
    .page-template-terms .entry-content ul {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .page-slug-terms .page-content-wrapper,
    .page-template-terms .page-content-wrapper {
        padding: 20px 10px 30px;
    }
    
    .page-slug-terms .entry-content,
    .page-template-terms .entry-content {
        font-size: 14px;
    }
    
    .page-slug-terms .entry-content h1,
    .page-template-terms .entry-content h1 {
        font-size: 1.6rem;
    }
    
    .page-slug-terms .entry-content h2,
    .page-template-terms .entry-content h2 {
        font-size: 1.3rem;
        padding-left: 15px;
    }
    
    .page-slug-terms .entry-content h2::before,
    .page-template-terms .entry-content h2::before {
        width: 4px;
        height: 20px;
    }
    
    .page-slug-terms .entry-content .contact-section,
    .page-template-terms .entry-content .contact-section {
        padding: 15px;
        margin: 25px 0;
    }
    
    .page-slug-terms .entry-content ol,
    .page-template-terms .entry-content ol,
    .page-slug-terms .entry-content ul,
    .page-template-terms .entry-content ul {
        padding-left: 15px;
    }
    
    .page-slug-terms .entry-content ol li ul,
    .page-template-terms .entry-content ol li ul {
        padding-left: 15px;
    }
}

/* Print Styles */
@media print {
    .page-slug-terms .entry-content,
    .page-template-terms .entry-content {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .page-slug-terms .entry-content h1,
    .page-template-terms .entry-content h1 {
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .page-slug-terms .entry-content h2,
    .page-template-terms .entry-content h2 {
        color: #000 !important;
    }
    
    .page-slug-terms .entry-content a,
    .page-template-terms .entry-content a {
        color: #000 !important;
        text-decoration: underline !important;
        border: none !important;
    }
    
    .page-slug-terms .entry-content .contact-section,
    .page-template-terms .entry-content .contact-section {
        border: 2px solid #000 !important;
        background: transparent !important;
    }
    
    .page-slug-terms .entry-content h2,
    .page-template-terms .entry-content h2 {
        break-after: avoid;
        page-break-after: avoid;
    }
    
    .page-slug-terms .entry-content ol,
    .page-template-terms .entry-content ol,
    .page-slug-terms .entry-content ul,
    .page-template-terms .entry-content ul {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}