/* =============================================
   LEGAL & STATIC PAGES STYLES
   Add to /public_html/css/styles.css or save as /public_html/css/legal.css
   ============================================= */

/* Legal Page Layout */
.legal-page {
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
    background: var(--background);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.legal-section p {
    margin-bottom: 0.875rem;
    line-height: 1.7;
    color: var(--text);
}

.legal-section ul {
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.7;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.legal-section a {
    color: var(--primary);
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-highlight {
    background: var(--primary-light, #e8f4fc);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.legal-thanks {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
}

/* Contact Page Cards */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary-light, #e8f4fc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-email {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--primary-light, #e8f4fc);
    border-radius: 6px;
    transition: background-color 0.15s;
}

.contact-email:hover {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .legal-container {
        padding: 1.5rem;
    }
    
    .legal-container h1 {
        font-size: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.125rem;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   SUPPORT PAGE STYLES
   ============================================= */

.support-container {
    max-width: 900px;
    margin: 0 auto;
}

.support-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    text-align: center;
}

.support-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* FAQ Section */
.faq-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.faq-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background);
    transition: background-color 0.15s;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--primary);
}

.faq-item summary:hover {
    background: var(--border);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text);
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--primary);
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.contact-form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-form-section > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--background);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.support-form .btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.support-form .btn svg {
    flex-shrink: 0;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert svg {
    flex-shrink: 0;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Responsive Support Page */
@media (max-width: 600px) {
    .support-container h1 {
        font-size: 1.5rem;
    }
    
    .faq-section,
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .support-form .btn {
        width: 100%;
        justify-content: center;
    }
}
