/* policy-pages.css - Styles for Privacy Policy, Terms of Service, Contact, FAQ, and Getting Started pages */

/* Japanese font support and text wrapping for policy pages */
html[lang="ja"],
body.lang-ja {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', 'MS PGothic', sans-serif;
    
    /* Enable proper Japanese text wrapping */
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    line-height: 1.8;
    
    /* Enhanced Japanese text features */
    font-feature-settings: "palt" 1, "pkna" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-spacing: ideograph-alpha ideograph-numeric;
}

/* Japanese text wrapping for policy page elements */
html[lang="ja"] .legal-page,
html[lang="ja"] .contact-page,
html[lang="ja"] .faq-page,
html[lang="ja"] .getting-started-page,
body.lang-ja .legal-page,
body.lang-ja .contact-page,
body.lang-ja .faq-page,
body.lang-ja .getting-started-page {
    line-height: 1.8;
}

html[lang="ja"] .legal-section h2,
html[lang="ja"] .legal-section h3,
html[lang="ja"] .legal-section h4,
html[lang="ja"] .page-header h1,
body.lang-ja .legal-section h2,
body.lang-ja .legal-section h3,
body.lang-ja .legal-section h4,
body.lang-ja .page-header h1 {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    line-height: 1.6;
    text-wrap: balance;
    orphans: 2;
    widows: 2;
    word-spacing: 0.1em;
}

html[lang="ja"] .legal-section p,
html[lang="ja"] .legal-section li,
html[lang="ja"] .legal-section span,
html[lang="ja"] .legal-section div,
html[lang="ja"] .page-header .intro-text,
html[lang="ja"] .contact-info p,
body.lang-ja .legal-section p,
body.lang-ja .legal-section li,
body.lang-ja .legal-section span,
body.lang-ja .legal-section div,
body.lang-ja .page-header .intro-text,
body.lang-ja .contact-info p {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
    letter-spacing: 0.05em;
    hanging-punctuation: allow-end;
    text-justify: inter-character;
}

html[lang="ja"] .legal-section a,
body.lang-ja .legal-section a {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

/* Responsive adjustments for Japanese text on mobile */
@media (max-width: 768px) {
    html[lang="ja"],
    body.lang-ja {
        line-height: 1.9;
        letter-spacing: 0.03em;
    }
    
    html[lang="ja"] .legal-section h2,
    html[lang="ja"] .legal-section h3,
    html[lang="ja"] .page-header h1,
    body.lang-ja .legal-section h2,
    body.lang-ja .legal-section h3,
    body.lang-ja .page-header h1 {
        line-height: 1.7;
        word-spacing: 0.1em;
    }
    
    html[lang="ja"] .legal-section p,
    html[lang="ja"] .legal-section li,
    body.lang-ja .legal-section p,
    body.lang-ja .legal-section li {
        line-height: 2.0;
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 480px) {
    html[lang="ja"],
    body.lang-ja {
        font-size: 14px;
        line-height: 2.1;
    }
    
    html[lang="ja"] .legal-section h2,
    html[lang="ja"] .page-header h1,
    body.lang-ja .legal-section h2,
    body.lang-ja .page-header h1 {
        font-size: 1.3rem;
        line-height: 1.8;
        margin-bottom: 1.2rem;
    }
    
    html[lang="ja"] .legal-section h3,
    body.lang-ja .legal-section h3 {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    html[lang="ja"] .legal-section p,
    html[lang="ja"] .legal-section li,
    body.lang-ja .legal-section p,
    body.lang-ja .legal-section li {
        margin-bottom: 2rem;
        line-height: 2.2;
    }
}

/* Common styles for all policy/legal/info pages */
.legal-page,
.contact-page,
.faq-page,
.getting-started-page {
    padding-top: 120px;
    padding-bottom: 60px;
    background-color: var(--light-bg);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.page-header .subtitle,
.page-header .last-updated {
    color: var(--light-text);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.page-header .intro-text {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.last-updated {
    font-style: italic;
}

/* Table of Contents Section */
.toc-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.toc-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.table-of-contents ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    counter-reset: toc-counter;
}

.table-of-contents li {
    counter-increment: toc-counter;
    margin-bottom: 0;
}

.table-of-contents a {
    display: block;
    padding: 0.75rem;
    background-color: rgba(68, 196, 164, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.table-of-contents a:before {
    content: counter(toc-counter, decimal-leading-zero);
    font-weight: 600;
    color: var(--primary);
    margin-right: 0.5rem;
}

.table-of-contents a:hover {
    background-color: rgba(68, 196, 164, 0.1);
    border-left-color: var(--primary);
    transform: translateX(3px);
}

.legal-content {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(500px, 3fr);
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start; /* This ensures items start at the top */
}


.legal-content-no-toc {
    display: block;
    max-width: 1024px;
    margin: 0 auto 3rem;
}

.toc-container {
    position: sticky;
    top: 120px;
    align-self: start; /* Explicitly align to start */
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 10;
}

.toc-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.toc {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.toc a:hover {
    color: var(--primary);
}

.legal-section {
    margin-bottom: 2rem;
    width: 100%;
    min-height: 0;
    height: auto;
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.legal-content-no-toc .legal-section {
    grid-column: auto;
    align-self: auto;
}

/* Target the first section specifically */
.legal-content-no-toc .legal-section:first-of-type {
    margin-top: 0;
}

/* Target the first section specifically to fix its spacing */
.legal-section:first-of-type {
    margin-top: 0;
    align-self: start; /* Explicitly align to start */
}


.legal-section h2 {
    font-size: 1.75rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h3 {
    font-size: 1.35rem;
    color: var(--dark-text);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.legal-section p,
.legal-section li {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--light-text);
    text-align: left;
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-section a {
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Enhanced Feature Highlights */
.feature-highlight {
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.05) 0%, rgba(68, 196, 164, 0.1) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.feature-highlight h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.feature-list i {
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 20px;
}

/* Data Protection Highlights */
.data-protection-highlight,
.security-highlight,
.ip-notice,
.medical-disclaimer,
.liability-info,
.termination-info {
    background-color: rgba(68, 196, 164, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(68, 196, 164, 0.2);
}

.data-protection-highlight h3,
.security-highlight h3,
.ip-notice h3,
.medical-disclaimer h3,
.liability-info h3,
.termination-info h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-protection-highlight i,
.security-highlight i,
.ip-notice i,
.medical-disclaimer i,
.liability-info i,
.termination-info i {
    color: var(--primary);
}

/* Prohibited List Styling */
.prohibited-list {
    list-style: none;
    padding: 0;
    background-color: rgba(255, 86, 86, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.prohibited-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.prohibited-list i {
    color: #ff5656;
    font-size: 1.1rem;
    margin-top: 0.1rem;
    min-width: 20px;
}

/* Policy Links */
.policy-links {
    margin: 1.5rem 0;
}

.policy-link,
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.policy-link:hover,
.contact-link:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 196, 164, 0.3);
    color: white !important;
    text-decoration: none;
}

/* Ensure text visibility in contact-link specifically */
.contact-link {
    color: white !important;
}

.contact-link:visited {
    color: white !important;
}

/* Contact Information Styling */
.contact-info {
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.05) 0%, rgba(68, 196, 164, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-method i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    min-width: 24px;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.response-time {
    font-size: 0.9rem;
    color: var(--light-text);
    font-style: italic;
}

.additional-links {
    margin-top: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(68, 196, 164, 0.3);
    transition: all 0.3s ease;
    min-width: 60px;
}

.back-to-top-btn:hover {
    background-color: var(--secondary);    
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(68, 196, 164, 0.4);
    color: white;
    text-decoration: none;
}

.back-to-top-btn i {
    font-size: 1.2rem;
}

.back-to-top-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.definitions-list li {
    margin-bottom: 0.75rem;
}

/* Original contact info styles preserved */
.contact-info {
    background-color: rgba(68, 196, 164, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Contact page specific styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-container .contact-card {
    padding: 2.5rem;
}

.contact-info-container .contact-card .contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: rgba(68, 196, 164, 0.03);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(68, 196, 164, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(68, 196, 164, 0.05);
    border-color: rgba(68, 196, 164, 0.2);
    transform: translateY(-2px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.3rem;
    width: 24px;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
    font-weight: 600;
}

.contact-text p, 
.contact-text span {
    color: var(--light-text);
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.contact-text a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.contact-text a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.info-note {
    background-color: rgba(68, 196, 164, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--secondary);}

/* Footer-style social media for contact page */
.footer-social-style {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social-style a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.footer-social-style a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Specific styling to remove underlines from Instagram icons */
.fa-instagram {
    text-decoration: none !important;
}

a .fa-instagram {
    text-decoration: none !important;
}

.support-resources {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.support-resources h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(68, 196, 164, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-text);
    transition: background-color 0.2s ease;
}

.resource-link:hover {
    background-color: rgba(68, 196, 164, 0.1);
}

.resource-link i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: white;
    width: 100%;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    margin: 0;
}

.required {
    color: #e74c3c;
}

.form-submit {
    margin-top: 1rem;
}

.form-submit .btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.form-submit .btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 196, 164, 0.3);
}

.form-submit .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(68, 196, 164, 0.2);
}

.form-success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.success-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* FAQ Styles */
.faq-preview {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.faq-preview h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.faq-preview p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.faq-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background-color: rgba(68, 196, 164, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.faq-item:last-child {
    grid-column: span 1;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.faq-item p {
    color: var(--light-text);
    margin-bottom: 0;
}

.faq-search-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.faq-search {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    pointer-events: none;
}

#faqSearch {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--white);
}

#faqSearch:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(68, 196, 164, 0.1);
}

.faq-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.faq-categories {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.faq-categories h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.category-list a:hover,
.category-list a.active {
    background-color: rgba(68, 196, 164, 0.1);
    color: var(--primary);
}

.faq-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.faq-section:first-child {
    margin-top: 0;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.faq-question {
    background-color: rgba(68, 196, 164, 0.05);
    border: none;
    width: 100%;
    padding: 1rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: rgba(68, 196, 164, 0.1);
}

.faq-question i {
    transition: transform 0.2s ease;
    color: var(--primary);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 1rem;
    margin: 0;
    color: var(--light-text);
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 2rem;
}

.faq-contact-info {
    background-color: rgba(68, 196, 164, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.faq-contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.faq-contact-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.faq-bottom {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.faq-footer {
    text-align: center;
    padding: 2rem 0;
}

.faq-footer h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.faq-footer p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-footer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.no-results-message {
    text-align: center;
    padding: 2rem;
    color: var(--light-text);
    font-style: italic;
    background-color: rgba(68, 196, 164, 0.05);
    border-radius: 8px;
}

/* Getting Started Guide Styles */
.guide-toc-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.guide-toc h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.guide-toc ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.guide-toc li {
    margin-bottom: 0.5rem;
}

.guide-toc a {
    display: block;
    padding: 0.75rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.guide-toc a:hover,
.guide-toc a.active {
    background-color: rgba(68, 196, 164, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.guide-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.section-icon i {
    font-size: 1.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-text);
    margin: 0;
}

.guide-step {
    margin-bottom: 2rem;
    position: relative;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-step h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.guide-step h3:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.guide-step p,
.guide-step ul,
.guide-step ol {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.guide-step ul,
.guide-step ol {
    padding-left: 1.5rem;
}

.guide-tip {
    background-color: rgba(68, 196, 164, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.guide-tip i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.guide-tip p {
    margin: 0;
    color: var(--dark-text);
}

.guide-tip strong {
    color: var(--primary);
}

.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background-color: rgba(68, 196, 164, 0.1);
    font-weight: 600;
    color: var(--dark-text);
}

.comparison-table tr:hover {
    background-color: rgba(68, 196, 164, 0.05);
}

.comparison-table i.fa-check {
    color: #27ae60;
}

.comparison-table i.fa-times {
    color: #e74c3c;
}

.guide-conclusion {
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.05) 0%, rgba(68, 196, 164, 0.1) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.guide-conclusion h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.guide-conclusion p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guide-conclusion-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .toc-container {
        position: static;
        max-height: none;
    }
    
    .legal-section {
        padding: 2rem;
    }
    
    .legal-content-no-toc {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        margin: 0 auto;
    }
    
    .guide-step {
        padding-left: 0;
    }
    
    .guide-toc ul {
        grid-template-columns: 1fr;
    }
    
    .faq-footer-buttons,
    .guide-conclusion-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-question {
        font-size: 0.9rem;
    }
    
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-categories {
        position: static;
        max-height: none;
    }
    
    .table-of-contents ol {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-to-top-btn {
        padding: 0.75rem;
        min-width: 50px;
    }
    
    .back-to-top-btn span {
        display: none;
    }
    
    /* Enhanced responsive fixes for tablets */
    .legal-page,
    .contact-page,
    .faq-page,
    .getting-started-page {
        padding-top: 110px;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1.5rem;
        overflow-x: hidden;
    }
    
    .legal-section {
        padding: 2rem 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 1rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix for long URLs and email addresses on tablets */
    .legal-section a {
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .legal-section h2,
    .guide-section h2 {
        font-size: 1.4rem;
    }
    
    .guide-step h3 {
        font-size: 1.2rem;
    }
    
    .legal-content,
    .legal-content-no-toc {
        padding: 0 0.5rem;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .page-header .intro-text {
        font-size: 1rem;
    }
    
    .toc-section {
        padding: 1.5rem;
    }
    
    .feature-highlight,
    .data-protection-highlight,
    .security-highlight,
    .ip-notice,
    .medical-disclaimer,
    .liability-info,
    .termination-info {
        padding: 1rem;
    }
    
    /* Enhanced mobile responsive fixes for terms of service */
    .legal-page,
    .contact-page,
    .faq-page,
    .getting-started-page {
        padding-top: 100px;
        padding-bottom: 40px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .legal-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .legal-section ul,
    .legal-section ol {
        padding-left: 1.2rem;
    }
    
    .contact-info {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-info p {
        font-size: 0.85rem;
    }
    
    /* Prevent text overflow in specific elements */
    .page-header {
        padding: 0 1rem;
        text-align: center;
    }
    
    .page-header h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .page-header .intro-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    /* Fix for long URLs and email addresses */
    .legal-section a {
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    /* Ensure proper viewport handling */
    html {
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}