<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo('charset'); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" href="<?php echo get_template_directory_uri(); ?>/assets/images/favicon.png">
    <?php wp_head(); ?>
    <style>
        .page-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 120px 24px 80px;
        }
        .page-content h1 {
            margin-bottom: 2rem;
        }
        .page-content h2 {
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }
        .page-content p {
            margin-bottom: 1rem;
        }
        .page-content ul {
            margin-bottom: 1rem;
            padding-left: 1.5rem;
        }
        .page-content li {
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
        }
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
            color: var(--text-muted);
        }
        .back-link:hover {
            color: var(--text-secondary);
        }
    </style>
</head>
<body <?php body_class(); ?>>
    <div class="page-content">
        <a href="<?php echo home_url(); ?>" class="back-link">
            <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
                <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/>
            </svg>
            Back to Add Months
        </a>

        <?php while (have_posts()) : the_post(); ?>
            <h1><?php the_title(); ?></h1>
            <?php the_content(); ?>
        <?php endwhile; ?>
    </div>

    <!-- Footer -->
    <footer class="site-footer">
        <div class="container">
            <div class="footer-content">
                <div class="footer-links">
                    <a href="<?php echo home_url('/privacy/'); ?>">Privacy</a>
                    <a href="<?php echo home_url('/terms/'); ?>">Terms</a>
                    <a href="<?php echo home_url('/disclaimer/'); ?>">Disclaimer</a>
                    <a href="https://help.addmonths.com">Help</a>
                </div>
                <div class="footer-copyright">
                    &copy; <?php echo date('Y'); ?> Add Months
                </div>
            </div>
        </div>
    </footer>

    <?php wp_footer(); ?>
</body>
</html>
