/* Core Layout & Typography */
main.container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: #1e293b !important;
    background-color: #f8fafc;
    padding: 40px 15px !important;
    border-radius: 16px;
}

.legal-hero {
    text-align: center;
    margin-bottom: 30px;
}
.legal-title-main {
    font-size: 2.2rem !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    margin-bottom: 10px !important;
}
.legal-subtitle-main {
    font-size: 16px !important;
    color: #64748b !important;
    font-weight: 500;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .legal-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
}

.small-action-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4f46e5;
    border-radius: 6px;
    cursor: pointer;
}

/* Form Styles */
.input-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-label {
    font-size: 13px;
    font-weight: 750;
    color: #334155;
}
.required-star { color: #ef4444; }

.pro-input {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s;
}
.pro-input:focus {
    border-color: #4f46e5;
    background: #fff;
}
.style-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Legal Output Panel Layout */
.legal-editor {
    width: 100%;
    height: 400px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    background: #fafafa;
    color: #1e293b;
    border-radius: 10px;
    padding: 16px;
    resize: vertical;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    outline: none;
    line-height: 1.6;
}

.legal-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.legal-btn:active {
    transform: scale(0.98);
}

/* SEO Step-Guide Styles */
.seo-guide-section { max-width: 1200px; margin: 50px auto 0 auto; }
.step-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 25px; }
@media (min-width: 768px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: #fff; border: 1px solid #e2e8f0; padding: 22px; border-radius: 12px; position: relative; }
.step-num { position: absolute; top: -12px; left: 20px; background: #4f46e5; color: #fff; font-weight: 800; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; }
.step-card h4 { margin: 8px 0 8px 0; font-size: 16px; font-weight: 750; color: #0f172a; }
.step-card p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.5; }

/* FAQ Styles */
.faq-section { max-width: 850px; margin: 50px auto 20px auto; }
.faq-main-title { font-size: 24px !important; font-weight: 850 !important; color: #0f172a; text-align: center; margin-bottom: 25px; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 15px; }
.faq-question { font-size: 16px !important; font-weight: 750 !important; color: #0f172a; margin-top: 0; margin-bottom: 8px; }
.faq-answer { font-size: 14px; color: #475569; line-height: 1.6; margin: 0; }