/* Shared Pofiler styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #121417;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --title-color: #d4af37;
    --link-color: #00aaa0;
    --link-hover: #00c9be;
    --card-bg: #1b1f24;
    --max-width: 800px;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

body {
    min-height: 100vh;
    padding: 0 1.5rem;
}

header,
main,
footer {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0 2.5rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--link-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.back-link img {
    width: 58px;
    height: auto;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    text-align: left;
}

.logo-container {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: transparent;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

section {
    border-bottom: 1px solid #222222;
}

section:last-of-type {
    border-bottom: 0;
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--link-hover);
    text-decoration: underline;
}

footer {
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Pofiler landing page */
.pofiler-home {
    display: flex;
    flex-direction: column;
}

.pofiler-home section {
    padding: 3.5rem 0;
}

.pofiler-home h1 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.pofiler-home h2 {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.pofiler-home p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.pofiler-home .logo-container {
    color: var(--title-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.tagline {
    max-width: 500px;
    margin-bottom: 0;
    color: var(--text-muted);
}

.download-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin: 1.5rem 0;
}

.badge-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 45px;
    border: 1px solid #333333;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s;
}

.badge-placeholder:hover {
    border-color: var(--title-color);
    background-color: #252525;
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

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

.error-message {
    margin-top: 0.35rem;
    color: var(--title-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #333333;
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--link-color);
    outline: none;
}

.contact-form button {
    padding: 0.9rem;
    border: 0;
    border-radius: 6px;
    background-color: var(--title-color);
    color: #000000;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.contact-form button:hover {
    opacity: 0.9;
}

.contact-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.g-recaptcha {
    margin: 0.25rem 0;
}

.modal {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: none;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
}

.modal-content {
    width: min(90%, 420px);
    margin: 15% auto;
    padding: 1rem;
    border: 1px solid #333333;
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.modal-header {
    display: flex;
    justify-content: flex-end;
}

.close {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
}

.close:hover,
.close:focus {
    color: var(--text-color);
}

.privacy-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-text {
    display: none;
    margin-top: 1rem;
    padding: 1.2rem;
    border: 1px solid #222222;
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.legal-text h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.legal-text h3:first-child {
    margin-top: 0;
}

.toggle-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--link-color);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.pofiler-home footer {
    margin-top: auto;
}

/* Privacy and support documents */
.pofiler-document section {
    padding: 2.5rem 0;
}

.pofiler-document h1 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.pofiler-document h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.4rem;
}

.pofiler-document h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.05rem;
}

.pofiler-document p,
.pofiler-document li {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pofiler-document ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.updated {
    color: var(--text-muted);
}

.support-card {
    margin: 1.25rem 0;
    padding: 1.25rem;
    border: 1px solid #222222;
    border-radius: 8px;
    background-color: var(--card-bg);
}

@media (min-width: 768px) {
    .pofiler-home h1,
    .pofiler-document h1 {
        font-size: 2.5rem;
    }

    .pofiler-home h2 {
        font-size: 2rem;
    }

    .pofiler-document h2 {
        font-size: 1.8rem;
    }

    .pofiler-home section {
        padding: 5rem 0;
    }

    .contact-form {
        max-width: 500px;
    }
}
