/* Shared shell for per-country legal pages (privacy policy, FAQ) — US/UK/Ireland on in-hand.net.
   Extracted from privacy-policy.html's inline styles (2026-08-31) so new country pages don't
   each carry their own copy of the same ~200-line block. */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container { background-color: var(--theme-bg-primary); color: var(--theme-text-primary); }

.header {
    background: var(--theme-header-bg);
    border-bottom: 1px solid var(--theme-border);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-title-container a { text-decoration: none; color: var(--theme-text-primary); display: flex; align-items: center; }
.header-controls { display: flex; align-items: center; gap: 16px; }
nav a { margin-right: 20px; text-decoration: none; color: var(--theme-nav-text); font-weight: 500; }

.theme-toggle {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.theme-toggle:hover { border-color: var(--theme-primary); background: var(--theme-bg-tertiary); }
.theme-icon { width: 20px; height: 20px; fill: var(--theme-text-primary); transition: fill 0.2s ease; }

.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.7;
    font-size: 16px;
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

h1, h2, h3 { color: var(--theme-text-primary); }
.legal-section { margin: 40px 0; }
.legal-section h2 {
    color: var(--theme-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--theme-primary);
    padding-bottom: 10px;
}
.legal-section h3 { color: var(--theme-primary); margin: 25px 0 15px 0; }

.legal-highlight {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--theme-primary);
    margin: 20px 0;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-light);
    transition: all 0.3s ease;
}

.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal-table th, .legal-table td { border: 1px solid var(--theme-border); padding: 12px; text-align: left; color: var(--theme-text-primary); }
.legal-table th { background: var(--theme-bg-secondary); font-weight: 600; color: var(--theme-text-primary); }

.contact-info {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-light);
}
.contact-info h2, .contact-info h3 { color: var(--theme-primary); }
.contact-info a { color: var(--theme-primary); transition: color 0.2s ease; }
.contact-info a:hover { color: var(--theme-primary-hover); }

footer.legal-footer { background: var(--theme-bg-secondary); color: var(--theme-text-secondary); text-align: center; padding: 40px 20px 20px; margin-top: 60px; border-top: 1px solid var(--theme-border); }
footer.legal-footer a { color: var(--theme-primary); transition: color 0.2s ease; }
footer.legal-footer a:hover { color: var(--theme-primary-hover); }

.rights-list { list-style: none; padding: 0; }
.rights-list li {
    background: var(--theme-bg-secondary);
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--theme-primary);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-primary);
}

.effective-date {
    text-align: center;
    font-style: italic;
    color: var(--theme-text-secondary);
    margin: 30px 0;
    padding: 20px;
    background: var(--theme-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--theme-border);
}

@media (max-width: 768px) {
    .legal-content { padding: 15px; margin: 20px auto; }
    .legal-table { font-size: 14px; }
    .legal-table th, .legal-table td { padding: 8px; }
}

/* FAQ accordion — used by us_faq.html / uk_faq.html / ie_faq.html, sharing this same
   --theme-* variable system as the legal pages above rather than the payflow calculator's
   --color-* faq-section.css (which isn't loaded on standalone static pages). */
.faq-item {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--theme-text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '▼'; font-size: 12px; color: var(--theme-text-secondary); transition: transform 0.2s ease; }
.faq-item[open] .faq-question::after { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px; color: var(--theme-text-secondary); }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
