/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100%;
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f2f1f0;
    color: #4a4a4a;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===================================
   Layout Structure
   =================================== */
.page {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    width: 100%;
    max-width: 1688px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Override for policy pages - allow natural height */
.policy-content ~ .footer-container {
    margin-top: auto;
}

body:has(.policy-content) .main-container {
    min-height: auto;
}

/* ===================================
   Content Container
   =================================== */
.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    padding: 20px;
}

/* ===================================
   Logo Section
   =================================== */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 107px;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

/* ===================================
   Tagline Section
   =================================== */
.tagline-section {
    max-width: 800px;
    width: 100%;
}

.tagline {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 32px;
    color: #4a4a4a;
    text-align: center;
    margin: 0;
}

/* ===================================
   Coming Soon
   =================================== */
.coming-soon {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    color: #999999;
    text-align: center;
    margin: 0;
}

/* ===================================
   Footer
   =================================== */
.footer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 10px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
    color: #999999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #4a4a4a;
}

.copyright {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
    color: #999999;
    text-align: center;
    margin: 0;
}

/* ===================================
   Policy Pages
   =================================== */
.policy-content {
    gap: 40px;
    max-width: 900px;
    width: 100%;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

.policy-document {
    width: 100%;
    max-width: 800px;
    text-align: left;
    padding: 0 20px;
}

.policy-document h1 {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #2a2a2a;
    margin: 0 0 8px 0;
}

.policy-document .last-updated {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #999999;
    margin: 0 0 32px 0;
    font-style: italic;
}

.policy-document h2 {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #2a2a2a;
    margin: 40px 0 16px 0;
}

.policy-document h3 {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #3a3a3a;
    margin: 24px 0 12px 0;
}

.policy-document p {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #4a4a4a;
    margin: 0 0 16px 0;
}

.policy-document ul {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #4a4a4a;
    margin: 0 0 16px 0;
    padding-left: 32px;
}

.policy-document ol {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #4a4a4a;
    margin: 0 0 16px 0;
    padding-left: 32px;
}

.policy-document li {
    margin: 8px 0;
}

.policy-document ul ul,
.policy-document ul ol,
.policy-document ol ul,
.policy-document ol ol {
    margin: 8px 0;
}

.policy-document a {
    color: #4a4a4a;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.policy-document a:hover {
    color: #2a2a2a;
}

.policy-document code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.policy-document strong {
    font-weight: 600;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 768px) {
    .page {
        padding: 30px 20px;
    }
    
    .main-container {
        min-height: calc(100vh - 60px);
    }
    
    .content-container {
        gap: 50px;
        padding: 15px;
    }
    
    .logo {
        width: 90px;
    }
    
    .tagline {
        font-size: 19px;
        line-height: 30px;
        padding: 0 10px;
    }
    
    .coming-soon {
        font-size: 14px;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .footer-nav a {
        font-size: 12px;
    }
    
    .policy-document {
        padding: 0 15px;
    }
    
    .policy-document h1 {
        font-size: 28px;
    }
    
    .policy-document h2 {
        font-size: 22px;
    }
    
    .policy-document h3 {
        font-size: 18px;
    }
    
    .policy-document p,
    .policy-document ul,
    .policy-document ol {
        font-size: 15px;
    }
    
    /* Contact form tablet */
    .contact-title {
        font-size: 28px;
    }
    
    .contact-subtitle {
        font-size: 15px;
    }
    
    .contact-section {
        padding: 0 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .page {
        padding: 20px 15px;
    }
    
    .main-container {
        min-height: calc(100vh - 40px);
    }
    
    .content-container {
        gap: 40px;
        padding: 10px;
    }
    
    .logo {
        width: 75px;
    }
    
    .tagline {
        font-size: 17px;
        line-height: 26px;
        padding: 0 5px;
    }
    
    .coming-soon {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 11px;
    }
    
    .footer-nav {
        gap: 16px;
        flex-direction: column;
    }
    
    .footer-nav a {
        font-size: 11px;
    }
    
    .policy-document {
        padding: 0 10px;
    }
    
    .policy-document h1 {
        font-size: 24px;
    }
    
    .policy-document h2 {
        font-size: 20px;
        margin: 32px 0 12px 0;
    }
    
    .policy-document h3 {
        font-size: 17px;
    }
    
    .policy-document p,
    .policy-document ul,
    .policy-document ol {
        font-size: 15px;
    }
    
    .policy-document ul,
    .policy-document ol {
        padding-left: 24px;
    }
    
    /* Contact form mobile */
    .contact-content {
        gap: 30px;
        padding-top: 30px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .contact-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .contact-section {
        padding: 0 10px;
    }
    
    .contact-form {
        gap: 16px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-submit {
        padding: 12px 20px;
    }
    
    .form-success h2 {
        font-size: 20px;
    }
    
    .success-icon {
        width: 48px;
        height: 48px;
    }
}

/* ===================================
   Contact Form
   =================================== */
.contact-content {
    gap: 40px;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

.contact-section {
    width: 100%;
    max-width: 520px;
    padding: 0 20px;
}

.contact-title {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #2a2a2a;
    text-align: center;
    margin: 0 0 12px 0;
}

.contact-subtitle {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
    text-align: center;
    margin: 0 0 32px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3a3a3a;
}

.form-input {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #2a2a2a;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #aaa;
}

.form-input:focus {
    border-color: #4a4a4a;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.form-input.input-error {
    border-color: #dc3545;
}

.form-input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

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

.form-error {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #dc3545;
    display: none;
}

.form-submit {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #2a2a2a;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 8px;
}

.form-submit:hover:not(:disabled) {
    background-color: #3a3a3a;
}

.form-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.form-submit:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Message */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #28a745;
}

.form-success h2 {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0;
}

.form-success p {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
    max-width: 320px;
}

.form-reset-btn {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    margin-top: 8px;
}

.form-reset-btn:hover {
    border-color: #4a4a4a;
    color: #2a2a2a;
}

/* Error Banner */
.form-error-banner {
    background-color: #fff5f5;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
}

.form-error-banner p {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #dc3545;
    margin: 0;
    text-align: center;
}

/* Active footer link */
.footer-nav a.active {
    color: #4a4a4a;
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .page {
        padding: 15px 10px;
    }
    
    .content-container {
        gap: 35px;
    }
    
    .logo {
        width: 65px;
    }
    
    .tagline {
        font-size: 16px;
        line-height: 24px;
    }
    
    .coming-soon {
        font-size: 12px;
    }
    
    .copyright {
        font-size: 10px;
    }
    
    .footer-nav a {
        font-size: 10px;
    }
    
    .policy-document h1 {
        font-size: 22px;
    }
    
    .policy-document h2 {
        font-size: 18px;
    }
    
    .policy-document h3 {
        font-size: 16px;
    }
    
    .policy-document p,
    .policy-document ul,
    .policy-document ol {
        font-size: 14px;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .page {
        padding: 15px 20px;
    }
    
    .content-container {
        gap: 25px;
    }
    
    .logo {
        width: 50px;
    }
    
    .tagline {
        font-size: 15px;
        line-height: 22px;
    }
    
    .coming-soon {
        font-size: 12px;
    }
    
    .footer-container {
        padding: 10px;
        gap: 12px;
    }
    
    .footer-nav {
        gap: 16px;
    }
    
    .policy-document h1 {
        font-size: 24px;
    }
    
    .policy-document h2 {
        font-size: 20px;
        margin: 24px 0 12px 0;
    }
}

/* Large Desktop */
@media (min-width: 1920px) {
    .content-container {
        gap: 80px;
    }
    
    .logo {
        width: 120px;
    }
    
    .tagline {
        font-size: 24px;
        line-height: 38px;
    }
    
    .coming-soon {
        font-size: 17px;
    }
    
    .copyright {
        font-size: 14px;
    }
    
    .footer-nav a {
        font-size: 14px;
    }
    
    .policy-document h1 {
        font-size: 36px;
    }
    
    .policy-document h2 {
        font-size: 26px;
    }
    
    .policy-document h3 {
        font-size: 21px;
    }
    
    .policy-document p,
    .policy-document ul,
    .policy-document ol {
        font-size: 17px;
    }
}
