{{-- DRAFT: Generated {{ date('Y-m-d') }}. Review by UK-qualified solicitor recommended before launch. --}}
<x-layouts.legal
        title="Terms of Service"
        heading="Terms of Service"
        lastUpdated="{{ now()->format('j F Y') }}"
        metaDescription="The terms that govern your use of FuelAlert's subscription service.">

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">1. About these terms</h2>
        <p>
            FuelAlert is a trading name of <strong>Ovidiu Ungureanu</strong>, a sole trader based in
            Peterborough, United Kingdom ("we", "us", "our"). These terms form a legally binding
            contract between you and Ovidiu Ungureanu trading as FuelAlert.
            ICO registration reference: 00014395133.
        </p>
        <p>
            By creating an account or using the service, you confirm that you have read, understood
            and accepted these terms. If you do not accept them, please do not use the service.
        </p>
        <p>These terms are governed by the laws of England and Wales.</p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">2. The service</h2>
        <p>
            FuelAlert provides UK fuel price comparison and fill-up timing recommendations. We act
            as a downstream consumer of publicly available UK government fuel price data feeds
            (including the UK Fuel Finder / Pump Watch transparency scheme) and surface that data
            through a web app, alerts, and forecasts. We do not control the prices submitted by fuel
            retailers to those upstream schemes and are not responsible for errors or delays in
            that data.
        </p>
        <p>
            We offer a free tier and one or more paid subscription plans. The current list of plans
            and prices is available on our <a class="text-accent underline" href="/#pricing">pricing page</a>.
        </p>
        <p>
            We may add, remove, or change features over time. Where changes materially reduce the
            paid service, we will give you reasonable notice and, where appropriate, a way to cancel.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">3. Your account</h2>
        <ul class="list-disc space-y-1 pl-6">
            <li>You must be at least 18 years old and resident in the United Kingdom to create an account.</li>
            <li>The information you provide must be accurate and kept up to date.</li>
            <li>One account per person. You are responsible for keeping your login credentials secure.</li>
            <li>You are responsible for activity that takes place under your account.</li>
            <li>We may suspend or close accounts where these terms are seriously or repeatedly breached.</li>
        </ul>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">4. Subscriptions, billing and payment</h2>
        <p>
            Paid plans are billed monthly in advance. The current price for each plan is shown on
            the <a class="text-accent underline" href="/#pricing">pricing page</a> at the time you subscribe.
        </p>
        <p>
            <strong>Auto-renewal.</strong> Subscriptions renew automatically at the end of each
            billing period at the then-current price, unless you cancel before the renewal date. By
            subscribing you authorise FuelAlert &mdash; through our payment processor Stripe &mdash;
            to charge your nominated payment method at each renewal.
        </p>
        <p>
            <strong>Failed payments.</strong> If a payment fails, we and Stripe will retry the
            payment over the following days. We will email you when this happens. Persistent failure
            will cause your paid features to be suspended; your account itself is not deleted.
        </p>
        <p>
            <strong>Price changes.</strong> If we change the price of your plan, we will give you at
            least 30 days' notice by email before the new price takes effect on your next renewal.
            You may cancel before the change takes effect.
        </p>
        <p>
            <strong>VAT.</strong> FuelAlert is currently below the UK VAT registration threshold and is
            not VAT-registered, so no VAT is charged on your subscription. The price shown is the total
            amount you pay. If our VAT status changes, we will update these terms and notify you before
            any price change takes effect.
        </p>
        <p>
            <strong>Downgrade on cancellation.</strong> When a paid subscription ends or is cancelled,
            your account reverts to the free tier. Paid alert channels (WhatsApp, SMS) are deactivated,
            but your alert settings are retained and will reactivate if you resubscribe.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">5. Cancellation and refunds</h2>
        <p>
            You can cancel your subscription at any time from your account settings. Cancellation
            stops the next renewal; you keep access to paid features until the end of the current
            billing period.
        </p>
        <p>
            New subscribers have a <strong>14-day right to cancel</strong> under the Consumer
            Contracts Regulations 2013. Important details &mdash; including the express-consent
            mechanism that affects this right &mdash; are set out in our
            <a class="text-accent underline" href="{{ route('legal.refund') }}">Refund &amp; Cancellation Policy</a>.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">6. Acceptable use</h2>
        <p>You agree not to:</p>
        <ul class="list-disc space-y-1 pl-6">
            <li>Scrape, reverse-engineer, or bulk-extract data from the service without our written permission.</li>
            <li>Mirror, republish, or systematically reproduce our compiled price data, station rankings, scoring outputs, or any other value-added data derived from the service.</li>
            <li>Use the service or its outputs for commercial exploitation, resale, or competitor monitoring without our written consent.</li>
            <li>Resell or redistribute fuel price data taken from FuelAlert.</li>
            <li>Use the service for any unlawful purpose.</li>
            <li>Attempt to circumvent or compromise our security measures.</li>
            <li>Use automated tools to make queries beyond what a single human user would reasonably make.</li>
            <li>Use the service while operating a motor vehicle. You must not interact with the service while a vehicle is in motion. Compliance with the Road Traffic Act 1988, the Highway Code, and all applicable road traffic laws is your sole responsibility.</li>
        </ul>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">7. Accuracy of price data</h2>
        <p>
            Fuel prices shown on FuelAlert are sourced from official UK government data feeds
            (including the Pump Watch / Fuel Finder transparency schemes) and refreshed
            periodically. FuelAlert acts as a downstream consumer of those feeds and does not
            control the data submitted by fuel retailers to the central aggregator. Stations can
            change prices at any time, and there is usually a delay between a forecourt change
            and the feed update.
        </p>
        <p>
            We make reasonable efforts to display accurate prices but <strong>we cannot guarantee
                that the price shown will match the price at the pump</strong> when you arrive.
            <strong>Always confirm the price at the pump before fuelling.</strong>
        </p>
        <p>
            We are not liable for any loss arising from inaccurate, delayed, or missing price data,
            including the cost of a wasted journey or any difference between the price shown and the
            price charged.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">8. Forecasts and recommendations</h2>
        <p>
            FuelAlert may show forecasts and recommendations (e.g. "fill up now" or "wait"). These
            are generated algorithmically based on local price trends, historical patterns, and
            market signals. They are <strong>informational only</strong>, are not financial advice,
            and should not be relied upon as a guarantee of future prices. Past trends do not
            guarantee future prices. We do not warrant the accuracy of any forecast or recommendation.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">9. Intellectual property</h2>
        <p>
            The FuelAlert name, logo, software, scoring algorithms, and original content are owned
            by Ovidiu Ungureanu. You receive a limited, non-exclusive, revocable licence to use the
            service for personal, non-commercial purposes.
        </p>
        <p>
            Underlying fuel price data is owned by the respective fuel retailers and published under
            UK government open data schemes. Postcode and geographic data is sourced from the ONS
            Postcode Directory, &copy; Crown Copyright, used under the Open Government Licence v3.0.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">10. Third-party services</h2>
        <p>
            We use <strong>Stripe</strong> to process payments. Your use of Stripe is also subject
            to Stripe's own terms and privacy policy. We may use other third-party processors to
            run the service; these are named in our
            <a class="text-accent underline" href="{{ route('legal.privacy') }}">Privacy Policy</a>.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">11. Limitation of liability</h2>
        <p>
            Nothing in these terms excludes or limits our liability for death or personal injury
            caused by our negligence, fraud or fraudulent misrepresentation, or any other liability
            that cannot be excluded under UK consumer law. Your statutory rights as a consumer are
            not affected.
        </p>
        <p>Subject to the paragraph above:</p>
        <ul class="list-disc space-y-1 pl-6">
            <li>We exclude liability for indirect, consequential, or business losses.</li>
            <li>
                For paying subscribers, our total liability to you in any 12-month period is capped
                at the total amount you paid in subscription fees during that period.
            </li>
            <li>
                We do not accept liability for issues caused by third-party services we rely on,
                including but not limited to outages or errors at our payment processor, hosting
                provider, or upstream data sources.
            </li>
            <li>
                We are not responsible for the accuracy, completeness, or timeliness of data
                submitted by fuel retailers to the UK Fuel Finder scheme or any other upstream
                source we consume as a downstream aggregator.
            </li>
        </ul>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">12. Termination</h2>
        <p>
            You may stop using the service and close your account at any time. We may terminate or
            suspend access for serious breach of these terms, with reasonable notice where the
            breach is capable of being put right.
        </p>
        <p>
            Sections that by their nature should survive termination (including sections 7 to 11)
            will continue to apply after your account is closed.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">13. Changes to these terms</h2>
        <p>
            We may update these terms. Material changes will be notified to registered users by
            email at least 14 days before they take effect. Continued use of the service after the
            change date means you accept the new terms.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">14. Disputes</h2>
        <p>
            Please contact us first if you have a complaint &mdash; we will try to resolve it
            directly. These terms are governed by the laws of England and Wales, and the courts of
            England and Wales have non-exclusive jurisdiction over any dispute. If you live
            elsewhere in the United Kingdom, you keep the right to bring proceedings in the courts
            of your country of residence.
        </p>
    </section>

    <section class="space-y-3">
        <h2 class="font-display text-2xl font-bold text-zinc-900">15. Contact</h2>
        <p>
            For questions about these terms, email
            <a href="mailto:hello@fuel-alert.co.uk" class="text-accent underline">hello@fuel-alert.co.uk</a>.
        </p>
        <p class="text-sm text-zinc-600">
            Ovidiu Ungureanu trading as FuelAlert, Peterborough, United Kingdom.
            ICO registration reference: 00014395133.
        </p>
    </section>
</x-layouts.legal>